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.

124 lines
3.7 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem ����֤ %RootDrive% �Ѿ������ã���Ϊ�����ű����øñ�����
  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 ��ע������ȡ Office 95 �İ�װλ�á������Ҳ�����
  13. Rem ���ٶ� Office û�а�װ����ʾ������Ϣ��
  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 �޷���ע�������� Office 95 ��װλ�á�
  21. Echo ����֤ Office 95 �Ƿ��Ѿ���װ������������
  22. Echo �����ű���
  23. Echo.
  24. Pause
  25. Goto Done
  26. :Cont0
  27. Call %Temp%\O95.Cmd
  28. Del %Temp%\O95.Cmd >Nul: 2>&1
  29. Rem #########################################################################
  30. Rem
  31. Rem �������û��ġ��������˵�ɾ�������ٲ��ҡ���
  32. Rem �����ٲ��ҡ�������Դ����Ӱ��ϵͳ���ܡ���Ҫ
  33. Rem ͬʱ���鵱ǰ�û��˵��������û��˵��������ٲ��ҡ�
  34. Rem �������ĸ��˵�ȡ����ϵͳ�Ƿ��ѷ���ִ��
  35. Rem ģʽ��
  36. Rem
  37. If Not Exist "%USER_STARTUP%\Microsoft Office ���ݹ�����.lnk" Goto Cont1
  38. Del "%USER_STARTUP%\Microsoft Office ���ݹ�����.lnk" >Nul: 2>&1
  39. :Cont1
  40. If Not Exist "%COMMON_STARTUP%\Microsoft Office ���ݹ�����.lnk" Goto Cont2
  41. Del "%COMMON_STARTUP%\Microsoft Office ���ݹ�����.lnk" >Nul: 2>&1
  42. :Cont2
  43. Rem #########################################################################
  44. Rem
  45. Rem �� PowerPoint �� Binder �ļ����Ƶ������û�Ŀ¼���Ա�
  46. Rem ���û���¼ʱ���Ը��Ƶ�ÿ���û�����Ŀ¼
  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 ����ע�����ʹ·��ָ���û����е�Ŀ¼��
  53. Rem
  54. Rem ����Ŀǰ���ڰ�װģʽ�У����ijɰ�װģʽ��
  55. Set __OrigMode=Install
  56. ChgUsr /query > Nul:
  57. if Not ErrorLevel 101 Goto Begin
  58. Set __OrigMode=Exec
  59. Change User /Install > Nul:
  60. :Begin
  61. Set __SharedTools=Shared Tools
  62. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
  63. If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
  64. Set __SharedTools=Shared Tools (x86)
  65. :acsrCont1
  66. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\Office95.Key Office95.Tmp
  67. ..\acsr "#__SharedTools#" "%__SharedTools%" Office95.Tmp Office95.Tmp2
  68. ..\acsr "#INSTDIR#" "%O95INST%" Office95.Tmp2 Office95.Tmp3
  69. ..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" Office95.Tmp3 Office95.Key
  70. Del Office95.Tmp >Nul: 2>&1
  71. Del Office95.Tmp2 >Nul: 2>&1
  72. Del Office95.Tmp3 >Nul: 2>&1
  73. regini Office95.key > Nul:
  74. Rem ����ԭʼģʽ��ִ�У����Ļ�ִ��ģʽ��
  75. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  76. Set __OrigMode=
  77. Rem #########################################################################
  78. Rem
  79. Rem ���� Ofc95Usr.Cmd ����ӳʵ�ʰ�װĿ¼��
  80. Rem �������ӵ� UsrLogn2.Cmd �ű�
  81. Rem
  82. ..\acsr "#INSTDIR#" "%O95INST%" ..\Logon\Template\Ofc95Usr.Cmd ..\Logon\Ofc95Usr.Cmd
  83. FindStr /I Ofc95Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  84. If Not ErrorLevel 1 Goto Skip1
  85. Echo Call Ofc95Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  86. :Skip1
  87. Rem #########################################################################
  88. Echo.
  89. Echo Ҫ��֤ Office 95 ���������У��������κ�
  90. Echo Office 95 Ӧ�ó���֮ǰ��Ŀǰ��¼���û�����
  91. Echo ��ע���������µ�¼��
  92. Echo.
  93. Echo Microsoft Office 95 ���û�Ӧ�ó��������ѽ���
  94. Pause
  95. :Done