111 lines
3 KiB
Batchfile
111 lines
3 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>o<EFBFBD>ӫ<EFBFBD><D3AB>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 [<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 Not Exist "%COMMON_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" Goto Cont1
|
|||
|
Del "%COMMON_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" >Nul: 2>&1
|
|||
|
:Cont1
|
|||
|
|
|||
|
If Not Exist "%USER_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" Goto Cont2
|
|||
|
Del "%USER_STARTUP%\Microsoft Office <20>ֳt<D6B3>d<EFBFBD>\<5C><><EFBFBD><EFBFBD>.lnk" >Nul: 2>&1
|
|||
|
:Cont2
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem <20>N<EFBFBD>ϥΪ̥ؿ<CCA5><D8BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϥΪ̥ؿ<CCA5><D8BF>C
|
|||
|
Rem
|
|||
|
|
|||
|
Rem <20>p<EFBFBD>G<EFBFBD>ثe<D8AB><65><EFBFBD>O<EFBFBD>w<EFBFBD>˼Ҧ<CBBC><D2A6>A<EFBFBD>N<EFBFBD>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD>w<EFBFBD>˼Ҧ<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\msproj95.Key msproj95.tmp
|
|||
|
..\acsr "#__SharedTools#" "%__SharedTools%" msproj95.tmp msproj95.Key
|
|||
|
Del msproj95.tmp >Nul: 2>&1
|
|||
|
regini msproj95.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>n<EFBFBD>J<EFBFBD><4A>Ū<EFBFBD><C5AA><EFBFBD>o<EFBFBD><6F><EFBFBD>ɮ<EFBFBD>
|
|||
|
Rem <20>¤<EFBFBD><C2A4>ϥΪ̦s<CCA6><73><EFBFBD>v<EFBFBD>C
|
|||
|
|
|||
|
Cacls ..\Logon\Template\prj95usr.key /E /P "Authenticated Users":F >Nul: 2>&1
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Rem
|
|||
|
Rem Add proj95Usr.Cmd to the UsrLogn2.Cmd script
|
|||
|
Rem
|
|||
|
|
|||
|
FindStr /I prj95Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
|
|||
|
If Not ErrorLevel 1 Goto Skip2
|
|||
|
Echo Call prj95Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
|
|||
|
:Skip2
|
|||
|
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Echo.
|
|||
|
Echo Administrator <20>|<EFBFBD>̷ӤU<EFBFBD>C<EFBFBD>B<EFBFBD>J<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>ӨϥΪ<EFBFBD>
|
|||
|
Echo <20>ߤ@<40><><EFBFBD>w<EFBFBD>]<5D>ؿ<EFBFBD>:
|
|||
|
Echo.
|
|||
|
Echo 1) <20>ϥαz<CEB1><7A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƹ<EFBFBD><C6B9><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>@<40>U [<5B>}<7D>l] <20>\<5C><><EFBFBD><EFBFBD><EFBFBD>C
|
|||
|
Echo 2) <20><><EFBFBD>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϥΪ<CFA5>]<5D>C
|
|||
|
Echo <20>ɮ<EFBFBD><C9AE>`<60>ޱN<DEB1>|<EFBFBD>X<EFBFBD>{<7B>C
|
|||
|
Echo 3) <20>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>k<EFBFBD>䪺 [<5B>{<7B><><EFBFBD><EFBFBD>] <20><><EFBFBD>Ƨ<EFBFBD><C6A7>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD>C
|
|||
|
Echo 4) <20>ϥαz<CEB1><7A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƹ<EFBFBD><C6B9><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>@<40>U<EFBFBD><55><EFBFBD><EFBFBD><EFBFBD>k<EFBFBD>䪺
|
|||
|
Echo Microsoft Project <20>ϥܡC
|
|||
|
Echo 5) <20><><EFBFBD>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD>e]<5D>C
|
|||
|
Echo 6) <20><><EFBFBD><EFBFBD> [<5B><><EFBFBD>|] <20><><EFBFBD><EFBFBD><DEBC>Ҩ<EFBFBD><D2A8>ܧ<EFBFBD><DCA7>}<7D>l<EFBFBD><6C><EFBFBD>m: <20><><EFBFBD>ءC<D8A1><43><EFBFBD><EFBFBD> [<5B>T<EFBFBD>w]<5D>C
|
|||
|
Echo.
|
|||
|
Echo <20>`<60>N<EFBFBD>ƶ<EFBFBD>: <20>C<EFBFBD>ӨϥΪ̱N %RootDrive% <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD>̪<EFBFBD><CCAA>D<EFBFBD>ؿ<EFBFBD><D8BF>C
|
|||
|
Echo <20>}<7D>l<EFBFBD><6C><EFBFBD>m<EFBFBD><6D><EFBFBD><EFBFBD>ij<EFBFBD><C4B3>: <20><> %RootDrive%\My Documents<74>C
|
|||
|
Echo.
|
|||
|
Pause
|
|||
|
|
|||
|
Rem #########################################################################
|
|||
|
|
|||
|
Echo.
|
|||
|
Echo <20><><EFBFBD>F<EFBFBD><46><EFBFBD><EFBFBD> Project 95 <20><><EFBFBD>`<60>ާ@<40>A<EFBFBD>ثe<D8AB>w<EFBFBD>n
|
|||
|
Echo <20>J<EFBFBD><4A><EFBFBD>ϥΪ̥<CEAA><CCA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>X<EFBFBD>A<EFBFBD>A<EFBFBD><41><EFBFBD>s<EFBFBD>n<EFBFBD>J<EFBFBD>A<EFBFBD>~<7E><>
|
|||
|
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>C
|
|||
|
Echo.
|
|||
|
Echo Microsoft Project 95 <20>h<EFBFBD>ϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>վ<EFBFBD><D5BE>B<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD>
|
|||
|
Pause
|
|||
|
|
|||
|
:Done
|