welsonjs/uninstallService.bat
Namhyeon, Go 0dec23bc65 Refactor installer components and registry handling
Renamed 'downloadtools' and 'winservice' components to 'addtools' in setup.iss and updated related registry and icon entries to use the new component. Registry entries for script execution are now conditional on the 'addtools' component. Removed unnecessary 'pause' from uninstallService.bat for streamlined service removal.
2025-11-24 00:34:10 +09:00

18 lines
446 B
Batchfile

REM uninstallService.bat
REM WelsonJS 0.2.7
REM https://github.com/gnh1201/welsonjs
@echo off
REM Set the service name
set SERVICE_NAME=WelsonJS.Service
REM Set the paths
set EXE_PATH=%APPDATA%\welsonjs\bin\WelsonJS.Service.exe
set INSTALL_UTIL_PATH=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
REM Uninstall the service
sc stop "%SERVICE_NAME%"
"%INSTALL_UTIL_PATH%" /u "%EXE_PATH%"
echo Service "%SERVICE_NAME%" removed.