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.0 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\drivers\sfmsrv.sys goto MacFileNotInstalled
  6. if not exist %WINDIR%\system32\sfmsvc.exe goto MacFileNotInstalled
  7. if not exist sfmctrs.bat goto CannotInstall
  8. if not exist sfmctrnm.h goto CannotInstall
  9. if not exist sfmctrs.ini goto CannotInstall
  10. if not exist sfmctrs.reg goto CannotInstall
  11. if not exist sfmctrs.dll goto CannotInstall
  12. echo Windows NT MacFile Server Performance Counters Installation
  13. echo.
  14. echo This installation script makes the following assumptions:
  15. echo.
  16. echo o The Windows NT MacFile Server has been properly installed.
  17. echo.
  18. echo o The LODCTR and REGINI utilities are on the path.
  19. echo.
  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 sfmctrs.dll %WINDIR%\system32 >nul 2>&1
  25. if errorlevel 1 goto InstallError
  26. if not exist %WINDIR%\system32\sfmctrs.dll goto InstallError
  27. regini sfmctrs.reg >nul 2>&1
  28. if errorlevel 1 goto InstallError
  29. lodctr sfmctrs.ini
  30. if errorlevel 1 goto InstallError
  31. echo.
  32. echo Windows NT MacFile Server Performance Counters Installation successful.
  33. goto Done
  34. :InstallError
  35. echo.
  36. echo Cannot install the Windows NT MacFile Server Performance Counters.
  37. goto Done
  38. :CannotInstall
  39. echo This installation script MUST be run from the RESKIT
  40. echo directory.
  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. :MacFileNotInstalled
  51. echo The Windows NT MacFile Server has not been properly installed
  52. echo on this system. Please install the Windows NT MacFile Server
  53. echo before installing these performance counters.
  54. goto Done
  55. :Done
  56.