diff --git a/service/README.md b/service/README.md index e94b99a..b6311cf 100644 --- a/service/README.md +++ b/service/README.md @@ -129,6 +129,9 @@ Or install it with the bundled script: install-service.bat ``` +The script expects `process-monitor.exe` and `process-monitor.conf` to be in the +same directory as `install-service.bat`. + Remove the service with: ```cmd diff --git a/service/install-service.bat b/service/install-service.bat index 73d532d..be3388f 100644 --- a/service/install-service.bat +++ b/service/install-service.bat @@ -3,8 +3,8 @@ setlocal set "SERVICE_NAME=ProcessMonitorService" set "BASE_DIR=%~dp0" -set "EXE_PATH=%BASE_DIR%build\Release\process-monitor.exe" -set "CONFIG_PATH=%BASE_DIR%build\Release\process-monitor.conf" +set "EXE_PATH=%BASE_DIR%process-monitor.exe" +set "CONFIG_PATH=%BASE_DIR%process-monitor.conf" if not exist "%EXE_PATH%" ( echo EXE not found: "%EXE_PATH%"