Leaked source code of windows server 2003
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.

133 lines
3.4 KiB

  1. @Echo Off
  2. Cls
  3. Rem #########################################################################
  4. Rem
  5. Rem ȷ���Ƿ� %ROOTDRIVE% �ѱ����ã��������ڸ������ű���
  6. Rem
  7. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  8. If "%_CHKROOT%" == "FAIL" Goto Done
  9. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  10. If "%_SETPATHS%" == "FAIL" Goto Done
  11. Rem #########################################################################
  12. Rem
  13. Rem ��ע�����л��� Visio �İ�װλ��
  14. Rem ���� Visio �汾: Standard/Technical/Professional
  15. Rem
  16. Set VisioVer=Standard
  17. ..\ACRegL %Temp%\Vso.cmd VSO5INST "HKLM\Software\Visio\Visio Standard\5.0" "InstallDir" ""
  18. If Not ErrorLevel 1 Goto Cont0
  19. Set VisioVer=Technical
  20. ..\ACRegl %Temp%\Vso.cmd VSO5INST "HKLM\Software\Visio\Visio Technical\5.0" "InstallDir" ""
  21. If Not ErrorLevel 1 Goto Cont0
  22. Set VisioVer=Professional
  23. ..\ACRegl %Temp%\Vso.cmd VSO5INST "HKLM\Software\Visio\Visio Professional\5.0" "InstallDir" ""
  24. If Not ErrorLevel 1 Goto Cont0
  25. Set VisioVer=Enterprise
  26. ..\ACRegl %Temp%\Vso.cmd VSO5INST "HKLM\Software\Visio\Visio Enterprise\5.0" "InstallDir" ""
  27. If Not ErrorLevel 1 Goto Cont0
  28. Set VisioVer=TechnicalPlus
  29. ..\ACRegl %Temp%\Vso.cmd VSO5INST "HKLM\Software\Visio\Visio Technical 5.0 Plus\5.0" "InstallDir" ""
  30. If Not ErrorLevel 1 Goto Cont0
  31. Set VisioVer=ProfessionalAndTechnical
  32. ..\ACRegl %Temp%\Vso.cmd VSO5INST "HKLM\Software\Visio\Visio Professional and Technical\5.0" "InstallDir" ""
  33. If Not ErrorLevel 1 Goto Cont0
  34. Rem
  35. Rem ������װ�汾ʧ��
  36. Rem
  37. Echo.
  38. Echo �޷���ע�������л��� Visio 5.0 �İ�װλ�á�
  39. Echo ȷ���Ƿ� Visio 5.0 �ѱ���װ�������������и������ű���
  40. Echo
  41. Echo.
  42. Pause
  43. Goto Done
  44. Rem
  45. Rem ���� VSO5INST ��������ָ�� Visio �İ�װĿ¼
  46. Rem
  47. :Cont0
  48. Call %Temp%\Vso.cmd
  49. Del %Temp%\Vso.cmd >NUL: 2>&1
  50. Rem
  51. Rem ��ʾ��װ���ĸ��汾
  52. Rem
  53. Echo.
  54. Echo Ӧ�ó��������ű����⵽�汾 Visio %VisioVer%
  55. Echo.
  56. Rem
  57. Rem �����ĵ�����Ŀ¼��ÿ�û��ļ��� My Documents
  58. Rem �����ǰ�װ�û��ļ��� My Documents
  59. Rem
  60. ..\Aciniupd /e "%VSO5INST%\System\Visio.ini" "Application" "DrawingsPath" "%ROOTDRIVE%\%MY_DOCUMENTS%"
  61. Rem
  62. Rem �û��ʵ�����
  63. Rem ������װ�� Office���뽫 Visio.ini ��ָ�� Office �� custom.dic �ļ�
  64. Rem �����Ļ�������Ϊ APP_DATA
  65. Rem
  66. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Office\9.0\Common\InstallRoot" "" ""
  67. If Not ErrorLevel 1 Goto Off2000
  68. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Office\8.0\Common\InstallRoot" "" ""
  69. If Not ErrorLevel 1 Goto Off97
  70. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRoot" "" ""
  71. If Not ErrorLevel 1 Goto Off95
  72. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRootPro" "" ""
  73. If Not ErrorLevel 1 Goto Off95
  74. Rem ����ִ�е����˵��û�а�װ�κ� Office �汾
  75. Set CustomDicPath=%ROOTDRIVE%\%APP_DATA%
  76. goto SetCusIni
  77. :Off2000
  78. Rem ��װ�� Office 2000
  79. set CustomDicPath=%ROOTDRIVE%\%APP_DATA%\Microsoft\Proof
  80. goto SetCusIni
  81. :Off97
  82. Rem ��װ�� Office97
  83. set CustomDicPath=%ROOTDRIVE%\Office97
  84. goto SetCusIni
  85. :Off95
  86. Rem ��װ�� Office95
  87. Set CustomDicPath=%ROOTDRIVE%\Office95
  88. :SetCusIni
  89. Rem ���ݹ��򣬸��� Visio.ini �е��û��ʵ��
  90. Rem
  91. ..\Aciniupd /e "%VSO5INST%\System\Visio.ini" "Application" "UserDictionaryPath1" "%CustomDicPath%\Custom.Dic"
  92. Set CustomDicPath=
  93. Rem
  94. Rem �ɹ�����
  95. Rem
  96. Echo.
  97. Echo Visio 5.0 ���û�Ӧ�ó����������ϡ�
  98. Echo.
  99. Pause
  100. :Done