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.

150 lines
4.8 KiB

  1. @Echo Off
  2. Cls
  3. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  4. If "%_CHKROOT%" == "FAIL" Goto Done
  5. Echo.
  6. Echo.
  7. Echo Administrator �ݭn�N Access �u�@�ؿ��ܧ����ϥΪ̪�
  8. Echo Office �p�H�ؿ��A�~�������o�ӫ��O�ɡC
  9. Echo.
  10. Echo �����o�Ӿާ@���A�Ы����@�����~���C
  11. Echo.
  12. Echo �_�h�AAdministrator �ݭn�����U�C�B�J:
  13. Echo �Ұ� MS Access�A�ñq [View] �\���������� [Options]
  14. Echo �N [Default Database Directory] �ܧ��� "%RootDrive%\OFFICE43"
  15. Echo ���� MS Access
  16. Echo.
  17. Echo �`�N�ƶ�: �z�ݭn�إߤ@�ӷs�����Ʈw�A�~���Ѿ\ [View] �\�����C
  18. Echo.
  19. Echo �����o�ǨB�J���A�Ы����N���~��...
  20. Pause > NUL:
  21. Echo.
  22. Echo �p�G�z�N MS Office 4.3 �w�˦b "%SystemDrive%\MSOFFICE" �H�~���ؿ��A
  23. Echo �N�������s Ofc43ins.cmd�C
  24. Echo.
  25. Echo �����N���}�l���s Ofc43ins.cmd ...
  26. Echo.
  27. Pause > NUL:
  28. Notepad Ofc43ins.cmd
  29. Pause
  30. Call ofc43ins.cmd
  31. ..\acsr "#OFC43INST#" "%OFC43INST%" ..\Logon\Template\ofc43usr.cmd ..\Logon\ofc43usr.cmd
  32. ..\acsr "#SYSTEMROOT#" "%SystemRoot%" ..\Logon\Template\ofc43usr.key ..\Logon\Template\ofc43usr.bak
  33. ..\acsr "#OFC43INST#" "%OFC43INST%" ..\Logon\Template\ofc43usr.bak ..\Logon\ofc43usr.key
  34. Del /F /Q ..\Logon\Template\ofc43usr.bak
  35. Rem
  36. Rem �`�N: CACLS ���O�u���b NTFS �榡���ϺФ��Τ������C
  37. Rem
  38. Rem �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  39. Set __OrigMode=Install
  40. ChgUsr /query > Nul:
  41. if Not ErrorLevel 101 Goto Begin
  42. Set __OrigMode=Exec
  43. Change User /Install > Nul:
  44. :Begin
  45. regini Office43.key > Nul:
  46. Rem �p�G���ӬO�����Ҧ��A�N�N�ܦ^�����Ҧ��C
  47. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  48. Set __OrigMode=
  49. Rem
  50. Rem ���s Office 4.3 �� INI �ɮ�
  51. Rem
  52. Rem �b msoffice.ini ���]�w Excel �u�@�ؿ� (�p�G�q Office �u���C��
  53. Rem �Ұ� Excel) Office Toolbar �зdz]�w�|�N Excel ���b Word ���m
  54. Rem �����C �p�G msoffice.ini ���s�b�A�|�N���إߦb%SystemRoot% �ؿ����C
  55. Rem
  56. ..\Aciniupd /e "Msoffice.ini" "ToolbarOrder" "MSApp1" "1,1,"
  57. ..\Aciniupd /e "Msoffice.ini" "ToolbarOrder" "MSApp2" "2,1,,%RootDrive%\office43"
  58. ..\Aciniupd /e "word6.ini" "Microsoft Word" USER-DOT-PATH "%RootDrive%\OFFICE43\WINWORD"
  59. ..\Aciniupd /e "word6.ini" "Microsoft Word" WORKGROUP-DOT-PATH "%OFC43INST%\WINWORD\TEMPLATE"
  60. ..\Aciniupd /e "word6.ini" "Microsoft Word" INI-PATH "%RootDrive%\OFFICE43\WINWORD"
  61. ..\Aciniupd /e "word6.ini" "Microsoft Word" DOC-PATH "%RootDrive%\OFFICE43"
  62. ..\Aciniupd /e "word6.ini" "Microsoft Word" AUTOSAVE-PATH "%RootDrive%\OFFICE43"
  63. ..\Aciniupd /e "Excel5.ini" "Microsoft Excel" DefaultPath "%RootDrive%\OFFICE43"
  64. ..\Aciniupd /e "Excel5.ini" "Spell Checker" "Custom Dict 1" "%RootDrive%\OFFICE43\Custom.dic"
  65. ..\Aciniupd /k "Msacc20.ini" Libraries "WZTABLE.MDA" "%RootDrive%\OFFICE43\ACCESS\WZTABLE.MDA"
  66. ..\Aciniupd /k "Msacc20.ini" Libraries "WZLIB.MDA" "%RootDrive%\OFFICE43\ACCESS\WZLIB.MDA"
  67. ..\Aciniupd /k "Msacc20.ini" Libraries "WZBLDR.MDA" "%RootDrive%\OFFICE43\ACCESS\WZBLDR.MDA"
  68. ..\Aciniupd /e "Msacc20.ini" Options "SystemDB" "%RootDrive%\OFFICE43\ACCESS\System.MDA"
  69. Rem
  70. Rem Update the WIN.INI
  71. Rem
  72. ..\Aciniupd /e "Win.ini" "MS Proofing Tools" "Custom Dict 1" "%RootDrive%\OFFICE43\Custom.dic"
  73. Rem
  74. Rem �إ� Artgalry ���Ƨ����ϥ��v���C
  75. Rem
  76. cacls "%SystemRoot%\Msapps\Artgalry" /E /G "Terminal Server User":F > NUL: 2>&1
  77. Rem
  78. Rem �ܧ� MSQuery ���Ƨ����ϥ��v���C
  79. Rem
  80. cacls "%SystemRoot%\Msapps\MSQUERY" /E /G "Terminal Server User":C > NUL: 2>&1
  81. Rem
  82. Rem �N Msacc20.ini �ƻs���t�κ޲z���� windows �ؿ��A�]���t�κ޲z�����ɮ׬O�ª����C
  83. Rem
  84. Copy "%SystemRoot%\Msacc20.ini" "%UserProfile%\Windows\" > NUL: 2>&1
  85. Rem �إߤ@�ӵ��]�ɮסAInstaller �~���|���n�����X�i���Ǽ��C
  86. Copy NUL: "%UserProfile%\Windows\Ofc43usr.dmy" > NUL: 2>&1
  87. attrib +h "%UserProfile%\Windows\Ofc43usr.dmy" > NUL: 2>&1
  88. FindStr /I Ofc43Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  89. If Not ErrorLevel 1 Goto cont2
  90. Echo Call Ofc43Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  91. :cont2
  92. Echo.
  93. Echo �t�κ޲z���������n�X�A�A���s�n�J�A�~�����ܧ��ͮġC
  94. Echo �n�J���A�t�κ޲z���]���������U�C�B�J�A�~�����l��
  95. Echo Clip Art Gallery:
  96. Echo ���� Word �ÿ��� [���J����]�C
  97. Echo ���� Microsoft ClipArt Gallery�C
  98. Echo �� [�T�w] �ӶפJ���ܪ� clipart�C
  99. Echo ���� ClipArt Gallery �� Word�C
  100. Echo.
  101. Echo �t�κ޲z���i�H���C�ӨϥΪ̫��w�ߤ@�ʪ��w�]�ؿ��A�B�J�p�U:
  102. Echo.
  103. Echo 1) �ηƹ��k���� [�}�l] �\�����C
  104. Echo 2) �b�����\���������� [�s���Ҧ��ϥΪ�] �ӱҰ��ɮ��`�ޡC
  105. Echo 3) �b�ɮ��`�ޥk�赡�椤�� [�{����] ���Ƨ��W�����U�C
  106. Echo 4) �ηƹ��k���A�b�ɮ��`�ޥk�赡�椤�� Microsoft Office �ϥܤW�����U�C
  107. Echo 5) �b�ɮ��`�ޥk�赡�椤�� Microsoft PowerPoint �ϥܤW���@�U�C
  108. Echo 6) �b�����\���������� [���e]�C
  109. Echo 7) ���� [���|] ���޼��ҡA�ñN [�Ұʦb:] ������ �ܧ���
  110. Echo %%RootDrive%%\My Documents�C
  111. Echo 8) ���� [�T�w]�C
  112. Echo.
  113. Echo �`�N: �C�ӨϥΪ̳������������D�ؿ��� %%RootDrive%%�C
  114. Echo %%RootDrive%%\My Documents �u�O�@�ӫ�ij�ȡC
  115. Echo.
  116. Pause
  117. Echo Microsoft Office 4.3 �h�ϥΪ����ε{���վ��B�z�����C
  118. Echo.
  119. Pause
  120. :Done