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.

115 lines
3.3 KiB

  1. @Echo Off
  2. Cls
  3. Rem #########################################################################
  4. Rem
  5. Rem %ROOTDRIVE% ���\�������Ă��̃X�N���v�g�p�ɐݒ肳���Ă��邱�Ƃ��m�F���܂��B
  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 ���W�X�g������ Visio ���C���X�g�[�������Ă����f�B���N�g�����擾���܂��B
  14. Rem Visio �̕����̃o�[�W���� : Standard/Technical/Professional
  15. Rem
  16. Regedit /a Visio.tmp HKEY_LOCAL_MACHINE\SOFTWARE\Visio
  17. For /f "tokens=*" %%i in ('findstr /i \[HKEY_LOCAL_MACHINE\\SOFTWARE\\Visio\\.*\\5.0\] Visio.tmp') do set VisioVer=%%i
  18. Set VisioVer=%VisioVer:[HKEY_LOCAL_MACHINE\SOFTWARE\Visio\Visio =%
  19. Set VisioVer=%VisioVer:\5.0]=%
  20. Del Visio.tmp
  21. ..\ACRegL %Temp%\Vso.cmd VSO5INST "HKLM\SOFTWARE\Visio\Visio %VisioVer%\5.0" "InstallDir" ""
  22. If Not ErrorLevel 1 Goto Cont0
  23. Rem
  24. Rem �C���X�g�[�����ꂽ�o�[�W�����̎擾���ł��Ȃ��ꍇ
  25. Rem
  26. Echo.
  27. Echo ���W�X�g������ Visio 5.0 �̃C���X�g�[���ꏊ���擾�ł��܂����B
  28. Echo Visio 5.0 ���C���X�g�[�������Ă��邩�ǂ����m�F���Ă����A���̃X�N���v�g���Ď��s���Ă��������B
  29. Echo.
  30. Pause
  31. Goto Done
  32. Rem
  33. Rem VSO5INST �̕ϐ��� Visio �̃C���X�g�[�� �f�B���N�g���ɐݒ肵�܂��B
  34. Rem
  35. :Cont0
  36. Call %Temp%\Vso.cmd
  37. Del %Temp%\Vso.cmd >NUL: 2>&1
  38. Rem
  39. Rem �ǂ̃o�[�W�������C���X�g�[�������Ă��邩�\�����܂��B
  40. Rem
  41. Echo.
  42. Echo �A�v���P�[�V�����‹��ݒ��� Visio %VisioVer% �o�[�W�����ł��邱�Ƃ����o�����܂����B
  43. Echo.
  44. Rem
  45. Rem �ۑ������f�B���N�g�����C���X�g�[�����郆�[�U�[�� [�}�C �h�L�������g] �ł͂Ȃ��A
  46. Rem ���[�U�[���Ƃ� [�}�C �h�L�������g] �ɐݒ肵�܂��B
  47. Rem
  48. ..\Aciniupd /e "%VSO5INST%\System\Visio.ini" "Application" "DrawingsPath" "%ROOTDRIVE%\%MY_DOCUMENTS%"
  49. Rem
  50. Rem �J�X�^�������̊Ǘ�
  51. Rem �����o�[�W������ Office ���C���X�g�[�������Ă����ꍇ�A Visio.ini �̃G���g���� Office �� custom.dic ���w�������悤�ɐݒ肵�܂��B
  52. Rem ���̂ق��̏ꍇ�AAPP_DATA �ɐݒ肵�܂��B
  53. Rem
  54. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Office\9.0\Common\InstallRoot" "" ""
  55. If Not ErrorLevel 1 Goto Off2000
  56. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Office\8.0\Common\InstallRoot" "" ""
  57. If Not ErrorLevel 1 Goto Off97
  58. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRoot" "" ""
  59. If Not ErrorLevel 1 Goto Off95
  60. ..\ACRegL %Temp%\Off.Cmd OFFINST "HKLM\Software\Microsoft\Microsoft Office\95\InstallRootPro" "" ""
  61. If Not ErrorLevel 1 Goto Off95
  62. Rem �����ɂ��ǂ蒅�����ꍇ�A�ǂ̃o�[�W������ Office ���C���X�g�[�������Ă��܂����B
  63. Set CustomDicPath=%ROOTDRIVE%\%APP_DATA%
  64. goto SetCusIni
  65. :Off2000
  66. Rem Office 2000 ���C���X�g�[�������Ă��܂��B
  67. set CustomDicPath=%ROOTDRIVE%\%APP_DATA%\Microsoft\Proof
  68. goto SetCusIni
  69. :Off97
  70. Rem Office97 ���C���X�g�[�������Ă��܂��B
  71. set CustomDicPath=%ROOTDRIVE%\Office97
  72. goto SetCusIni
  73. :Off95
  74. Rem Office95 ���C���X�g�[�������Ă��܂��B
  75. Set CustomDicPath=%ROOTDRIVE%\Office95
  76. :SetCusIni
  77. Rem �|���V�[�ɏ]���AVisio.ini �ɂ��郆�[�U�[�̃J�X�^������
  78. Rem �G���g�����ύX���܂��B
  79. ..\Aciniupd /e "%VSO5INST%\System\Visio.ini" "Application" "UserDictionaryPath1" "%CustomDicPath%\Custom.Dic"
  80. Set CustomDicPath=
  81. Rem
  82. Rem �������b�Z�[�W�ł��B
  83. Rem
  84. Echo.
  85. Echo Visio 5.0 �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪�������܂����B
  86. Echo.
  87. Pause
  88. :Done