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.

215 lines
10 KiB

  1. @echo off
  2. SET SOURCE=%1
  3. if "%1"=="" SET SOURCE=%IIS6_BINARIES%
  4. if "%SOURCE%"=="" goto SYNTAX
  5. if not exist %SOURCE%\inetinfo.exe goto NOTFOUND
  6. SET IIS6_TEMP=c:\~~iis6~tmp~copy
  7. REM ---------------------------------
  8. REM Get the files we're interested in
  9. REM ---------------------------------
  10. net stop iisadmin /y
  11. net stop http
  12. net stop winmgmt
  13. net stop snmp
  14. if not exist %IIS6_TEMP% md %IIS6_TEMP%
  15. copy %SOURCE%\iiscfg.dll %IIS6_TEMP%
  16. copy %SOURCE%\gzip.dll %IIS6_TEMP%
  17. copy %SOURCE%\logscrpt.dll %IIS6_TEMP%
  18. copy %SOURCE%\asp.dll %IIS6_TEMP%
  19. copy %SOURCE%\asptxn.dll %IIS6_TEMP%
  20. copy %SOURCE%\ssinc.dll %IIS6_TEMP%
  21. copy %SOURCE%\w3cache.dll %IIS6_TEMP%
  22. copy %SOURCE%\w3core.dll %IIS6_TEMP%
  23. copy %SOURCE%\w3dt.dll %IIS6_TEMP%
  24. copy %SOURCE%\w3isapi.dll %IIS6_TEMP%
  25. copy %SOURCE%\w3tp.dll %IIS6_TEMP%
  26. copy %SOURCE%\w3wp.exe %IIS6_TEMP%
  27. copy %SOURCE%\strmfilt.dll %IIS6_TEMP%
  28. copy %SOURCE%\w3comlog.dll %IIS6_TEMP%
  29. copy %SOURCE%\httpodbc.dll %IIS6_TEMP%
  30. rem copy %SOURCE%\iisplus\odbclog.dll %IIS6_TEMP%
  31. copy %SOURCE%\sfwp.exe %IIS6_TEMP%
  32. copy %SOURCE%\isapips.dll %IIS6_TEMP%
  33. copy %SOURCE%\iisutil.dll %IIS6_TEMP%
  34. copy %SOURCE%\iisw3adm.dll %IIS6_TEMP%
  35. copy %SOURCE%\inetinfo.exe %IIS6_TEMP%
  36. copy %SOURCE%\ipm.dll %IIS6_TEMP%
  37. copy %SOURCE%\metadata.dll %IIS6_TEMP%
  38. rem copy %SOURCE%\iw3controlps.dll %IIS6_TEMP%
  39. rem copy %SOURCE%\ulapi.dll %IIS6_TEMP%
  40. rem copy %SOURCE%\ul.sys %IIS6_TEMP%
  41. copy %SOURCE%\httpapi.dll %IIS6_TEMP%
  42. copy %SOURCE%\http.sys %IIS6_TEMP%
  43. copy %SOURCE%\wam.dll %IIS6_TEMP%
  44. copy %SOURCE%\wamps.dll %IIS6_TEMP%
  45. copy %SOURCE%\wamreg.dll %IIS6_TEMP%
  46. REM ---------------------------------------
  47. REM Now install them in the right locations
  48. REM ---------------------------------------
  49. rem copy %IIS6_TEMP%\catalog.dll %windir%\system32\inetsrv
  50. sfpcopy %IIS6_TEMP%\iiscfg.dll %windir%\system32\inetsrv\iiscfg.dll
  51. sfpcopy %IIS6_TEMP%\gzip.dll %windir%\system32\inetsrv\gzip.dll
  52. sfpcopy %IIS6_TEMP%\logscrpt.dll %windir%\system32\inetsrv\logscrpt.dll
  53. sfpcopy %IIS6_TEMP%\asp.dll %windir%\system32\inetsrv\asp.dll
  54. sfpcopy %IIS6_TEMP%\asptxn.dll %windir%\system32\inetsrv\asptxn.dll
  55. sfpcopy %IIS6_TEMP%\ssinc.dll %windir%\system32\inetsrv\ssinc.dll
  56. sfpcopy %IIS6_TEMP%\w3cache.dll %windir%\system32\inetsrv\w3cache.dll
  57. sfpcopy %IIS6_TEMP%\w3core.dll %windir%\system32\inetsrv\w3core.dll
  58. sfpcopy %IIS6_TEMP%\w3dt.dll %windir%\system32\inetsrv\w3dt.dll
  59. sfpcopy %IIS6_TEMP%\w3isapi.dll %windir%\system32\inetsrv\w3isapi.dll
  60. sfpcopy %IIS6_TEMP%\w3tp.dll %windir%\system32\inetsrv\w3tp.dll
  61. sfpcopy %IIS6_TEMP%\w3wp.exe %windir%\system32\inetsrv\w3wp.exe
  62. rem sfpcopy %IIS6_TEMP%\strmfilt.dll %windir%\system32\inetsrv\strmfilt.dll
  63. sfpcopy %IIS6_TEMP%\strmfilt.dll %windir%\system32\inetsrv\strmfilt.dll
  64. sfpcopy %IIS6_TEMP%\w3comlog.dll %windir%\system32\inetsrv\w3comlog.dll
  65. sfpcopy %IIS6_TEMP%\httpodbc.dll %windir%\system32\inetsrv\httpodbc.dll
  66. sfpcopy %IIS6_TEMP%\isapips.dll %windir%\system32\inetsrv\isapips.dll
  67. sfpcopy %IIS6_TEMP%\iisutil.dll %windir%\system32\inetsrv\iisutil.dll
  68. sfpcopy %IIS6_TEMP%\iisw3adm.dll %windir%\system32\inetsrv\iisw3adm.dll
  69. sfpcopy %IIS6_TEMP%\inetinfo.exe %windir%\system32\inetsrv\inetinfo.exe
  70. sfpcopy %IIS6_TEMP%\ipm.dll %windir%\system32\inetsrv\ipm.dll
  71. sfpcopy %IIS6_TEMP%\metadata.dll %windir%\system32\inetsrv\metadata.dll
  72. rem sfpcopy %IIS6_TEMP%\iw3controlps.dll %windir%\system32\iw3controlps.dll
  73. rem sfpcopy %IIS6_TEMP%\ulapi.dll %windir%\system32\ulapi.dll
  74. rem sfpcopy %IIS6_TEMP%\ul.sys %windir%\system32\drivers\ul.sys
  75. sfpcopy %IIS6_TEMP%\httpapi.dll %windir%\system32\httpapi.dll
  76. sfpcopy %IIS6_TEMP%\http.sys %windir%\system32\drivers\http.sys
  77. sfpcopy %IIS6_TEMP%\wam.dll %windir%\system32\inetsrv\wam.dll
  78. rem copy %IIS6_TEMP%\wam.dll %windir%\system32\inetsrv\wam.dll
  79. sfpcopy %IIS6_TEMP%\wamps.dll %windir%\system32\inetsrv\wamps.dll
  80. sfpcopy %IIS6_TEMP%\wamreg.dll %windir%\system32\inetsrv\wamreg.dll
  81. REM ---------------------------------
  82. REM Get pri symbols for use with VC++
  83. REM ---------------------------------
  84. copy %SOURCE%\symbols.pri\retail\dll\gzip.pdb %windir%\system32\inetsrv
  85. copy %SOURCE%\symbols.pri\retail\dll\logscrpt.pdb %windir%\system32\inetsrv
  86. copy %SOURCE%\symbols.pri\retail\dll\asp.pdb %windir%\system32\inetsrv
  87. copy %SOURCE%\symbols.pri\retail\dll\asptxn.pdb %windir%\system32\inetsrv
  88. copy %SOURCE%\symbols.pri\retail\dll\ssinc.pdb %windir%\system32\inetsrv
  89. copy %SOURCE%\symbols.pri\retail\dll\w3cache.pdb %windir%\system32\inetsrv
  90. copy %SOURCE%\symbols.pri\retail\dll\w3core.pdb %windir%\system32\inetsrv
  91. copy %SOURCE%\symbols.pri\retail\dll\w3dt.pdb %windir%\system32\inetsrv
  92. copy %SOURCE%\symbols.pri\retail\dll\w3isapi.pdb %windir%\system32\inetsrv
  93. copy %SOURCE%\symbols.pri\retail\dll\w3tp.pdb %windir%\system32\inetsrv
  94. copy %SOURCE%\symbols.pri\retail\exe\w3wp.pdb %windir%\system32\inetsrv
  95. copy %SOURCE%\symbols.pri\retail\dll\strmfilt.pdb %windir%\system32\inetsrv
  96. copy %SOURCE%\symbols.pri\retail\dll\w3comlog.pdb %windir%\system32\inetsrv
  97. copy %SOURCE%\symbols.pri\retail\dll\httpodbc.pdb %windir%\system32\inetsrv
  98. copy %SOURCE%\symbols.pri\retail\dll\isapips.pdb %windir%\system32\inetsrv
  99. copy %SOURCE%\symbols.pri\retail\dll\iisutil.pdb %windir%\system32\inetsrv
  100. copy %SOURCE%\symbols.pri\retail\dll\iisw3adm.pdb %windir%\system32\inetsrv
  101. copy %SOURCE%\symbols.pri\retail\exe\inetinfo.pdb %windir%\system32\inetsrv
  102. copy %SOURCE%\symbols.pri\retail\dll\ipm.pdb %windir%\system32\inetsrv
  103. copy %SOURCE%\symbols.pri\retail\dll\metadata.pdb %windir%\system32\inetsrv
  104. copy %SOURCE%\symbols.pri\retail\dll\iw3controlps.pdb %windir%\system32
  105. rem copy %SOURCE%\symbols.pri\retail\dll\ulapi.pdb %windir%\system32
  106. rem copy %SOURCE%\symbols.pri\retail\sys\ul.pdb %windir%\system32\drivers
  107. copy %SOURCE%\symbols.pri\retail\dll\httpapi.pdb %windir%\system32
  108. copy %SOURCE%\symbols.pri\retail\sys\http.pdb %windir%\system32\drivers
  109. copy %SOURCE%\symbols.pri\retail\dll\wam.pdb %windir%\system32\inetsrv
  110. copy %SOURCE%\symbols.pri\retail\dll\wamps.pdb %windir%\system32\inetsrv
  111. copy %SOURCE%\symbols.pri\retail\dll\wamreg.pdb %windir%\system32\inetsrv
  112. REM -------------------------------------------------
  113. REM Get normal symbols for use with console debuggers
  114. REM -------------------------------------------------
  115. if not exist %windir%\symbols md %windir%\symbols
  116. if not exist %windir%\symbols\dll md %windir%\symbols\dll
  117. if not exist %windir%\symbols\exe md %windir%\symbols\exe
  118. if not exist %windir%\symbols\sys md %windir%\symbols\sys
  119. copy %SOURCE%\symbols.pri\retail\dll\gzip.pdb %windir%\symbols\dll
  120. copy %SOURCE%\symbols.pri\retail\dll\logscrpt.pdb %windir%\symbols\dll
  121. copy %SOURCE%\symbols.pri\retail\dll\asp.pdb %windir%\symbols\dll
  122. copy %SOURCE%\symbols.pri\retail\dll\asptxn.pdb %windir%\symbols\dll
  123. copy %SOURCE%\symbols.pri\retail\dll\ssinc.pdb %windir%\symbols\dll
  124. copy %SOURCE%\symbols.pri\retail\dll\w3cache.pdb %windir%\symbols\dll
  125. copy %SOURCE%\symbols.pri\retail\dll\w3core.pdb %windir%\symbols\dll
  126. copy %SOURCE%\symbols.pri\retail\dll\w3dt.pdb %windir%\symbols\dll
  127. copy %SOURCE%\symbols.pri\retail\dll\w3isapi.pdb %windir%\symbols\dll
  128. copy %SOURCE%\symbols.pri\retail\dll\w3tp.pdb %windir%\symbols\dll
  129. copy %SOURCE%\symbols.pri\retail\dll\strmfilt.pdb %windir%\symbols\dll
  130. copy %SOURCE%\symbols.pri\retail\dll\w3comlog.pdb %windir%\symbols\dll
  131. copy %SOURCE%\symbols.pri\retail\dll\httpodbc.pdb %windir%\symbols\dll
  132. copy %SOURCE%\symbols.pri\retail\dll\isapips.pdb %windir%\symbols\dll
  133. copy %SOURCE%\symbols.pri\retail\dll\iisutil.pdb %windir%\symbols\dll
  134. copy %SOURCE%\symbols.pri\retail\dll\iisw3adm.pdb %windir%\symbols\dll
  135. copy %SOURCE%\symbols.pri\retail\dll\ipm.pdb %windir%\symbols\dll
  136. copy %SOURCE%\symbols.pri\retail\dll\metadata.pdb %windir%\symbols\dll
  137. rem copy %SOURCE%\symbols.pri\retail\dll\iw3controlps.pdb %windir%\symbols\dll
  138. rem copy %SOURCE%\symbols.pri\retail\dll\ulapi.pdb %windir%\symbols\dll
  139. copy %SOURCE%\symbols.pri\retail\dll\httpapi.pdb %windir%\symbols\dll
  140. copy %SOURCE%\symbols.pri\retail\exe\w3wp.pdb %windir%\symbols\exe
  141. copy %SOURCE%\symbols.pri\retail\exe\inetinfo.pdb %windir%\symbols\exe
  142. rem copy %SOURCE%\symbols.pri\retail\sys\ul.pdb %windir%\symbols\sys
  143. copy %SOURCE%\symbols.pri\retail\sys\http.pdb %windir%\symbols\sys
  144. copy %SOURCE%\symbols.pri\retail\dll\wam.pdb %windir%\symbols\dll
  145. copy %SOURCE%\symbols.pri\retail\dll\wamps.pdb %windir%\symbols\dll
  146. copy %SOURCE%\symbols.pri\retail\dll\wamreg.pdb %windir%\symbols\dll
  147. copy %SOURCE%\symbols\retail\dll\gzip.sym %windir%\symbols\dll
  148. copy %SOURCE%\symbols\retail\dll\logscrpt.sym %windir%\symbols\dll
  149. copy %SOURCE%\symbols\retail\dll\asp.sym %windir%\symbols\dll
  150. copy %SOURCE%\symbols\retail\dll\asptxn.sym %windir%\symbols\dll
  151. copy %SOURCE%\symbols\retail\dll\ssinc.sym %windir%\symbols\dll
  152. copy %SOURCE%\symbols\retail\dll\w3cache.sym %windir%\symbols\dll
  153. copy %SOURCE%\symbols\retail\dll\w3core.sym %windir%\symbols\dll
  154. copy %SOURCE%\symbols\retail\dll\w3dt.sym %windir%\symbols\dll
  155. copy %SOURCE%\symbols\retail\dll\w3isapi.sym %windir%\symbols\dll
  156. copy %SOURCE%\symbols\retail\dll\w3tp.sym %windir%\symbols\dll
  157. copy %SOURCE%\symbols\retail\dll\strmfilt.sym %windir%\symbols\dll
  158. copy %SOURCE%\symbols\retail\dll\w3comlog.sym %windir%\symbols\dll
  159. copy %SOURCE%\symbols\retail\dll\httpodbc.sym %windir%\symbols\dll
  160. copy %SOURCE%\symbols\retail\dll\isapips.sym %windir%\symbols\dll
  161. copy %SOURCE%\symbols\retail\dll\iisutil.sym %windir%\symbols\dll
  162. copy %SOURCE%\symbols\retail\dll\iisw3adm.sym %windir%\symbols\dll
  163. copy %SOURCE%\symbols\retail\dll\ipm.sym %windir%\symbols\dll
  164. copy %SOURCE%\symbols\retail\dll\metadata.sym %windir%\symbols\dll
  165. rem copy %SOURCE%\symbols\retail\dll\iw3controlps.sym %windir%\symbols\dll
  166. rem copy %SOURCE%\symbols\retail\dll\ulapi.sym %windir%\symbols\dll
  167. copy %SOURCE%\symbols\retail\dll\httpapi.sym %windir%\symbols\dll
  168. copy %SOURCE%\symbols\retail\exe\w3wp.sym %windir%\symbols\exe
  169. copy %SOURCE%\symbols\retail\exe\inetinfo.sym %windir%\symbols\exe
  170. rem copy %SOURCE%\symbols\retail\sys\ul.sym %windir%\symbols\sys
  171. copy %SOURCE%\symbols\retail\sys\http.sym %windir%\symbols\sys
  172. copy %SOURCE%\symbols\retail\dll\wam.sym %windir%\symbols\dll
  173. copy %SOURCE%\symbols\retail\dll\wamps.sym %windir%\symbols\dll
  174. copy %SOURCE%\symbols\retail\dll\wamreg.sym %windir%\symbols\dll
  175. REM -----------------------------------------------------------
  176. REM That should be it. Start everything up and see what breaks
  177. REM -----------------------------------------------------------
  178. net start snmp
  179. net start winmgmt
  180. net start w3svc
  181. :DONE
  182. rd %IIS6_TEMP% /s /q
  183. goto END
  184. :SYNTAX
  185. echo.
  186. echo Dude, you've got to specify a source.
  187. echo.
  188. goto END
  189. :NOTFOUND
  190. echo.
  191. echo Dude, there are no IIS 6 binaries in your source location.
  192. echo.
  193. goto END
  194. :END