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.

187 lines
4.6 KiB

  1. @Echo Off
  2. Rem
  3. Rem �`�N: �b�o�ӫ��O�ɤ��� CACLS �R�O�u���b
  4. Rem NTFS �榡���ϺФ��Τ������C
  5. Rem
  6. Rem #########################################################################
  7. Rem
  8. Rem �q�ϥΪ̳]�w�ɤ��R�� Corel Office 7 �ؿ��C
  9. Rem �����A�j���ϥΪ̦^�������Ҧ��H�O�Ҹ��Ƨ�
  10. Rem �����ƻs�� [All Users] �����]�w�ɡC
  11. Rem
  12. Rem �p�G�ثe���O�b�����Ҧ��A���ܧ����w�˼Ҧ��C
  13. ChgUsr /query > Nul:
  14. if ErrorLevel 101 Goto Begin1
  15. Set __OrigMode=Install
  16. Change User /Execute > Nul:
  17. :Begin1
  18. Rem �p�G�ϥέ��l�Ҧ��A���ܧ����w�˼Ҧ��C
  19. If "%__OrigMode%" == "Install" Change User /Install > Nul:
  20. Set __OrigMode=
  21. Rem #########################################################################
  22. Rem
  23. Rem �ˬd %RootDrive% �O�_�w�]�w�A�ñN���]�w�����O�ɡC
  24. Rem
  25. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  26. If "%_CHKROOT%" == "FAIL" Goto Done
  27. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  28. If "%_SETPATHS%" == "FAIL" Goto Done
  29. Rem #########################################################################
  30. Rmdir "%USER_START_MENU%\Corel Office 7" /Q >Nul: 2>&1
  31. Rem
  32. Rem Instruct user to modify key file.
  33. Rem
  34. if "%RootDrive%"=="w:" goto PostDriveChange
  35. if "%RootDrive%"=="W:" goto PostDriveChange
  36. Echo �D�ؿ������]�w�b coffice7.key �ɮפ��C
  37. Echo.
  38. Echo �Ш̷ӳo�ǨB�J:
  39. Echo 1) �b�U�C���椤�j�M�D�ؿ��� ASCII �ȡC
  40. Echo �z���D�ؿ��� %RootDrive%
  41. Echo.
  42. Echo A = 61 E = 65 I = 69 M = 6D Q = 71 U = 75 Y = 79
  43. Echo B = 62 F = 66 J = 6A N = 6E R = 72 V = 76 Z = 7A
  44. Echo C = 63 G = 67 K = 6B O = 6F S = 73 W = 77
  45. Echo D = 64 H = 68 L = 6C P = 70 T = 74 X = 78
  46. Echo.
  47. Echo 2) ���O�ƥ��Ұʫ��A�H�B�J 1 �����쪺�ȨӨ��N
  48. Echo �Ҧ��� 77�C
  49. Echo �`�N�ƶ�: �нT�w�b���N�ާ@���A�å��s�W�h�l���Ů��C
  50. Echo 3) �x�s�ɮרõ����{���C�o�ӫ��O�ɱN�|�~�������C
  51. Echo.
  52. Pause
  53. NotePad "%SystemRoot%\Application Compatibility Scripts\Install\coffice7.key"
  54. :PostDriveChange
  55. Rem If not currently in Install Mode, change to Install Mode.
  56. Set __OrigMode=Install
  57. ChgUsr /query > Nul:
  58. if Not ErrorLevel 101 Goto Begin2
  59. Set __OrigMode=Exec
  60. Change User /Install > Nul:
  61. :Begin2
  62. regini COffice7.key > Nul:
  63. Rem �p�G�z�������l�Ҧ��A���ܧ��������Ҧ��C
  64. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  65. Set __OrigMode=
  66. Rem #########################################################################
  67. Rem
  68. Rem Modify logon script to copy iBase database from install location.
  69. Rem
  70. ..\ACRegL %Temp%\COffice7.Cmd COffice7Loc "HKLM\Software\PerfectOffice\Products\InfoCentral\7" "ExeLocation" "StripChar\2"
  71. If ErrorLevel 1 Goto InstallError
  72. Call %Temp%\COffice7.Cmd
  73. Del %Temp%\COffice7.Cmd >Nul: 2>&1
  74. ..\ACIniUpd /e "%COffice7Loc%\ICWin7\Local\Wpic.ini" Preferences Last_IBase "%RootDrive%\Personal\iBases\Personal\Personal"
  75. If ErrorLevel 1 Goto InstallError
  76. ..\acsr "#COFFICE7INST#" "%COffice7Loc%\\" ..\Logon\Template\cofc7usr.Cmd ..\Logon\cofc7usr.Cmd
  77. If ErrorLevel 1 Goto InstallError
  78. goto PostInstallError
  79. :InstallError
  80. Echo.
  81. Echo �L�k�q�n������ Corel Office 7 ���w�˦��m�C
  82. Echo �нT�{�O�_�w�w�� Corel Office 7�A�í��s�����o��
  83. Echo ���O�ɡC
  84. Echo.
  85. Pause
  86. Goto Done
  87. :PostInstallError
  88. Rem #########################################################################
  89. Rem
  90. Rem �N WordPerfect �d���ܧ󦨰�Ū�ɡC
  91. Rem �o�˷|�j���ϥΪ̦b�ܧ󤧫e���إ߽ƥ��C
  92. Rem �t�@�Ӥ覡�O���ѨC�ӨϥΪ̤@��
  93. Rem �p�H�����C
  94. Rem
  95. attrib +r %COffice7Loc%\Template\*wpt /s >Nul: 2>&1
  96. Rem #########################################################################
  97. Rem
  98. Rem �N COfc7Usr.Cmd �[�J UsrLogn2.Cmd ���O��
  99. Rem
  100. FindStr /I COfc7Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  101. If Not ErrorLevel 1 Goto Skip1
  102. Echo Call COfc7Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  103. :Skip1
  104. Rem #########################################################################
  105. Rem
  106. Rem �إ� "Personal" �ؿ� (�p�G�����s�b)�C
  107. Rem �����إ߳o�ӥؿ��A�]�� Admin �ݭn���ʰ����H�U
  108. Rem �����ܪ��B�J�C
  109. Rem
  110. If Not Exist "%RootDrive%\Personal" Md "%RootDrive%\Personal"
  111. Rem #########################################################################
  112. cls
  113. Echo.
  114. Echo Quattro Pro �w�]�ؿ������̷ӳo�ǨB�J�H����
  115. Echo �覡�i���ܧ�:
  116. Echo 1) �b���O�����J 'change user /install'�C
  117. Echo 2) �Ұ� Quattro Pro�C
  118. Echo 3) ���� [�s���ߦn�]�w] �\�������ءC
  119. Echo 4) ���� [�ɮ׿ﶵ] ���޼��ҡC
  120. Echo 5) �N�ؿ��ܧ��� %RootDrive%\Personal�C
  121. Echo 6) �������{���C
  122. Echo 7) �b���O�����J 'change user /execute'�C
  123. Echo.
  124. pause
  125. Echo.
  126. Echo ���F���� Corel Office 7 ���T�ާ@�A
  127. Echo �ثe�w�n�J���ϥΪ̥������n�X�A�M�᭫�s�n�J�A
  128. Echo �~���������ε{���C
  129. Echo.
  130. Echo Corel Office 7 �h�ϥΪ����ε{���վ��B�z����
  131. Pause
  132. :Done