windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/kor/office43.cmd

135 lines
4.5 KiB
Batchfile
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
@Echo Off
Cls
Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
If "%_CHKROOT%" == "FAIL" Goto Done
Echo.
Echo <20><> <20><>ũ<EFBFBD><C5A9>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD>, Administrator<6F><72> Access <20>۾<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD><CDB8><EFBFBD>
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Office private <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>.
Echo.
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ƹ<EFBFBD> Ű<><C5B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ӵ˴ϴ<CBB4>.
Echo.
Echo <20>׷<EFBFBD><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Administrator<6F><72> <20><><EFBFBD><EFBFBD> <20>ܰ踦 <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>:
Echo MS Access<73><73> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> [<5B><><EFBFBD><EFBFBD>] <20>޴<EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD> [<5B>ɼ<EFBFBD>]<5D><> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
Echo "<EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD>ͺ<EFBFBD><CDBA>̽<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD>"<EFBFBD><EFBFBD> "%RootDrive%\OFFICE43"<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٲߴϴ<DFB4>.
Echo MS Access<73><73> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
Echo.
Echo <20><><EFBFBD><EFBFBD>: [<5B><><EFBFBD><EFBFBD>] <20>޴<EFBFBD><DEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ͺ<EFBFBD><CDBA>̽<EFBFBD><CCBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>մϴ<D5B4>.
Echo.
Echo <20><> <20>ܰ踦 <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20><> <20>ƹ<EFBFBD> Ű<><C5B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ӵ˴ϴ<CBB4>...
Pause > NUL:
Echo.
Echo MS Office 4.3<EFBFBD><EFBFBD> "%SystemDrive%\MSOFFICE"<EFBFBD><EFBFBD> <20>ƴ<EFBFBD> <20>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD><CDB8><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20><><EFBFBD><EFBFBD>,
Echo Ofc43ins.cmd<6D><64> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4>.
Echo.
Echo Ofc43ins.cmd <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD> <20>ƹ<EFBFBD> Ű<><C5B0> <20><><EFBFBD><EFBFBD><EFBFBD>ʽÿ<CABD>...
Echo.
Pause > NUL:
Notepad Ofc43ins.cmd
Pause
Call ofc43ins.cmd
..\acsr "#OFC43INST#" "%OFC43INST%" ..\Logon\Template\ofc43usr.cmd ..\Logon\ofc43usr.cmd
..\acsr "#SYSTEMROOT#" "%SystemRoot%" ..\Logon\Template\ofc43usr.key ..\Logon\Template\ofc43usr.bak
..\acsr "#OFC43INST#" "%OFC43INST%" ..\Logon\Template\ofc43usr.bak ..\Logon\ofc43usr.key
Del /F /Q ..\Logon\Template\ofc43usr.bak
Rem
Rem <20><><EFBFBD><EFBFBD>: <20><> <20><>ũ<EFBFBD><C5A9>Ʈ <20><><EFBFBD><EFBFBD> CACLS <20><><EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD> NTFS<46><53> <20><><EFBFBD>˵<EFBFBD> <20><>Ƽ<EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD><EFBFBD><EFBFBD>
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
Rem
Rem <20><><EFBFBD><EFBFBD> <20><>ġ <20><><EFBFBD><20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ġ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
Set __OrigMode=Install
ChgUsr /query > Nul:
if Not ErrorLevel 101 Goto Begin
Set __OrigMode=Exec
Change User /Install > Nul:
:Begin
regini Office43.key > Nul:
Rem <20><><EFBFBD><EFBFBD> <20><><EFBFBD><20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E5BFB4><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
Set __OrigMode=
Rem
Rem Office 4.3<EFBFBD><EFBFBD> INI <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
Rem
Rem Excel<65><6C> Office Toolbar<61><72><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> msoffice.ini<6E><69> <20>ִ<EFBFBD> <20>۾<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD><CDB8><EFBFBD>
Rem <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. Office Toolbar<61><72> ǥ<><C7A5> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Excel<65><6C> Word <20>ڿ<EFBFBD> <20><> <20><>°<EFBFBD><C2B0>
Rem ǥ<><C7A5><EFBFBD>մϴ<D5B4>. msoffice.ini<6E><69> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, %SystemRoot%<25><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Rem <20><><EFBFBD>Դϴ<D4B4>.
..\Aciniupd /e "Msoffice.ini" "ToolbarOrder" "MSApp1" "1,1,"
..\Aciniupd /e "Msoffice.ini" "ToolbarOrder" "MSApp2" "2,1,,%RootDrive%\office43"
..\Aciniupd /e "Winword6.ini" "Microsoft Word" USER-DOT-PATH "%RootDrive%\OFFICE43\WINWORD"
..\Aciniupd /e "Winword6.ini" "Microsoft Word" WORKGROUP-DOT-PATH "%OFC43INST%\WINWORD\TEMPLATE"
..\Aciniupd /e "Winword6.ini" "Microsoft Word" INI-PATH "%RootDrive%\OFFICE43\WINWORD"
..\Aciniupd /e "Winword6.ini" "Microsoft Word" DOC-PATH "%RootDrive%\OFFICE43"
..\Aciniupd /e "Winword6.ini" "Microsoft Word" AUTOSAVE-PATH "%RootDrive%\OFFICE43"
..\Aciniupd /e "Excel5.ini" "Microsoft Excel" DefaultPath "%RootDrive%\OFFICE43"
..\Aciniupd /e "Excel5.ini" "Spell Checker" "Custom Dict 1" "%RootDrive%\OFFICE43\Custom.dic"
..\Aciniupd /k "Msacc20.ini" Libraries "WZTABLE.MDA" "%RootDrive%\OFFICE43\ACCESS\WZTABLE.MDA"
..\Aciniupd /k "Msacc20.ini" Libraries "WZLIB.MDA" "%RootDrive%\OFFICE43\ACCESS\WZLIB.MDA"
..\Aciniupd /k "Msacc20.ini" Libraries "WZBLDR.MDA" "%RootDrive%\OFFICE43\ACCESS\WZBLDR.MDA"
..\Aciniupd /e "Msacc20.ini" Options "SystemDB" "%RootDrive%\OFFICE43\ACCESS\System.MDA"
Rem
Rem WIN.INI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
Rem
..\Aciniupd /e "Win.ini" "MS Proofing Tools" "Custom Dict 1" "%RootDrive%\OFFICE43\Custom.dic"
Rem
Rem Artgalry <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٲٱ<D9B2>
Rem
cacls "%SystemRoot%\Msapps\Artgalry" /E /G "Terminal Server User":F > NUL: 2>&1
Rem
Rem MSQuery <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٲٱ<D9B2>
Rem
cacls "%SystemRoot%\Msapps\MSQUERY" /E /G "Terminal Server User":C > NUL: 2>&1
Rem
Rem Admin<69><6E> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD>, Msacc20.ini<6E><69> Admin<69><6E> windows <20><><EFBFBD><EFBFBD><EFBFBD>͸<EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
Rem
Copy "%SystemRoot%\Msacc20.ini" "%UserProfile%\Windows\" > NUL: 2>&1
Rem <20><>ġ <20><><EFBFBD>α׷<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> Ű<><C5B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʵ<EFBFBD><CAB5><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
Copy NUL: "%UserProfile%\Windows\Ofc43usr.dmy" > NUL: 2>&1
attrib +h "%UserProfile%\Windows\Ofc43usr.dmy" > NUL: 2>&1
FindStr /I Ofc43Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
If Not ErrorLevel 1 Goto cont2
Echo Call Ofc43Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
:cont2
Echo.
Echo Administrator<6F><72> <20>α׿<CEB1><D7BF><EFBFBD><EFBFBD>ߴٰ<DFB4> <20>ٽ<EFBFBD> <20>α׿<CEB1><D7BF>ؾ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.
Echo <20>α׿<CEB1><D7BF><EFBFBD> <20><>, Administrator<6F><72> ClipArt Gallery<72><79> <20>ʱ<EFBFBD>ȭ<EFBFBD>ϱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ܰ踦
Echo <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4> :
Echo Word<72><64> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> [<5B><>ü <20><><EFBFBD><EFBFBD>]<5D><> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
Echo Microsoft ClipArt Gallery<72><79> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
Echo <20><>Ÿ<EFBFBD><C5B8> Ŭ<><C5AC><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><><C8AE>]<5D><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
Echo ClipArt Gallery <20><> Word<72><64> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
Echo.
Echo Microsoft Office 4.3 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α׷<CEB1> Ʃ<><C6A9><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD><CFB7>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.
Echo.
Pause
:Done