Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
3.9 KiB

  1. @Echo off
  2. Cls
  3. Rem
  4. Echo �� Administrator �w�� Corel WordPerfect Suite 8 �����O�ɡC
  5. Echo.
  6. Echo Net Setup �O�q netadmin ���Ƨ��Ұ� netsetup.exe �ɩҨϥΪ����O�C
  7. Echo Node Setup �O�b�����w�˫��A�z�Ĥ@���n�J�ɩҨϥΪ����O�C
  8. Echo **�����w�˫��A�z���������o�ӫ��O�ɡA�b�`�I�w�˫��A�z **
  9. Echo **�����A�������o�ӫ��O�ɡC** (�D�`���n! �u�A�� Admin)
  10. Echo.
  11. Echo �����N���~��...
  12. Pause > Nul:
  13. cls
  14. Echo.
  15. Echo Corel WordPerfect Suite 8 �����ϥ� Netsetup.exe �Ӧw�ˡC
  16. Echo.
  17. Echo �p�G�z�S������ Netsetup.exe�A�в{�b�����{�� (�� Ctrl-c)
  18. Echo �ð����U�C�B�J�A�ӭ��Ʀw�ˡC
  19. Echo �q [�����x] �Ѱ� WordPerfect Suite 8 ���w��
  20. Echo �� [�����x]�A�� [�s�W/����] �{��
  21. Echo ���� Corel 8 CD-ROM �� NetAdmin �ؿ��U�� Netsetup.exe
  22. Echo ���� Corel WordPerfect Suite 8 �� Net Setup
  23. Echo.
  24. Echo �_�h�A�����N���~��...
  25. Pause > NUL:
  26. Echo.
  27. Echo �p�G Corel WordPerfect Suite �����ɮץ��Q�w�˨�
  28. Echo "D:\Corel"�AAdministrator �����s�� Cofc8ins.cmd �ɮסA
  29. Echo �åH�ɮצw�˩Ҧb���ؿ�
  30. Echo �Ө��N "D:\Corel"�C
  31. Echo.
  32. Echo �����N���}�l���s Cofc8ins.cmd ...
  33. Pause > NUL:
  34. Notepad Cofc8ins.cmd
  35. Echo.
  36. Pause
  37. Call Cofc8ins.cmd
  38. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  39. If "%_CHKROOT%" == "FAIL" Goto Done
  40. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  41. If "%_SETPATHS%" == "FAIL" Goto Done
  42. ..\acsr "#WPSINST#" "%WPSINST%" Template\Coffice8.key Coffice8.key
  43. ..\acsr "#WPSINST#" "%WPSINST%" ..\Logon\Template\Cofc8usr.cmd %temp%\Cofc8usr.tmp
  44. ..\acsr "#WPSINSTCMD#" "%WPSINST%\Suite8\Corel WordPerfect Suite 8 Setup.lnk" %temp%\Cofc8usr.tmp ..\Logon\Cofc8usr.cmd
  45. Del %temp%\Cofc8usr.tmp >Nul: 2>&1
  46. FindStr /I Cofc8Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  47. If Not ErrorLevel 1 Goto Skip0
  48. Echo Call Cofc8Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  49. :Skip0
  50. Echo ���n: �z�w�Ұ� Node �w�˵{���F��?
  51. Echo ���n: �p�G�z�觹�� Net �w�˵{���A�z�{�b����
  52. Echo ���n: �Ұ� Node �w�˵{���C
  53. Echo ���n: �Ш̷ӳo�ǨB�J�ӱҰ� Node �w�˵{��:
  54. Echo ���n: 1. �� Control-C �ӵ����o�ӫ��O��
  55. Echo ���n: 2. �n�X�õn�J�� Admin
  56. Echo ���n: 3. �ϥ� [�s�W\����] �{�������s���\�� (��
  57. Echo ���n: �b�ܧ��ϥΪ� /�w�˼Ҧ�) �Ұ�
  58. Echo ���n: \corel\Suite 8\Corel WordPerfect Suite 8 �w�˵{�����|
  59. Echo ���n: 4. �b�w�˹L�{���A�п��� %RootDrive% �� Choose Destination
  60. Echo ���n: 5. �b Node Setup �������A�Э��s�����o�ӫ��O��
  61. Rem �b�t�κ޲z������ Corel WordPerfect Suite 8 Node
  62. Rem �w�˵{�������Ӱ����o�ӫ��O�ɡC
  63. Rem.
  64. Rem �b�t�κ޲z���|������ Node �w�˵{���A�Ы� Ctrl-C
  65. Rem �ӵ������O�ɨõn�X�A�M���H Administrator �����n�J�A����
  66. Rem Corel WordPerfect Suite Node �w�˵{���A�ñN���ε{��
  67. Rem �w�˨��ϥΪ̪��u�D�ؿ�: %RootDrive%�C
  68. Rem.
  69. Echo �_�h�A�����N���~��...
  70. Pause > NUL:
  71. If Not Exist "%COMMON_START_MENU%\Corel WordPerfect Suite 8" Goto skip1
  72. Move "%COMMON_START_MENU%\Corel WordPerfect Suite 8" "%USER_START_MENU%\" > NUL: 2>&1
  73. :skip1
  74. If Not Exist "%COMMON_STARTUP%\Corel Desktop Application Director 8.LNK" Goto skip2
  75. Move "%COMMON_STARTUP%\Corel Desktop Application Director 8.LNK" "%USER_STARTUP%\" > NUL: 2>&1
  76. :skip2
  77. Rem �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  78. Set __OrigMode=Install
  79. ChgUsr /query > Nul:
  80. if Not ErrorLevel 101 Goto Begin
  81. Set __OrigMode=Exec
  82. Change User /Install > Nul:
  83. :Begin
  84. regini COffice8.key > Nul:
  85. Rem �p�G���ӬO�����Ҧ��A�N�N�ܦ^�����Ҧ��C
  86. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  87. Set __OrigMode=
  88. Rem �b IDAPI ���Ƨ����R���ɮסC
  89. Rem CACLS ���O�u���b NTFS �榡���ϺФ��Τ������C
  90. Cacls "%UserProfile%\Corel\Suite8\Shared\Idapi\idapi.cfg" /E /T /G "Authenticated Users":C > Nul: 2>&1
  91. Move "%UserProfile%\Corel\Suite8\Shared\Idapi\idapi.cfg" "%WPSINST%\Suite8\Shared\Idapi\" > NUL: 2>&1
  92. Del /F /Q "%UserProfile%\Corel\Suite8\Shared\Idapi"
  93. Echo Corel WordPerfect Suite 8 �h�ϥΪ����ε{���վ��B�z�w�����C
  94. Echo.
  95. Echo Administrator �i�H���� Node Setup Response �ɮרӱ����w�˵{����
  96. Echo �]�w�C�����ԲӸ��T�A��Ū���u�W�����άd��
  97. Echo Corel �����C
  98. Echo http://www.corel.com/support/netadmin/admin8/Installing_to_a_client.htm
  99. Echo.
  100. Pause
  101. :Done