mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
22 lines
539 B
Batchfile
22 lines
539 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 Get the current directory
|
||
|
set CURRENT_DIR=%~dp0
|
||
|
set CURRENT_DIR=%CURRENT_DIR:~0,-1%
|
||
|
|
||
|
REM Set the paths
|
||
|
set EXE_PATH=%CURRENT_DIR%\bin\x86\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
|