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.

71 lines
1.8 KiB

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