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.

207 lines
9.8 KiB

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