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

133 lines
3.7 KiB
Batchfile
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
@Echo off
Cls
Rem
Echo Ϊ<><CEAA><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1>װ Corel WordPerfect Suite 8 <20>Ľű<C4BD><C5B1><EFBFBD>
Echo.
Echo <20><> netadmin <20>ļ<EFBFBD><C4BC>е<EFBFBD><D0B5><EFBFBD> netsetup.exe<78><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>簲װ<E7B0B2><D7B0>
Echo <20><><EFBFBD><EFBFBD><EFBFBD>簲װ<E7B0B2><D7B0><EFBFBD><EFBFBD>һ<EFBFBD>ε<EFBFBD>¼ʱ<C2BC><CAB1><EFBFBD><EFBFBD><EFBFBD>ǽڵ㰲װ<E3B0B2><D7B0>
Echo **<2A><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>簲װ<E7B0B2><D7B0><EFBFBD>ͽڵ㰲װ<E3B0B2><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> **
Echo **<2A><><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1><EFBFBD>** (<28>dz<EFBFBD><C7B3>ؼ<EFBFBD>! ֻ<><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Աʹ<D4B1><CAB9>)
Echo.
Echo <20><EFBFBD><EBB0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...
Pause > Nul:
cls
Echo.
Echo Ӧ<><D3A6><EFBFBD><EFBFBD> Netsetup.exe <20><>װ Corel WordPerfect Suite 8<><38>
Echo.
Echo <20><><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Netsetup.exe<78><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>(<28><> Ctrl-c)
Echo <20><>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD><D8B8><EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Echo <20>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塱ж<E5A1B1><D0B6> WordPerfect Suite 8
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E5A1B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Echo <20><> Corel 8 CD-ROM <20>е<EFBFBD> NetAdmin Ŀ¼<C4BF><C2BC>ѡ<EFBFBD><D1A1> Netsetup.exe
Echo <20><><EFBFBD><EFBFBD> Corel WordPerfect Suite 8 <20><><EFBFBD><EFBFBD><EFBFBD>簲װ
Echo.
Echo <20><><EFBFBD>򣬰<EFBFBD><F2A3ACB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...
Pause > NUL:
Echo.
Echo <20><><EFBFBD><EFBFBD> Corel WordPerfect Suite <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>û<EFBFBD>а<EFBFBD>װ<EFBFBD><D7B0>
Echo "D:\Corel" <20>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1>Ҫ<EFBFBD><EFBFBD>ļ<EFBFBD> Cofc8ins.cmd<6D><64>
Echo <20><><EFBFBD>ð<EFBFBD>װ<EFBFBD><D7B0><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ڵ<EFBFBD>Ŀ¼<C4BF>
Echo "D:\Corel"<EFBFBD><EFBFBD>
Echo.
Echo <20><EFBFBD><EBB0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD> 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>: <20><>ʼ<EFBFBD>ڵ㰲װ<E3B0B2><D7B0><EFBFBD><EFBFBD>?
Echo <20>ؼ<EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>簲װ<E7B0B2><D7B0><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>
Echo <20>ؼ<EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD>ڵ㰲װ<E3B0B2><D7B0>
Echo <20>ؼ<EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD>ڵ㰲װ:
Echo <20>ؼ<EFBFBD>: 1. <20><> Control-C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD>
Echo <20>ؼ<EFBFBD>: 2. <20><>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Թ<EFBFBD><D4B9><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD>ݵ<EFBFBD>¼
Echo <20>ؼ<EFBFBD>: 3. <20>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD><EFBFBD><><C9BE><EFBFBD><EFBFBD><EFBFBD>򡱣<EFBFBD><F2A1B1A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>
Echo <20>ؼ<EFBFBD>: <20>ڡ<EFBFBD><DAA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>/<2F><>װ<EFBFBD><D7B0>ģʽ<C4A3><CABD>)<29><><EFBFBD><EFBFBD>
Echo <20>ؼ<EFBFBD>: \corel\Suite 8\Corel WordPerfect Suite 8 <20><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷ<EFBFBD>ʽ
Echo <20>ؼ<EFBFBD>: 4. <20><>װ<EFBFBD>ڼ䣬Ϊ<E4A3AC><CEAA>ѡ<EFBFBD><D1A1>Ŀ<EFBFBD>ѡ<EAA1B1><D1A1> %RootDrive%
Echo <20>ؼ<EFBFBD>: 5. <20>ڽڵ㰲װ<E3B0B2><D7B0><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD>
Rem Ӧ<><D3A6><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD> Corel WordPerfect Suite 8 <20>ڵ<EFBFBD>
Rem <20><>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1><EFBFBD>
Rem.
Rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1>δ<EFBFBD><CEB4><EFBFBD>ɽڵ㰲װ<E3B0B2><D7B0><EFBFBD>밴 Ctrl-C<><43>
Rem <20>˳<EFBFBD><CBB3>ű<EFBFBD><C5B1><EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD>Թ<EFBFBD><D4B9><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٴε<D9B4>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Rem Corel WordPerfect Suite <20>ڵ㰲װ<E3B0B2><D7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD>װ
Rem <20><><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>Ŀ¼: %RootDrive%<25><>
Rem.
Echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBB0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...
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><><EFBFBD><EFBFBD>Ŀǰ<C4BF><C7B0><EFBFBD>ڰ<EFBFBD>װģʽ<C4A3>У<EFBFBD><D0A3><EFBFBD><EFBFBD>ijɰ<C4B3>װģʽ<C4A3><CABD>
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><><EFBFBD><EFBFBD>ԭʼģʽ<C4A3><CABD>ִ<EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD>Ļ<EFBFBD>ִ<EFBFBD><D6B4>ģʽ<C4A3><CABD>
If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
Set __OrigMode=
Rem ɾ<><C9BE> IDAPI <20>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>е<EFBFBD><D0B5>ļ<EFBFBD><C4BC><EFBFBD>
Rem <20><><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><C5B1>е<EFBFBD> CACLS <20><><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB> NTFS <20><>ʽ<EFBFBD>Ĵ<EFBFBD><C4B4>̷<EFBFBD><CCB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>
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><><EFBFBD>û<EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѽ<EFBFBD><D1BD><EFBFBD><EFBFBD><EFBFBD>
Echo.
Echo <20><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽڵ㰲װ<E3B0B2><D7B0>Ӧ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD>װ
Echo <20><><EFBFBD>á<EFBFBD><C3A1>й<EFBFBD><D0B9><EFBFBD>ϸ<EFBFBD><CFB8>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Echo Corel Web վ<>
Echo http://www.corel.com/support/netadmin/admin8/Installing_to_a_client.htm
Echo.
Pause
:Done