127 lines
3.6 KiB
Batchfile
127 lines
3.6 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>N<EFBFBD>ɮױq<D7B1>ثe<D8AB>ϥΪ̽d<CCBD><64><EFBFBD>ƻs<C6BB><73><EFBFBD>Ҧ<EFBFBD><D2A6>ϥΪ̽d<CCBD><64><EFBFBD>Ҧb<D2A6><62><EFBFBD>m<EFBFBD>C
|
|||
|
Rem
|
|||
|
|
|||
|
If Not Exist "%ALLUSERSPROFILE%\%TEMPLATES%\EXCEL8.XLS" copy "%UserProfile%\%TEMPLATES%\EXCEL8.XLS" "%ALLUSERSPROFILE%\%TEMPLATES%\" /Y >Nul: 2>&1
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>q<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o Excel 97 <20>w<EFBFBD>˦<EFBFBD><CBA6>m<EFBFBD>C
|
|||
|
Rem <20>p<EFBFBD>G<EFBFBD>䤣<EFBFBD><E4A4A3><EFBFBD>A<EFBFBD>N<EFBFBD><4E><EFBFBD>] Excel <20>å<EFBFBD><C3A5>w<EFBFBD>ˡA<CBA1><41><EFBFBD><EFBFBD><EFBFBD>ܿ<EFBFBD><DCBF>~<7E>T<EFBFBD><54><EFBFBD>C
|
|||
|
Rem
|
|||
|
|
|||
|
..\ACRegL %Temp%\O97.Cmd O97INST "HKLM\Software\Microsoft\Office\8.0" "BinDirPath" "STRIPCHAR\1"
|
|||
|
If Not ErrorLevel 1 Goto Cont0
|
|||
|
Echo.
|
|||
|
Echo <20>L<EFBFBD>k<EFBFBD>q<EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Excel 97 <20><><EFBFBD>w<EFBFBD>˦<EFBFBD><CBA6>m<EFBFBD>C
|
|||
|
Echo <20>нT<D0BD>{<7B>O<EFBFBD>_<EFBFBD>w<EFBFBD>w<EFBFBD><77> Excel 97<39>A<EFBFBD>í<EFBFBD><C3AD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F>
|
|||
|
Echo <20><><EFBFBD>O<EFBFBD>ɡC
|
|||
|
Echo.
|
|||
|
Pause
|
|||
|
Goto Done
|
|||
|
|
|||
|
:Cont0
|
|||
|
Call %Temp%\O97.Cmd
|
|||
|
Del %Temp%\O97.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
|
|||
|
|
|||
|
If Exist "%COMMON_STARTUP%\Microsoft Find Fast.lnk" Del "%COMMON_STARTUP%\Microsoft Find Fast.lnk" >Nul: 2>&1
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>إ<EFBFBD> MsForms.Twd <20>ɮסA<D7A1><41><EFBFBD>O
|
|||
|
Rem Powerpoint <20><> Excel Add-ins ([<5B>ɮ<EFBFBD>] [<5B>x<EFBFBD>s<EFBFBD><73> HTML] <20><><EFBFBD><EFBFBD>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɮסC
|
|||
|
Rem <20><><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>ɡA<C9A1><41><EFBFBD>̱N<CCB1>|<7C>ξA<CEBE><41><EFBFBD><EFBFBD><EFBFBD>ɮרӨ<D7A8><D3A8>N<EFBFBD>t<EFBFBD><74><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD><6E><EFBFBD>ƪ<EFBFBD><C6AA>ɮסC
|
|||
|
Rem
|
|||
|
|
|||
|
If Exist %systemroot%\system32\MsForms.Twd Goto Cont2
|
|||
|
Copy Nul: %systemroot%\system32\MsForms.Twd >Nul: 2>&1
|
|||
|
Cacls %systemroot%\system32\MsForms.Twd /E /P "Authenticated Users":F >Nul: 2>&1
|
|||
|
:Cont2
|
|||
|
|
|||
|
If Exist %systemroot%\system32\RefEdit.Twd Goto Cont3
|
|||
|
Copy Nul: %systemroot%\system32\RefEdit.Twd >Nul: 2>&1
|
|||
|
Cacls %systemroot%\system32\RefEdit.Twd /E /P "Authenticated Users":F >Nul: 2>&1
|
|||
|
:Cont3
|
|||
|
|
|||
|
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\MsExcl97.Key MsExcl97.Tmp
|
|||
|
..\acsr "#__SharedTools#" "%__SharedTools%" MsExcl97.Tmp MsExcl97.Tmp2
|
|||
|
..\acsr "#INSTDIR#" "%O97INST%" MsExcl97.Tmp2 MsExcl97.Tmp3
|
|||
|
..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" MsExcl97.Tmp3 MsExcl97.key
|
|||
|
Del MsExcl97.Tmp >Nul: 2>&1
|
|||
|
Del MsExcl97.Tmp2 >Nul: 2>&1
|
|||
|
Del MsExcl97.Tmp3 >Nul: 2>&1
|
|||
|
|
|||
|
regini MsExcl97.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 Exl97Usr.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#" "%O97INST%" ..\Logon\Template\Exl97Usr.Cmd ..\Logon\Exl97Usr.Cmd
|
|||
|
|
|||
|
FindStr /I Exl97Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
|
|||
|
If Not ErrorLevel 1 Goto Skip1
|
|||
|
Echo Call Exl97Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
|
|||
|
:Skip1
|
|||
|
|
|||
|
Echo.
|
|||
|
Echo <20><><EFBFBD>F<EFBFBD><46><EFBFBD><EFBFBD> MS Excel 97 <20><><EFBFBD>T<EFBFBD>ާ@<40>A<EFBFBD>ثe<D8AB>w<EFBFBD>n<EFBFBD>J<EFBFBD><4A><EFBFBD>ϥΪ<CFA5>
|
|||
|
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>X<EFBFBD>A<EFBFBD>M<EFBFBD>᭫<EFBFBD>s<EFBFBD>n<EFBFBD>J<EFBFBD>A
|
|||
|
Echo <20>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>C
|
|||
|
Echo.
|
|||
|
Echo Microsoft Excel 97 <20>h<EFBFBD>ϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>վ<EFBFBD><D5BE>B<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD>
|
|||
|
Pause
|
|||
|
|
|||
|
:Done
|