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.

72 lines
2.1 KiB

  1. @echo off
  2. if (%PROCESSOR_ARCHITECTURE%)==() goto BadProcessor
  3. if (%WINDIR%)==() goto BadWinDir
  4. if not exist %WINDIR%\system32\ntoskrnl.exe goto BadWinDir
  5. if not exist %WINDIR%\system32\inetinfo.dll goto INFOsvcNotInstalled
  6. if not exist install.bat goto CannotInstall
  7. if not exist INFOctrs.h goto CannotInstall
  8. if not exist INFOctrs.ini goto CannotInstall
  9. if not exist INFOctrs.reg goto CannotInstall
  10. if not exist %PROCESSOR_ARCHITECTURE%\INFOctrs.dll goto CannotInstall
  11. echo Windows NT common internet Server Performance Counters Installation
  12. echo.
  13. echo This installation script makes the following assumptions:
  14. echo.
  15. echo o The Windows NT INFO Server has been properly installed.
  16. echo.
  17. echo o The LODCTR and REGINI utilities are on the path.
  18. echo.
  19. echo o This script is run from the INFOCTRS directory.
  20. echo.
  21. echo If these assumptions are not valid, please correct and try again.
  22. echo Press CTRL-C to exist now, otherwise
  23. pause
  24. copy %PROCESSOR_ARCHITECTURE%\INFOctrs.dll %WINDIR%\system32 >nul 2>&1
  25. if errorlevel 1 goto InstallError
  26. if not exist %WINDIR%\system32\INFOctrs.dll goto InstallError
  27. regini INFOctrs.reg >nul 2>&1
  28. if errorlevel 1 goto InstallError
  29. lodctr INFOctrs.ini
  30. if errorlevel 1 goto InstallError
  31. echo.
  32. echo Windows NT INFO Server Performance Counters Installation successful.
  33. goto Done
  34. :InstallError
  35. echo.
  36. echo Cannot install the Windows NT INFO Server Performance Counters.
  37. goto Done
  38. :CannotInstall
  39. echo This installation script MUST be run from the INFOCTRS
  40. echo directory on the appropriate Windows NT Resource Kit disk.
  41. goto Done
  42. :BadProcessor
  43. echo The PROCESSOR_ARCHITECTURE environment variable must be set to the
  44. echo proper processor type (X86, MIPS, etc) before running this script.
  45. goto Done
  46. :BadWinDir
  47. echo The WINDIR environment variable must point to the Windows NT
  48. echo installation directory (i.e. C:\NT).
  49. goto Done
  50. :INFOsvcNotInstalled
  51. echo The Windows NT INFO Server has not been properly installed
  52. echo on this system. Please install the Windows NT INFO Server
  53. echo before installing these performance counters.
  54. goto Done
  55. :Done