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.

77 lines
2.2 KiB

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