welsonjs/uninstallService.bat
Namhyeon, Go 15e6596285 Fix EXE_PATH case in service scripts
Updated the EXE_PATH variable in both installService.bat and uninstallService.bat to use 'welsonjs' instead of 'WelsonJS' for consistency and to avoid potential path issues.
2025-11-21 11:01:10 +09:00

18 lines
451 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.
pause