Fix directory when running as administrator (#1009)

* Update install-windows.bat

* Update s-ui-windows.bat

* Update install-windows.bat

* Update build-windows.bat
This commit is contained in:
Seva
2026-02-18 02:26:16 +07:00
committed by GitHub
parent dd07abf501
commit 083f19324f
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -3,6 +3,8 @@ setlocal enabledelayedexpansion
echo Building S-UI for Windows...
cd /d "%~dp0"
REM Check if Go is installed
go version >nul 2>&1
if errorlevel 1 (
+1
View File
@@ -14,6 +14,7 @@ if %errorLevel% neq 0 (
exit /b 1
)
cd /d "%~dp0"
REM Set installation directory
set "INSTALL_DIR=C:\Program Files\s-ui"
set "SERVICE_NAME=s-ui"
+1
View File
@@ -4,6 +4,7 @@ setlocal enabledelayedexpansion
REM S-UI Windows Control Script
REM This script provides a menu-driven interface for managing S-UI on Windows
cd /d "%~dp0"
set "SERVICE_NAME=s-ui"
set "INSTALL_DIR=%SUI_HOME%"
if "%INSTALL_DIR%"=="" set "INSTALL_DIR=C:\Program Files\s-ui"