diff --git a/bin/install_ddnsupdater_service.bat b/bin/install_ddnsupdater_service.bat new file mode 100644 index 0000000..f30611d --- /dev/null +++ b/bin/install_ddnsupdater_service.bat @@ -0,0 +1,17 @@ +@echo off +REM Check if a path parameter was provided +IF "%~1"=="" ( + echo Usage: install_ddns_service.bat ^ + exit /b 1 +) + +SET EXE_PATH=%~1 + +REM Create the service (auto-start) +sc create DDNSUpdaterService binPath= "%EXE_PATH%" start= auto + +REM Start the service +sc start DDNSUpdaterService + +echo Service DDNSUpdaterService installed and started. +pause diff --git a/bin/uninstall_ddnsupdater_service.bat b/bin/uninstall_ddnsupdater_service.bat new file mode 100644 index 0000000..4e633f7 --- /dev/null +++ b/bin/uninstall_ddnsupdater_service.bat @@ -0,0 +1,5 @@ +@echo off +sc stop DDNSUpdaterService +sc delete DDNSUpdaterService +echo Service DDNSUpdaterService stopped and deleted. +pause