From 62ab354674ca2bf33702628816f8606971076271 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 11 Feb 2025 17:17:51 +0900 Subject: [PATCH] Update installService.bat --- installService.bat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/installService.bat b/installService.bat index 8882665..29e2fa5 100644 --- a/installService.bat +++ b/installService.bat @@ -11,7 +11,14 @@ 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 +if "%PROCESSOR_ARCHITECTURE%"=="x86" ( + set EXE_PATH=%CURRENT_DIR%\bin\x86\WelsonJS.Service.exe +) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( + set EXE_PATH=%CURRENT_DIR%\bin\x64\WelsonJS.Service.exe +) else ( + echo Unsupported platform: %PROCESSOR_ARCHITECTURE% + exit /b 1 +) set INSTALL_UTIL_PATH=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe REM Uninstall the service