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.

256 lines
10 KiB

  1. @echo off
  2. if not "%_echo%" == "" echo on
  3. setlocal
  4. set URTTARGET=..\urt
  5. set URTSDKTARGET=..\sdk
  6. set ERR=0
  7. if not exist "%URTTARGET%\Accessibility.dll" goto label_1
  8. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\Accessibility.dll
  9. if errorlevel 1 (
  10. set ERR=%ERRORLEVEL%
  11. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Accessibility.dll
  12. )
  13. :label_1
  14. if not exist "%URTTARGET%\System.Configuration.Install.dll" goto label_2
  15. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Configuration.Install.dll
  16. if errorlevel 1 (
  17. set ERR=%ERRORLEVEL%
  18. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Configuration.Install.dll
  19. )
  20. :label_2
  21. if not exist "%URTTARGET%\System.Data.dll" goto label_3
  22. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Data.dll
  23. if errorlevel 1 (
  24. set ERR=%ERRORLEVEL%
  25. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Data.dll
  26. )
  27. :label_3
  28. if not exist "%URTTARGET%\System.Design.dll" goto label_4
  29. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Design.dll
  30. if errorlevel 1 (
  31. set ERR=%ERRORLEVEL%
  32. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Design.dll
  33. )
  34. :label_4
  35. if not exist "%URTTARGET%\System.DirectoryServices.dll" goto label_5
  36. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.DirectoryServices.dll
  37. if errorlevel 1 (
  38. set ERR=%ERRORLEVEL%
  39. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.DirectoryServices.dll
  40. )
  41. :label_5
  42. if not exist "%URTTARGET%\System.Drawing.Design.dll" goto label_6
  43. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Drawing.Design.dll
  44. if errorlevel 1 (
  45. set ERR=%ERRORLEVEL%
  46. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Drawing.Design.dll
  47. )
  48. :label_6
  49. if not exist "%URTTARGET%\System.Drawing.dll" goto label_7
  50. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Drawing.dll
  51. if errorlevel 1 (
  52. set ERR=%ERRORLEVEL%
  53. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Drawing.dll
  54. )
  55. :label_7
  56. if not exist "%URTTARGET%\System.Messaging.dll" goto label_8
  57. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Messaging.dll
  58. if errorlevel 1 (
  59. set ERR=%ERRORLEVEL%
  60. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Messaging.dll
  61. )
  62. :label_8
  63. if not exist "%URTTARGET%\System.ServiceProcess.dll" goto label_9
  64. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.ServiceProcess.dll
  65. if errorlevel 1 (
  66. set ERR=%ERRORLEVEL%
  67. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.ServiceProcess.dll
  68. )
  69. :label_9
  70. if not exist "%URTTARGET%\System.Web.RegularExpressions.dll" goto label_10
  71. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Web.RegularExpressions.dll
  72. if errorlevel 1 (
  73. set ERR=%ERRORLEVEL%
  74. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Web.RegularExpressions.dll
  75. )
  76. :label_10
  77. if not exist "%URTTARGET%\System.Web.Services.dll" goto label_11
  78. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Web.Services.dll
  79. if errorlevel 1 (
  80. set ERR=%ERRORLEVEL%
  81. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Web.Services.dll
  82. )
  83. :label_11
  84. if not exist "%URTTARGET%\System.Web.dll" goto label_12
  85. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Web.dll
  86. if errorlevel 1 (
  87. set ERR=%ERRORLEVEL%
  88. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Web.dll
  89. )
  90. :label_12
  91. if not exist "%URTTARGET%\System.Windows.Forms.dll" goto label_13
  92. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Windows.Forms.dll
  93. if errorlevel 1 (
  94. set ERR=%ERRORLEVEL%
  95. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Windows.Forms.dll
  96. )
  97. :label_13
  98. if not exist "%URTTARGET%\System.Xml.dll" goto label_14
  99. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.Xml.dll
  100. if errorlevel 1 (
  101. set ERR=%ERRORLEVEL%
  102. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.Xml.dll
  103. )
  104. :label_14
  105. if not exist "%URTTARGET%\System.dll" goto label_15
  106. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /if %URTTARGET%\System.dll
  107. if errorlevel 1 (
  108. set ERR=%ERRORLEVEL%
  109. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\System.dll
  110. )
  111. :label_15
  112. if not exist "%URTTARGET%\Policy.1.0.Accessibility.dll" goto label_16
  113. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.Accessibility.dll
  114. if errorlevel 1 (
  115. set ERR=%ERRORLEVEL%
  116. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.Accessibility.dll
  117. )
  118. :label_16
  119. if not exist "%URTTARGET%\Policy.1.0.System.Configuration.Install.dll" goto label_17
  120. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Configuration.Install.dll
  121. if errorlevel 1 (
  122. set ERR=%ERRORLEVEL%
  123. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Configuration.Install.dll
  124. )
  125. :label_17
  126. if not exist "%URTTARGET%\Policy.1.0.System.Data.dll" goto label_18
  127. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Data.dll
  128. if errorlevel 1 (
  129. set ERR=%ERRORLEVEL%
  130. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Data.dll
  131. )
  132. :label_18
  133. if not exist "%URTTARGET%\Policy.1.0.System.Design.dll" goto label_19
  134. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Design.dll
  135. if errorlevel 1 (
  136. set ERR=%ERRORLEVEL%
  137. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Design.dll
  138. )
  139. :label_19
  140. if not exist "%URTTARGET%\Policy.1.0.System.DirectoryServices.dll" goto label_20
  141. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.DirectoryServices.dll
  142. if errorlevel 1 (
  143. set ERR=%ERRORLEVEL%
  144. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.DirectoryServices.dll
  145. )
  146. :label_20
  147. if not exist "%URTTARGET%\Policy.1.0.System.dll" goto label_21
  148. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.dll
  149. if errorlevel 1 (
  150. set ERR=%ERRORLEVEL%
  151. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.dll
  152. )
  153. :label_21
  154. if not exist "%URTTARGET%\Policy.1.0.System.Drawing.Design.dll" goto label_22
  155. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Drawing.Design.dll
  156. if errorlevel 1 (
  157. set ERR=%ERRORLEVEL%
  158. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Drawing.Design.dll
  159. )
  160. :label_22
  161. if not exist "%URTTARGET%\Policy.1.0.System.Drawing.dll" goto label_23
  162. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Drawing.dll
  163. if errorlevel 1 (
  164. set ERR=%ERRORLEVEL%
  165. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Drawing.dll
  166. )
  167. :label_23
  168. if not exist "%URTTARGET%\Policy.1.0.System.Messaging.dll" goto label_24
  169. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Messaging.dll
  170. if errorlevel 1 (
  171. set ERR=%ERRORLEVEL%
  172. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Messaging.dll
  173. )
  174. :label_24
  175. if not exist "%URTTARGET%\Policy.1.0.System.ServiceProcess.dll" goto label_25
  176. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.ServiceProcess.dll
  177. if errorlevel 1 (
  178. set ERR=%ERRORLEVEL%
  179. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.ServiceProcess.dll
  180. )
  181. :label_25
  182. if not exist "%URTTARGET%\Policy.1.0.System.Web.dll" goto label_26
  183. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Web.dll
  184. if errorlevel 1 (
  185. set ERR=%ERRORLEVEL%
  186. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Web.dll
  187. )
  188. :label_26
  189. if not exist "%URTTARGET%\Policy.1.0.System.Web.RegularExpressions.dll" goto label_27
  190. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Web.RegularExpressions.dll
  191. if errorlevel 1 (
  192. set ERR=%ERRORLEVEL%
  193. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Web.RegularExpressions.dll
  194. )
  195. :label_27
  196. if not exist "%URTTARGET%\Policy.1.0.System.Web.Services.dll" goto label_28
  197. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Web.Services.dll
  198. if errorlevel 1 (
  199. set ERR=%ERRORLEVEL%
  200. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Web.Services.dll
  201. )
  202. :label_28
  203. if not exist "%URTTARGET%\Policy.1.0.System.Windows.Forms.dll" goto label_29
  204. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Windows.Forms.dll
  205. if errorlevel 1 (
  206. set ERR=%ERRORLEVEL%
  207. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Windows.Forms.dll
  208. )
  209. :label_29
  210. if not exist "%URTTARGET%\Policy.1.0.System.Xml.dll" goto label_30
  211. %URTSDTARGET%\bin\gacutil.exe /nologo /silent /i %URTTARGET%\Policy.1.0.System.Xml.dll
  212. if errorlevel 1 (
  213. set ERR=%ERRORLEVEL%
  214. echo gacinstallfx.bat : error : Error %ERRORLEVEL% installing to GAC %URTTARGET%\Policy.1.0.System.Xml.dll
  215. )
  216. :label_30
  217. if not %ERR% == 0 (
  218. echo gacinstallfx.bat : error : Errors installing FX binaries to the GAC
  219. seterror %ERR%
  220. )
  221. endlocaL