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.

133 lines
3.3 KiB

  1. @Echo Off
  2. Cls
  3. Rem #########################################################################
  4. Rem
  5. Rem �ˬd %RootDrive% �O�_�w�]�w�A�ñN���]�w�����O�ɡC
  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 �q�n���ɨ��o Visio �w�˦��m�C
  14. Rem Visio �h������: 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 �����w�˪������ѡC
  36. Rem
  37. Echo.
  38. Echo �L�k�q�n���ɧ��� Visio 5.0 �w�˦��m�C
  39. Echo ���ˬd Visio 5.0 �O�_�w�w�ˡA�í��s
  40. Echo �����o�ӫ��O�ɡC
  41. Echo.
  42. Pause
  43. Goto Done
  44. Rem
  45. Rem �N VSO5INST �ܼƳ]�w�� Visio �w�˥ؿ��C
  46. Rem
  47. :Cont0
  48. Call %Temp%\Vso.cmd
  49. Del %Temp%\Vso.cmd >NUL: 2>&1
  50. Rem
  51. Rem ���ܦw�˪����C
  52. Rem
  53. Echo.
  54. Echo ���ε{���վ��\���w������ Vision %VisioVer% ���C
  55. Echo.
  56. Rem
  57. Rem ���C�ӨϥΪ̪� [�ڪ�����] �]�w�x�s�ؿ��A
  58. Rem �����w�˨��ϥΪ̪� [�ڪ�����] ���C
  59. Rem
  60. ..\Aciniupd /e "%VSO5INST%\System\Visio.ini" "Application" "DrawingsPath" "%ROOTDRIVE%\%MY_DOCUMENTS%"
  61. Rem
  62. Rem [�ۭq�ؿ�] �޲z
  63. Rem �p�G Office �w�w�� (���@�ت���)�A�N Visio.ini ���س]�w�����V Office custom.dic
  64. Rem �_�h�N�]�w�� AppData�C
  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 �p�G�������o�̡A���ܨS���w�� Office�C
  75. Set CustomDicPath=%ROOTDRIVE%\%APP_DATA%
  76. goto SetCusIni
  77. :Off2000
  78. Rem Office 2000 �w�w��
  79. set CustomDicPath=%ROOTDRIVE%\%APP_DATA%\Microsoft\Proof
  80. goto SetCusIni
  81. :Off97
  82. Rem Office97 �w�w��
  83. set CustomDicPath=%ROOTDRIVE%\Office97
  84. goto SetCusIni
  85. :Off95
  86. Rem Office95 �w�w��
  87. Set CustomDicPath=%ROOTDRIVE%\Office95
  88. :SetCusIni
  89. Rem �ھڭ��h���ܧ��ϥΪ̦ۭq�ؿ����ءC
  90. Rem
  91. ..\Aciniupd /e "%VSO5INST%\System\Visio.ini" "Application" "UserDictionaryPath1" "%CustomDicPath%\Custom.Dic"
  92. Set CustomDicPath=
  93. Rem
  94. Rem ���\�פ��C
  95. Rem
  96. Echo.
  97. Echo Visio 5.0 �h�ϥΪ����ε{���վ㧹���C
  98. Echo.
  99. Pause
  100. :Done