mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 10:00:57 +00:00
Service executable paths in installService.bat and uninstallService.bat now use %APPDATA% for improved portability. The setup.iss installer script updates registry keys to use the application name macro, adjusts file and icon paths to user appdata, and changes PowerShell execution flags. afterInstall.ps1 now downloads and extracts WelsonJS binary artifacts from a remote URL.
18 lines
451 B
Batchfile
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 |