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.

37 lines
934 B

  1. @echo off
  2. set SAK_COMPONENTS=SAComponents
  3. set SAK_INSTALL=%SYSTEMROOT%\system32\serverappliance
  4. @echo ---------------------------------------------
  5. @echo Stopping services
  6. @echo ---------------------------------------------
  7. net stop w3svc
  8. @rem
  9. @echo ---------------------------------------------
  10. @echo Install WMI provider for IIS
  11. @echo ---------------------------------------------
  12. @rem
  13. xcopy /Y /C /S %SAK_COMPONENTS%\iisprov\bin\*.* %SystemRoot%\System32\WBEM\
  14. regsvr32 /s %SystemRoot%\system32\WBEM\iisprov.dll
  15. if not %ERRORLEVEL%==0 (
  16. echo install.bat: regsvr32 /s %SystemRoot%\system32\WBEM\iisprov.dll failed
  17. goto abort )
  18. xcopy /Y /C /S %SAK_COMPONENTS%\iisprov\mof\*.* %SystemRoot%\System32\WBEM\mof
  19. net start w3svc
  20. @rem
  21. @rem Make sure elementmgr recognizes the changes just installed
  22. @rem
  23. net stop elementmgr
  24. goto :end
  25. :abort
  26. echo INSTALLATION ABORTED
  27. goto :end
  28. :end