From f50ae19805ee0af0de379374bd4f805b4b0a0730 Mon Sep 17 00:00:00 2001 From: Hamza Zakaria Date: Tue, 17 Mar 2026 14:25:17 +0100 Subject: [PATCH] added bat files to install and uninstall DDNSUpdater as Service --- bin/install_ddnsupdater_service.bat | 17 +++++++++++++++++ bin/uninstall_ddnsupdater_service.bat | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 bin/install_ddnsupdater_service.bat create mode 100644 bin/uninstall_ddnsupdater_service.bat 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