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.

126 lines
3.7 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem �ˬd %RootDrive% �O�_�w�]�w�A�ñN���]�w�����O�ɡC
  5. Rem
  6. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  7. If "%_CHKROOT%" == "FAIL" Goto Done
  8. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  9. If "%_SETPATHS%" == "FAIL" Goto Done
  10. Rem #########################################################################
  11. Rem
  12. Rem �q�n�������o Office 95 �w�˦��m�C
  13. Rem �p�G�䤣���A�N���] Office 95 �å��w�˨����ܿ��~�T���C
  14. Rem
  15. ..\ACRegL %Temp%\O95.Cmd O95INST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRoot" "" ""
  16. If Not ErrorLevel 1 Goto Cont0
  17. ..\ACRegL %Temp%\O95.Cmd O95INST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRootPro" "" ""
  18. If Not ErrorLevel 1 Goto Cont0
  19. Echo.
  20. Echo �L�k�q�n�������� Office 95 ���w�˦��m�C
  21. Echo �нT�{ Office 95 �O�_�w�w�ˡA�M�᭫�s
  22. Echo �����o�ӫ��O�ɡC
  23. Echo.
  24. Echo.
  25. Pause
  26. Goto Done
  27. :Cont0
  28. Call %Temp%\O95.Cmd
  29. Del %Temp%\O95.Cmd >Nul: 2>&1
  30. Rem #########################################################################
  31. Rem
  32. Rem �q [�Ұ�] �\���������� [�ֳt�M��]�C
  33. Rem [�ֳt�M��] �|�ϥΤj�q�귽�í��C�t�ήį��C
  34. Rem �����ˬd�ثe���ϥΪ̥\�����ΩҦ��ϥΪ̥\�����C Which menu
  35. Rem �\�������ܤ覡�N���t�Ϊ��^�����Ҧ����覡�M�w�C
  36. Rem
  37. If Not Exist "%USER_STARTUP%\Microsoft Office �ֳt�d�\����.lnk" Goto Cont1
  38. Del "%USER_STARTUP%\Microsoft Office �ֳt�d�\����.lnk" >Nul: 2>&1
  39. :Cont1
  40. If Not Exist "%COMMON_STARTUP%\Microsoft Office �ֳt�d�\����.lnk" Goto Cont2
  41. Del "%COMMON_STARTUP%\Microsoft Office �ֳt�d�\����.lnk" >Nul: 2>&1
  42. :Cont2
  43. Rem #########################################################################
  44. Rem
  45. Rem �N PowerPoint �Τ������ɮ׽ƻs�� [All Users] �ؿ��A
  46. Rem ���ϥΪ̵n�J�A���̥i�H�Q�ƻs���ϥΪ̥D�ؿ����C
  47. Rem
  48. If Not Exist "%ALLUSERSPROFILE%\%TEMPLATES%\BINDER70.OBD" copy "%UserProfile%\%TEMPLATES%\BINDER70.OBD" "%ALLUSERSPROFILE%\%TEMPLATES%\" /Y >Nul: 2>&1
  49. If Not Exist "%ALLUSERSPROFILE%\%TEMPLATES%\PPT70.PPT" copy "%UserProfile%\%TEMPLATES%\PPT70.PPT" "%ALLUSERSPROFILE%\%TEMPLATES%" /Y >Nul: 2>&1
  50. Rem #########################################################################
  51. Rem
  52. Rem �ܧ��n�����X�A�N���|���V�ϥΪ̩ҫ��w��
  53. Rem �ؿ��C
  54. Rem
  55. Rem �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  56. Set __OrigMode=Install
  57. ChgUsr /query > Nul:
  58. if Not ErrorLevel 101 Goto Begin
  59. Set __OrigMode=Exec
  60. Change User /Install > Nul:
  61. :Begin
  62. Set __SharedTools=Shared Tools
  63. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
  64. If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
  65. Set __SharedTools=Shared Tools (x86)
  66. :acsrCont1
  67. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\Office95.Key Office95.Tmp
  68. ..\acsr "#__SharedTools#" "%__SharedTools%" Office95.Tmp Office95.Tmp2
  69. ..\acsr "#INSTDIR#" "%O95INST%" Office95.Tmp2 Office95.Tmp3
  70. ..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" Office95.Tmp3 Office95.Key
  71. Del Office95.Tmp >Nul: 2>&1
  72. Del Office95.Tmp2 >Nul: 2>&1
  73. Del Office95.Tmp3 >Nul: 2>&1
  74. regini Office95.key > Nul:
  75. Rem �p�G�쥻�O�����Ҧ��A�N�ܦ^�����Ҧ��C
  76. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  77. Set __OrigMode=
  78. Rem #########################################################################
  79. Rem
  80. Rem ���s Ofc95Usr.Cmd �ӤϬM���ڪ��w�˥ؿ��A
  81. Rem �ñN���[�J UsrLogn2.Cmd ���O�ɡC
  82. Rem
  83. ..\acsr "#INSTDIR#" "%O95INST%" ..\Logon\Template\Ofc95Usr.Cmd ..\Logon\Ofc95Usr.Cmd
  84. FindStr /I Ofc95Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  85. If Not ErrorLevel 1 Goto Skip1
  86. Echo Call Ofc95Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  87. :Skip1
  88. Rem #########################################################################
  89. Echo.
  90. Echo ���F�T�O Office 95 �A�������A�ثe�n�J���ϥΪ�
  91. Echo �������n�X���A�n�J�A�~������ Office 95 ���ε{���C
  92. Echo.
  93. Echo Microsoft Office 95 �h�ϥΪ����ε{���վ㧹���C
  94. Pause
  95. :Done