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:
@@ -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 (
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user