@echo off REM =============================== REM DDNS Updater Uninstall using NSSM REM =============================== SET SCRIPT_DIR=%~dp0 SET NSSM_PATH=%SCRIPT_DIR%nssm.exe IF NOT EXIST "%NSSM_PATH%" ( echo ERROR: nssm.exe not found in the same folder as this script. pause exit /b 1 ) REM Stop and remove the service "%NSSM_PATH%" stop DDNSUpdaterService "%NSSM_PATH%" remove DDNSUpdaterService confirm echo. echo DDNSUpdaterService uninstalled successfully! pause