127 lines
3.7 KiB
Batchfile
127 lines
3.7 KiB
Batchfile
|
@Echo Off
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>ˬd %RootDrive% <20>O<EFBFBD>_<EFBFBD>w<EFBFBD>]<5D>w<EFBFBD>A<EFBFBD>ñN<C3B1><4E><EFBFBD>]<5D>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɡC
|
|||
|
Rem
|
|||
|
|
|||
|
Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
|
|||
|
If "%_CHKROOT%" == "FAIL" Goto Done
|
|||
|
Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
|
|||
|
If "%_SETPATHS%" == "FAIL" Goto Done
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>q<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o Office 95 <20>w<EFBFBD>˦<EFBFBD><CBA6>m<EFBFBD>C
|
|||
|
Rem <20>p<EFBFBD>G<EFBFBD>䤣<EFBFBD><E4A4A3><EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>] Office 95 <20>å<EFBFBD><C3A5>w<EFBFBD>˨<EFBFBD><CBA8><EFBFBD><EFBFBD>ܿ<EFBFBD><DCBF>~<7E>T<EFBFBD><54><EFBFBD>C
|
|||
|
Rem
|
|||
|
|
|||
|
..\ACRegL %Temp%\O95.Cmd O95INST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRoot" "" ""
|
|||
|
If Not ErrorLevel 1 Goto Cont0
|
|||
|
|
|||
|
..\ACRegL %Temp%\O95.Cmd O95INST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRootPro" "" ""
|
|||
|
If Not ErrorLevel 1 Goto Cont0
|
|||
|
|
|||
|
Echo.
|
|||
|
Echo <20>L<EFBFBD>k<EFBFBD>q<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Office 95 <20><><EFBFBD>w<EFBFBD>˦<EFBFBD><CBA6>m<EFBFBD>C
|
|||
|
Echo <20>нT<D0BD>{ Office 95 <20>O<EFBFBD>_<EFBFBD>w<EFBFBD>w<EFBFBD>ˡA<CBA1>M<EFBFBD>᭫<EFBFBD>s
|
|||
|
Echo <20><><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɡC
|
|||
|
Echo.
|
|||
|
Echo.
|
|||
|
Pause
|
|||
|
Goto Done
|
|||
|
|
|||
|
:Cont0
|
|||
|
Call %Temp%\O95.Cmd
|
|||
|
Del %Temp%\O95.Cmd >Nul: 2>&1
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>q [<5B>Ұ<EFBFBD>] <20>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B>ֳt<D6B3>M<EFBFBD><4D>]<5D>C
|
|||
|
Rem [<5B>ֳt<D6B3>M<EFBFBD><4D>] <20>|<7C>ϥΤj<CEA4>q<EFBFBD>귽<EFBFBD>í<EFBFBD><C3AD>C<EFBFBD>t<EFBFBD>ήį<CEAE><C4AF>C
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD>ˬd<CBAC>ثe<D8AB><65><EFBFBD>ϥΪ̥\<5C><><EFBFBD><EFBFBD><EFBFBD>ΩҦ<CEA9><D2A6>ϥΪ̥\<5C><><EFBFBD><EFBFBD><EFBFBD>C Which menu
|
|||
|
Rem <20>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܤ覡<DCA4>N<EFBFBD><4E><EFBFBD>t<EFBFBD>Ϊ<EFBFBD><CEAA>^<5E><><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD>覡<EFBFBD>M<EFBFBD>w<EFBFBD>C
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist "%USER_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" Goto Cont1
|
|||
|
Del "%USER_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" >Nul: 2>&1
|
|||
|
:Cont1
|
|||
|
|
|||
|
If Not Exist "%COMMON_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" Goto Cont2
|
|||
|
Del "%COMMON_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" >Nul: 2>&1
|
|||
|
:Cont2
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>N PowerPoint <20>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɮƻs<C6BB><73> [All Users] <20>ؿ<EFBFBD><D8BF>A
|
|||
|
Rem <20><><EFBFBD>ϥΪ̵n<CCB5>J<EFBFBD>A<EFBFBD><41><EFBFBD>̥i<CCA5>H<EFBFBD>Q<EFBFBD>ƻs<C6BB><73><EFBFBD>ϥΪ̥D<CCA5>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>C
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist "%ALLUSERSPROFILE%\%TEMPLATES%\BINDER70.OBD" copy "%UserProfile%\%TEMPLATES%\BINDER70.OBD" "%ALLUSERSPROFILE%\%TEMPLATES%\" /Y >Nul: 2>&1
|
|||
|
If Not Exist "%ALLUSERSPROFILE%\%TEMPLATES%\PPT70.PPT" copy "%UserProfile%\%TEMPLATES%\PPT70.PPT" "%ALLUSERSPROFILE%\%TEMPLATES%" /Y >Nul: 2>&1
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>ܧ<EFBFBD><DCA7>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>|<7C><><EFBFBD>V<EFBFBD>ϥΪ̩ҫ<CCA9><D2AB>w<EFBFBD><77>
|
|||
|
Rem <20>ؿ<EFBFBD><D8BF>C
|
|||
|
Rem
|
|||
|
|
|||
|
Rem <20>p<EFBFBD>G<EFBFBD>ثe<D8AB><65><EFBFBD>O<EFBFBD>w<EFBFBD>˼Ҧ<CBBC><D2A6>A<EFBFBD>N<EFBFBD>ܧw<F3A6A8A6>˼Ҧ<CBBC><D2A6>C
|
|||
|
Set __OrigMode=Install
|
|||
|
ChgUsr /query > Nul:
|
|||
|
if Not ErrorLevel 101 Goto Begin
|
|||
|
Set __OrigMode=Exec
|
|||
|
Change User /Install > Nul:
|
|||
|
:Begin
|
|||
|
Set __SharedTools=Shared Tools
|
|||
|
If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
|
|||
|
If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
|
|||
|
Set __SharedTools=Shared Tools (x86)
|
|||
|
:acsrCont1
|
|||
|
..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\Office95.Key Office95.Tmp
|
|||
|
..\acsr "#__SharedTools#" "%__SharedTools%" Office95.Tmp Office95.Tmp2
|
|||
|
..\acsr "#INSTDIR#" "%O95INST%" Office95.Tmp2 Office95.Tmp3
|
|||
|
..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" Office95.Tmp3 Office95.Key
|
|||
|
Del Office95.Tmp >Nul: 2>&1
|
|||
|
Del Office95.Tmp2 >Nul: 2>&1
|
|||
|
Del Office95.Tmp3 >Nul: 2>&1
|
|||
|
regini Office95.key > Nul:
|
|||
|
|
|||
|
Rem <20>p<EFBFBD>G<EFBFBD>쥻<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>A<EFBFBD>N<EFBFBD>ܦ^<5E><><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>C
|
|||
|
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
|
|||
|
Set __OrigMode=
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20><><EFBFBD>s Ofc95Usr.Cmd <20>ӤϬM<CFAC><4D><EFBFBD>ڪ<EFBFBD><DAAA>w<EFBFBD>˥ؿ<CBA5><D8BF>A
|
|||
|
Rem <20>ñN<C3B1><4E><EFBFBD>[<5B>J UsrLogn2.Cmd <20><><EFBFBD>O<EFBFBD>ɡC
|
|||
|
Rem
|
|||
|
|
|||
|
..\acsr "#INSTDIR#" "%O95INST%" ..\Logon\Template\Ofc95Usr.Cmd ..\Logon\Ofc95Usr.Cmd
|
|||
|
|
|||
|
FindStr /I Ofc95Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
|
|||
|
If Not ErrorLevel 1 Goto Skip1
|
|||
|
Echo Call Ofc95Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
|
|||
|
:Skip1
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Echo.
|
|||
|
Echo <20><><EFBFBD>F<EFBFBD>T<EFBFBD>O Office 95 <20>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>ثe<D8AB>n<EFBFBD>J<EFBFBD><4A><EFBFBD>ϥΪ<CFA5>
|
|||
|
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>X<EFBFBD><58><EFBFBD>A<EFBFBD>n<EFBFBD>J<EFBFBD>A<EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Office 95 <20><><EFBFBD>ε{<7B><><EFBFBD>C
|
|||
|
Echo.
|
|||
|
Echo Microsoft Office 95 <20>h<EFBFBD>ϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>վ㧹<D5BE><E3A7B9><EFBFBD>C
|
|||
|
Pause
|
|||
|
|
|||
|
:Done
|
|||
|
|