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.

292 lines
10 KiB

  1. @Echo Off
  2. Rem
  3. Rem ����: ���̃X�N���v�g�̒��� CACLS �R�}���h�� NTFS
  4. Rem �t�H�[�}�b�g�̃p�[�e�B�V�����ł̂ݗL���ł��B
  5. Rem
  6. Rem #########################################################################
  7. Rem
  8. Rem
  9. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  10. If "%_CHKROOT%" == "FAIL" Goto Done
  11. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  12. If "%_SETPATHS%" == "FAIL" Goto Done
  13. Rem #########################################################################
  14. Rem
  15. Rem ���W�X�g������ Visual Studio 6.0 ���C���X�g�[�������Ă����f�B���N�g�����擾���܂��B���‚����Ȃ��ꍇ�́A
  16. Rem ���̃A�v���P�[�V�����̓C���X�g�[�������Ă��Ȃ��Ɖ��肵�ăG���[���b�Z�[�W���\�����܂��B
  17. Rem
  18. ..\ACRegL %Temp%\0VC98.Cmd 0VC98 "HKLM\Software\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual C++" "ProductDir" ""
  19. If Not ErrorLevel 1 Goto Cont0
  20. Echo.
  21. Echo ���W�X�g������ Visual Studio 6.0 �̃C���X�g�[���ꏊ���擾�ł��܂����ł����B
  22. Echo Visual Studio 6.0 ���C���X�g�[�������Ă��邩�ǂ����m�F���Ă����A���̃X�N���v�g��
  23. Echo ���s�����������B
  24. Echo.
  25. Pause
  26. Goto Done
  27. :Cont0
  28. Call %Temp%\0VC98.Cmd
  29. Del %Temp%\0VC98.Cmd >Nul: 2>&1
  30. Rem #########################################################################
  31. Rem
  32. Rem ���W�X�g�� �L�[���ύX���āA�p�X�����[�U�[�ŗL�̃f�B���N�g��
  33. Rem ���w�������悤�ɂ��܂��B
  34. Rem
  35. Rem ���݁A�C���X�g�[�� ���[�h�łȂ��ꍇ�A�C���X�g�[�� ���[�h�ɕύX���܂��B
  36. Set __OrigMode=Install
  37. ChgUsr /query > Nul:
  38. if Not ErrorLevel 101 Goto Begin
  39. Set __OrigMode=Exec
  40. Change User /Install > Nul:
  41. :Begin
  42. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\msvs6.Key %temp%\msvs6.tmp
  43. ..\acsr "#MY_DOCUMENTS#" "%MY_DOCUMENTS%" %temp%\msvs6.tmp %temp%\msvs6.tmp2
  44. ..\acsr "#APP_DATA#" "%APP_DATA%" %temp%\msvs6.tmp2 msvs6.key
  45. Del %temp%\msvs6.tmp >Nul: 2>&1
  46. Del %temp%\msvs6.tmp2 >Nul: 2>&1
  47. regini msvs6.key > Nul:
  48. Rem ���̃��[�h�����s���[�h�������ꍇ�A���s���[�h�ɖ߂��܂��B
  49. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  50. Set __OrigMode=
  51. Rem #########################################################################
  52. Rem Visual Studio �A�v���P�[�V�����p�̃��[�U�[ ���O�I�� �t�@�C�����쐬���܂��B
  53. Echo Rem >..\logon\VS6USR.Cmd
  54. Rem #########################################################################
  55. Rem ���[�U�[���Ƃ� Visual Studio �v���W�F�N�g �f�B���N�g�����쐬���܂��B
  56. Echo Rem >>..\logon\VS6USR.Cmd
  57. Echo Rem ���[�U�[���Ƃ� Visual Studio �v���W�F�N�g �f�B���N�g�����쐬���܂��B>>..\logon\VS6USR.Cmd
  58. Echo call TsMkUDir "%RootDrive%\%MY_DOCUMENTS%\Visual Studio Projects">>..\logon\VS6USR.Cmd
  59. Echo Rem >>..\logon\VS6USR.Cmd
  60. Rem #########################################################################
  61. Rem
  62. Rem ���W�X�g������ Visual Studio 6.0 Entreprise Edition Tools ���C���X�g�[�������Ă����f�B���N�g�����擾���܂��B���‚����Ȃ��ꍇ�́A
  63. Rem ���̃A�v���P�[�V�����̓C���X�g�[�������Ă��Ȃ��Ɖ��肵�ăG���[���b�Z�[�W���\�����܂��B
  64. Rem ���‚����ꍇ�A�č��o�[�W�����ł́A<VStudioPath>\Common\Tools �Ɋ܂܂��܂��B
  65. Rem
  66. ..\ACRegL %Temp%\VSEET.Cmd VSEET "HKLM\Software\Microsoft\VisualStudio\6.0\Setup\Microsoft VSEE Client" "ProductDir" ""
  67. If Not ErrorLevel 1 Goto VSEET0
  68. Goto VSEETDone
  69. :VSEET0
  70. Call %Temp%\VSEET.Cmd
  71. Del %Temp%\VSEET.Cmd >Nul: 2>&1
  72. If Not Exist "%VSEET%\APE\AEMANAGR.INI" Goto VSEETDone
  73. ..\acsr "=AE.LOG" "=%RootDrive%\AE.LOG" "%VSEET%\APE\AEMANAGR.INI" "%VSEET%\APE\AEMANAGR.TMP"
  74. If Exist "%VSEET%\APE\AEMANAGRINI.SAV" Del /F /Q "%VSEET%\APE\AEMANAGRINI.SAV"
  75. ren "%VSEET%\APE\AEMANAGR.INI" "AEMANAGRINI.SAV"
  76. ren "%VSEET%\APE\AEMANAGR.TMP" "AEMANAGR.INI"
  77. Echo Rem Copy APE ini file to the user windows directory >>..\logon\VS6USR.Cmd
  78. Echo Rem >>..\logon\VS6USR.Cmd
  79. Echo If Exist "%RootDrive%\Windows\AEMANAGR.INI" Goto UVSEET0 >>..\logon\VS6USR.Cmd
  80. Echo If Exist "%VSEET%\APE\AEMANAGR.INI" Copy "%VSEET%\APE\AEMANAGR.INI" "%RootDrive%\Windows\AEMANAGR.INI" >Nul: 2>&1 >>..\logon\VS6USR.Cmd
  81. Echo Rem >>..\logon\VS6USR.Cmd
  82. Echo :UVSEET0>>..\logon\VS6USR.Cmd
  83. Echo Rem Copy Visual Modeler ini file to the user windows directory >>..\logon\VS6USR.Cmd
  84. Echo Rem >>..\logon\VS6USR.Cmd
  85. Echo If Exist "%RootDrive%\Windows\ROSE.INI" Goto UVSEET1 >>..\logon\VS6USR.Cmd
  86. Echo If Exist "%VSEET%\VS-Ent98\Vmodeler\ROSE.INI" Copy "%VSEET%\VS-Ent98\Vmodeler\ROSE.INI" "%RootDrive%\Windows\ROSE.INI" >Nul: 2>&1 >>..\logon\VS6USR.Cmd
  87. Echo Rem >>..\logon\VS6USR.Cmd
  88. Echo :UVSEET1>>..\logon\VS6USR.Cmd
  89. :VSEETDone
  90. Rem #########################################################################
  91. Rem
  92. Rem VS6USR.Cmd �� UsrLogn2.Cmd �ɒlj����܂��B
  93. Rem
  94. FindStr /I VS6USR %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  95. If Not ErrorLevel 1 Goto Skip1
  96. Echo Call VS6USR.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  97. :Skip1
  98. Rem #########################################################################
  99. Rem Visual foxPro �v���_�N�g�̃C���X�g�[�� �f�B���N�g�����擾���܂��B
  100. ..\ACRegL %Temp%\VFP98TMP.Cmd VFP98DIR "HKLM\Software\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual FoxPro" "ProductDir" ""
  101. Rem Visual FoxPro ���C���X�g�[�������Ă��Ȃ��ꍇ�A�N���[���A�b�v �R�[�h�܂ŃX�L�b�v���܂��B
  102. If ErrorLevel 1 goto Skip2
  103. Rem #########################################################################
  104. Rem
  105. Rem ���W�X�g�������J�X�^�������L�[���擾���܂��B
  106. Rem
  107. Set __SharedTools=Shared Tools
  108. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto VFP98L2
  109. If Not Exist "%ProgramFiles(x86)%" goto VFP98L2
  110. Set __SharedTools=Shared Tools (x86)
  111. :VFP98L2
  112. ..\ACRegL %Temp%\VFP98TMP.Cmd VFP98DIC "HKLM\Software\Microsoft\%__SharedTools%\Proofing Tools\Custom Dictionaries" "1" ""
  113. If Not ErrorLevel 1 Goto VFP98L3
  114. Echo.
  115. Rem ���W�X�g�������l���擾�ł��܂����B�������쐬���Ă��������B
  116. Echo.
  117. Rem VFP98TMP.key �t�@�C�����쐬���܂��B
  118. Echo HKEY_LOCAL_MACHINE\Software\Microsoft\%__SharedTools%\Proofing Tools\Custom Dictionaries> %Temp%\VFP98TMP.key
  119. Echo 1 = REG_SZ "%RootDrive%\%MY_DOCUMENTS%\Custom.Dic">> %Temp%\VFP98TMP.key
  120. Rem �l���쐬���܂��B
  121. regini %Temp%\VFP98TMP.key > Nul:
  122. Del %Temp%\VFP98TMP.key >Nul: 2>&1
  123. Echo set VFP98DIC=%RootDrive%\%MY_DOCUMENTS%\Custom.Dic>%Temp%\VFP98TMP.Cmd
  124. :VFP98L3
  125. Call %Temp%\VFP98TMP.Cmd
  126. Del %Temp%\VFP98TMP.Cmd >Nul: 2>&1
  127. Rem #########################################################################
  128. Rem Visual FoxPro �A�v���P�[�V�����p�̃��[�U�[ ���O�I�� �t�@�C�����쐬���܂��B
  129. Echo Rem >..\logon\VFP98USR.Cmd
  130. Rem #########################################################################
  131. Rem ���[�U�[���Ƃ� Visual FoxPro �f�B���N�g�����쐬���܂��B
  132. Echo Rem >>..\logon\VFP98USR.Cmd
  133. Echo Rem ���[�U�[���Ƃ� Visual FoxPro �f�B���N�g�����쐬���܂� (VFP98)�B>>..\logon\VFP98USR.Cmd
  134. Echo call TsMkUDir %RootDrive%\VFP98>>..\logon\VFP98USR.Cmd
  135. Echo Rem >>..\logon\VFP98USR.Cmd
  136. Echo Rem ���[�U�[���Ƃ� Visual FoxPro �z�z�f�B���N�g�����쐬���܂��B >>..\logon\VFP98USR.Cmd
  137. Echo call TsMkUDir %RootDrive%\VFP98\DISTRIB>>..\logon\VFP98USR.Cmd
  138. Echo Rem >>..\logon\VFP98USR.Cmd
  139. Echo Rem #########################################################################>>..\logon\VFP98USR.Cmd
  140. Echo Rem ���݂��Ȃ��ꍇ�A�J�X�^���������쐬���܂��B>>..\logon\VFP98USR.Cmd
  141. Echo Rem >>..\logon\VFP98USR.Cmd
  142. Echo If Exist "%VFP98DIC%" Goto VFP98L2 >>..\logon\VFP98USR.Cmd
  143. Echo Copy Nul: "%VFP98DIC%" >Nul: 2>&1 >>..\logon\VFP98USR.Cmd
  144. Echo :VFP98L2 >>..\logon\VFP98USR.Cmd
  145. Rem #########################################################################
  146. Rem Visual foxPro ���i�̃C���X�g�[�� �f�B���N�g�����擾���܂��B
  147. ..\ACRegL %Temp%\VFP98TMP.Cmd VFP98DIR "HKLM\Software\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual FoxPro" "ProductDir" ""
  148. If Not ErrorLevel 1 Goto VFP98L4
  149. Del ..\logon\VFP98USR.Cmd >Nul: 2>&1
  150. Echo.
  151. Echo ���W�X�g������ Visual FoxPro �̃C���X�g�[���ꏊ���擾�ł��܂����B
  152. Echo ���̃A�v���P�[�V�������C���X�g�[�������Ă��邩�ǂ����m�F���Ă����A���̃X�N���v�g��
  153. Echo ���s�����������B
  154. Echo.
  155. Pause
  156. Goto Skip2
  157. :VFP98L4
  158. Call "%Temp%\VFP98TMP.Cmd"
  159. Del "%Temp%\VFP98TMP.Cmd"
  160. Rem #########################################################################
  161. Rem ���̃L�[�� WZSETUP.INI �t�@�C���ɐݒ肵�܂��B
  162. Rem
  163. If Exist "%VFP98DIR%\WZSETUP.INI" Goto VFP98L5
  164. Echo [Preferences] >"%VFP98DIR%\WZSETUP.INI"
  165. Echo DistributionDirectory=%RootDrive%\VFP98\DISTRIB >>"%VFP98DIR%\WZSETUP.INI"
  166. :VFP98L5
  167. Rem #########################################################################
  168. Rem
  169. Rem ���W�X�g�� �L�[���ύX���āA�p�X�����[�U�[�ŗL�̃f�B���N�g��
  170. Rem ���w�������悤�ɂ��܂��B
  171. Rem
  172. Rem �ŏ��� VFP98TMP.key �t�@�C�����쐬���܂��B
  173. Echo HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\6.0\Options> %Temp%\VFP98TMP.key
  174. Echo DEFAULT = REG_SZ "%RootDrive%\VFP98">> %Temp%\VFP98TMP.key
  175. Echo SetDefault = REG_SZ "1">> %Temp%\VFP98TMP.key
  176. Echo ResourceTo = REG_SZ "%RootDrive%\VFP98\FOXUSER.DBF">> %Temp%\VFP98TMP.key
  177. Echo ResourceOn = REG_SZ "1">> %Temp%\VFP98TMP.key
  178. Rem ���݁A�C���X�g�[�� ���[�h�łȂ��ꍇ�A�C���X�g�[�� ���[�h�ɕύX���܂��B
  179. Set __OrigMode=Install
  180. ChgUsr /query > Nul:
  181. if Not ErrorLevel 101 Goto VFP98L6
  182. Set __OrigMode=Exec
  183. Change User /Install > Nul:
  184. :VFP98L6
  185. regini %Temp%\VFP98TMP.key > Nul:
  186. Rem ���̃��[�h�����s���[�h�������ꍇ�A���s���[�h�ɖ߂��܂��B
  187. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  188. Set __OrigMode=
  189. Del %Temp%\VFP98TMP.key >Nul: 2>&1
  190. Rem #########################################################################
  191. Rem
  192. Rem VFP98USR.Cmd �� UsrLogn2.Cmd �X�N���v�g�ɒlj����܂��B
  193. Rem
  194. FindStr /I VFP98USR %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  195. If Not ErrorLevel 1 Goto Skip2
  196. Echo Call VFP98USR.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  197. :Skip2
  198. If Exist "%Temp%\VFP98TMP.Cmd" Del "%Temp%\VFP98TMP.Cmd"
  199. Rem #########################################################################
  200. Rem
  201. Rem �^�[�~�i�� �T�[�r�X�̃��[�U�[�Ɋi�[�f�B���N�g���̕ύX�A�N�Z�X���‚��^���āA
  202. Rem ���[�U�[�� Visual Component Manager ���g�p�ł����悤�ɂ��܂��B
  203. Rem
  204. If Exist "%SystemRoot%\msapps\repostry" cacls "%SystemRoot%\msapps\repostry" /E /G "Terminal Server User":C >NUL: 2>&1
  205. Rem #########################################################################
  206. Echo.
  207. Echo Visual Studio 6.0 �������ɍ쓮���邽�߂ɂ́A���݃��O�I�����Ă���
  208. Echo ���[�U�[�̓A�v���P�[�V���������s�����O�ɁA�������񃍃O�I�t����
  209. Echo �����ēx���O�I�������K�v�������܂��B
  210. Echo.
  211. Echo Microsoft Visual Studio 6.0 �̃}���`���[�U�[ �A�v���P�[�V�����‹��ݒ肪�������܂����B
  212. Pause
  213. :done