windows-nt/Source/XPSP1/NT/termsrv/admtools/appcmpt/cht/coffice8.cmd

133 lines
3.9 KiB
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@Echo off
Cls
Rem
Echo <20><> Administrator <20>w<EFBFBD><77> Corel WordPerfect Suite 8 <20><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɡC
Echo.
Echo Net Setup <20>O<EFBFBD>q netadmin <20><><EFBFBD>Ƨ<EFBFBD><C6A7>Ұ<EFBFBD> netsetup.exe <20>ɩҨϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>O<EFBFBD>C
Echo Node Setup <20>O<EFBFBD>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>˫<EFBFBD><CBAB>A<EFBFBD>z<EFBFBD>Ĥ@<40><><EFBFBD>n<EFBFBD>J<EFBFBD>ɩҨϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>O<EFBFBD>C
Echo **<2A><><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>˫<EFBFBD><CBAB>A<EFBFBD>z<EFBFBD><7A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɡA<C9A1>b<EFBFBD>`<60>I<EFBFBD>w<EFBFBD>˫<EFBFBD><CBAB>A<EFBFBD>z **
Echo **<2A><><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɡC** (<28>D<EFBFBD>`<60><><EFBFBD>n! <20>u<EFBFBD>A<EFBFBD><41> Admin)
Echo.
Echo <20>Ы<EFBFBD><D0AB><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>~<7E><>...
Pause > Nul:
cls
Echo.
Echo Corel WordPerfect Suite 8 <20><><EFBFBD><EFBFBD><EFBFBD>ϥ<EFBFBD> Netsetup.exe <20>Ӧw<D3A6>ˡC
Echo.
Echo <20>p<EFBFBD>G<EFBFBD>z<EFBFBD>S<EFBFBD><53><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Netsetup.exe<78>A<EFBFBD>в{<7B>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>{<7B><> (<28><> Ctrl-c)
Echo <20>ð<EFBFBD><C3B0><EFBFBD><EFBFBD>U<EFBFBD>C<EFBFBD>B<EFBFBD>J<EFBFBD>A<EFBFBD>ӭ<EFBFBD><D3AD>Ʀw<C6A6>ˡC
Echo <20>q [<5B><><EFBFBD><EFBFBD><EFBFBD>x] <20>Ѱ<EFBFBD> WordPerfect Suite 8 <20><><EFBFBD>w<EFBFBD><77>
Echo <20>Ш<EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD>x]<5D>A<EFBFBD><41> [<5B>s<EFBFBD>W/<2F><><EFBFBD><EFBFBD>] <20>{<7B><>
Echo <20><><EFBFBD><EFBFBD> Corel 8 CD-ROM <20><> NetAdmin <20>ؿ<EFBFBD><D8BF>U<EFBFBD><55> Netsetup.exe
Echo <20><><EFBFBD><EFBFBD> Corel WordPerfect Suite 8 <20><> Net Setup
Echo.
Echo <20>_<EFBFBD>h<EFBFBD>A<EFBFBD>Ы<EFBFBD><D0AB><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>~<7E><>...
Pause > NUL:
Echo.
Echo <20>p<EFBFBD>G Corel WordPerfect Suite <20><><EFBFBD><EFBFBD><EFBFBD>ɮץ<C9AE><D7A5>Q<EFBFBD>w<EFBFBD>˨<EFBFBD>
Echo "D:\Corel"<EFBFBD>AAdministrator <20><><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73> Cofc8ins.cmd <20>ɮסA
Echo <20>åH<C3A5>ɮצw<D7A6>˩Ҧb<D2A6><62><EFBFBD>ؿ<EFBFBD>
Echo <20>Ө<EFBFBD><D3A8>N "D:\Corel"<EFBFBD>C
Echo.
Echo <20>Ы<EFBFBD><D0AB><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>}<7D>l<EFBFBD><6C><EFBFBD>s Cofc8ins.cmd ...
Pause > NUL:
Notepad Cofc8ins.cmd
Echo.
Pause
Call Cofc8ins.cmd
Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
If "%_CHKROOT%" == "FAIL" Goto Done
Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
If "%_SETPATHS%" == "FAIL" Goto Done
..\acsr "#WPSINST#" "%WPSINST%" Template\Coffice8.key Coffice8.key
..\acsr "#WPSINST#" "%WPSINST%" ..\Logon\Template\Cofc8usr.cmd %temp%\Cofc8usr.tmp
..\acsr "#WPSINSTCMD#" "%WPSINST%\Suite8\Corel WordPerfect Suite 8 Setup.lnk" %temp%\Cofc8usr.tmp ..\Logon\Cofc8usr.cmd
Del %temp%\Cofc8usr.tmp >Nul: 2>&1
FindStr /I Cofc8Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
If Not ErrorLevel 1 Goto Skip0
Echo Call Cofc8Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
:Skip0
Echo <20><><EFBFBD>n: <20>z<EFBFBD>w<EFBFBD>Ұ<EFBFBD> Node <20>w<EFBFBD>˵{<7B><><EFBFBD>F<EFBFBD><46>?
Echo <20><><EFBFBD>n: <20>p<EFBFBD>G<EFBFBD>z<EFBFBD><EFBFBD><E8A7B9> Net <20>w<EFBFBD>˵{<7B><><EFBFBD>A<EFBFBD>z<EFBFBD>{<7B>b<EFBFBD><62><EFBFBD><EFBFBD>
Echo <20><><EFBFBD>n: <20>Ұ<EFBFBD> Node <20>w<EFBFBD>˵{<7B><><EFBFBD>C
Echo <20><><EFBFBD>n: <20>Ш̷ӳo<D3B3>ǨB<C7A8>J<EFBFBD>ӱҰ<D3B1> Node <20>w<EFBFBD>˵{<7B><>:
Echo <20><><EFBFBD>n: 1. <20><> Control-C <20>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD><4F>
Echo <20><><EFBFBD>n: 2. <20>n<EFBFBD>X<EFBFBD>õn<C3B5>J<EFBFBD><4A> Admin
Echo <20><><EFBFBD>n: 3. <20>ϥ<EFBFBD> [<5B>s<EFBFBD>W\<5C><><EFBFBD><EFBFBD>] <20>{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>\<5C><> (<28><>
Echo <20><><EFBFBD>n: <20>b<EFBFBD>ܧ<EFBFBD><DCA7>ϥΪ<CFA5> /<2F>w<EFBFBD>˼Ҧ<CBBC>) <20>Ұ<EFBFBD>
Echo <20><><EFBFBD>n: \corel\Suite 8\Corel WordPerfect Suite 8 <20>w<EFBFBD>˵{<7B><><EFBFBD><EFBFBD><EFBFBD>|
Echo <20><><EFBFBD>n: 4. <20>b<EFBFBD>w<EFBFBD>˹L<CBB9>{<7B><><EFBFBD>A<EFBFBD>п<EFBFBD><D0BF><EFBFBD> %RootDrive% <20><> Choose Destination
Echo <20><><EFBFBD>n: 5. <20>b Node Setup <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>Э<EFBFBD><D0AD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD><4F>
Rem <20>b<EFBFBD>t<EFBFBD>κ޲z<DEB2><7A><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Corel WordPerfect Suite 8 Node
Rem <20>w<EFBFBD>˵{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0><EFBFBD><EFBFBD>o<EFBFBD>ӫ<EFBFBD><D3AB>O<EFBFBD>ɡC
Rem.
Rem <20>b<EFBFBD>t<EFBFBD>κ޲z<DEB2><7A><EFBFBD>|<7C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Node <20>w<EFBFBD>˵{<7B><><EFBFBD>A<EFBFBD>Ы<EFBFBD> Ctrl-C
Rem <20>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ɨõn<C3B5>X<EFBFBD>A<EFBFBD>M<EFBFBD><4D><EFBFBD>H Administrator <20><><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>J<EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD>
Rem Corel WordPerfect Suite Node <20>w<EFBFBD>˵{<7B><><EFBFBD>A<EFBFBD>ñN<C3B1><4E><EFBFBD>ε{<7B><>
Rem <20>w<EFBFBD>˨<EFBFBD><CBA8>ϥΪ̪<CEAA><CCAA>u<EFBFBD>D<EFBFBD>ؿ<EFBFBD>: %RootDrive%<25>C
Rem.
Echo <20>_<EFBFBD>h<EFBFBD>A<EFBFBD>Ы<EFBFBD><D0AB><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>~<7E><>...
Pause > NUL:
If Not Exist "%COMMON_START_MENU%\Corel WordPerfect Suite 8" Goto skip1
Move "%COMMON_START_MENU%\Corel WordPerfect Suite 8" "%USER_START_MENU%\" > NUL: 2>&1
:skip1
If Not Exist "%COMMON_STARTUP%\Corel Desktop Application Director 8.LNK" Goto skip2
Move "%COMMON_STARTUP%\Corel Desktop Application Director 8.LNK" "%USER_STARTUP%\" > NUL: 2>&1
:skip2
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
regini COffice8.key > Nul:
Rem <20>p<EFBFBD>G<EFBFBD><47><EFBFBD>ӬO<D3AC><4F><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>A<EFBFBD>N<EFBFBD>N<EFBFBD>ܦ^<5E><><EFBFBD><EFBFBD><EFBFBD>Ҧ<EFBFBD><D2A6>C
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
Set __OrigMode=
Rem <20>b IDAPI <20><><EFBFBD>Ƨ<EFBFBD><C6A7><EFBFBD><EFBFBD>R<EFBFBD><52><EFBFBD>ɮסC
Rem CACLS <20><><EFBFBD>O<EFBFBD>u<EFBFBD><75><EFBFBD>b NTFS <20><EFBFBD><E6A6A1><EFBFBD>ϺФ<CFBA><D0A4>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C
Cacls "%UserProfile%\Corel\Suite8\Shared\Idapi\idapi.cfg" /E /T /G "Authenticated Users":C > Nul: 2>&1
Move "%UserProfile%\Corel\Suite8\Shared\Idapi\idapi.cfg" "%WPSINST%\Suite8\Shared\Idapi\" > NUL: 2>&1
Del /F /Q "%UserProfile%\Corel\Suite8\Shared\Idapi"
Echo Corel WordPerfect Suite 8 <20>h<EFBFBD>ϥΪ<CFA5><CEAA><EFBFBD><EFBFBD>ε{<7B><><EFBFBD>վ<EFBFBD><D5BE>B<EFBFBD>z<EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>C
Echo.
Echo Administrator <20>i<EFBFBD>H<EFBFBD><48><EFBFBD><EFBFBD> Node Setup Response <20>ɮרӱ<D7A8><D3B1><EFBFBD><EFBFBD>w<EFBFBD>˵{<7B><><EFBFBD><EFBFBD>
Echo <20>]<5D>w<EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>ԲӸ<D4B2><D3B8>T<EFBFBD>A<EFBFBD><41>Ū<EFBFBD><C5AA><EFBFBD>u<EFBFBD>W<EFBFBD><57><EFBFBD><EFBFBD><EFBFBD>άd<CEAC><64>
Echo Corel <20><><EFBFBD><EFBFBD><EFBFBD>C
Echo http://www.corel.com/support/netadmin/admin8/Installing_to_a_client.htm
Echo.
Pause
:Done