Update installService.bat
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
Namhyeon Go 2024-07-27 21:38:38 +09:00
parent dad5c06a1b
commit 66879f229a

View File

@ -15,6 +15,7 @@ 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%"
REM Install the service
@ -28,4 +29,7 @@ REM Add parameters to the ImagePath registry key
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\%SERVICE_NAME%" /v ImagePath /t REG_EXPAND_SZ /d "\"%EXE_PATH%\" --working-directory=%CURRENT_DIR% --script-name=defaultService" /f
echo Service "%SERVICE_NAME%" installed and configured successfully.
sc start "%SERVICE_NAME%"
echo Service "%SERVICE_NAME%" started.
pause