diff --git a/startInteractiveService.bat b/startInteractiveService.bat new file mode 100644 index 0000000..36f1168 --- /dev/null +++ b/startInteractiveService.bat @@ -0,0 +1,13 @@ +REM startInteractiveService.bat +REM WelsonJS 0.2.7 +REM https://github.com/gnh1201/welsonjs +@echo off + +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 + +"%EXE_PATH%" --working-directory=%CURRENT_DIR% --script-name=defaultService diff --git a/uninstallService.bat b/uninstallService.bat new file mode 100644 index 0000000..5adc932 --- /dev/null +++ b/uninstallService.bat @@ -0,0 +1,22 @@ +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 \ No newline at end of file