From b21faacf8516b1d66355d4f9bbeba67884ee3ad1 Mon Sep 17 00:00:00 2001 From: RevLayDust <225862333+RevLayDust@users.noreply.github.com> Date: Fri, 9 Oct 2026 17:59:14 +0700 Subject: [PATCH] fix(installer): replace parentheses with brackets in batch blocks to prevent premature exit - Fix CMD block parsing syntax error where literal parentheses inside if blocks closed the block prematurely - Verified clean execution without syntax errors across both CUDA and CPU modes --- install/install_packages.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/install_packages.bat b/install/install_packages.bat index 7309fd9..8158768 100644 --- a/install/install_packages.bat +++ b/install/install_packages.bat @@ -224,8 +224,8 @@ if "!PREV_RECORD_EXISTS!"=="1" ( call :log "Previous install detected: Option !PREV_OPTION!, Mode !PREV_MODE!" ) if not "!VENV_TORCH_TYPE!"=="NONE" ( - echo Current environment stack : Torch=!VENV_TORCH_TYPE! (!VENV_TORCH_VER!), ORT=!VENV_ORT_TYPE! (!VENV_ORT_VER!) - call :log "Current venv stack: Torch !VENV_TORCH_TYPE! (!VENV_TORCH_VER!), ORT !VENV_ORT_TYPE! (!VENV_ORT_VER!)" + echo Current environment stack : Torch=!VENV_TORCH_TYPE! [!VENV_TORCH_VER!], ORT=!VENV_ORT_TYPE! [!VENV_ORT_VER!] + call :log "Current venv stack: Torch !VENV_TORCH_TYPE! [!VENV_TORCH_VER!], ORT !VENV_ORT_TYPE! [!VENV_ORT_VER!]" ) exit /b 0 @@ -361,7 +361,7 @@ if "%INSTALL_MODE%"=="TENSORRT_RTX" ( if not "!VENV_ORT_VER!"=="1.24.4" set "NEED_ORT_REPLACE=1" if "!NEED_ORT_REPLACE!"=="1" ( echo. - echo [UPGRADE] Transitioning ONNX Runtime stack to TensorRT-RTX (ORT 1.24.4 + TRT-RTX plugin)... + echo [UPGRADE] Transitioning ONNX Runtime stack to TensorRT-RTX [ORT 1.24.4 + TRT-RTX plugin]... call :log "Stack transition: Switching ORT stack to TensorRT-RTX" ) ) @@ -370,7 +370,7 @@ if "%INSTALL_MODE%"=="NVIDIA" ( if not "!VENV_ORT_VER!"=="1.22.0" set "NEED_ORT_REPLACE=1" if "!NEED_ORT_REPLACE!"=="1" ( echo. - echo [SWITCH] Transitioning ONNX Runtime stack to standard CUDA EP (ORT 1.22.0)... + echo [SWITCH] Transitioning ONNX Runtime stack to standard CUDA EP [ORT 1.22.0]... call :log "Stack transition: Switching ORT stack to standard CUDA EP" ) ) @@ -380,7 +380,7 @@ if not "%INSTALL_MODE%"=="CPU" ( if not "!VENV_TORCH_CUDA!"=="12.8" ( if not "!VENV_TORCH_TYPE!"=="NONE" ( set "NEED_TORCH_REPLACE=1" - echo [UPGRADE] PyTorch CUDA version mismatch (!VENV_TORCH_CUDA! vs 12.8). Replacing with cu128... + echo [UPGRADE] PyTorch CUDA version mismatch: !VENV_TORCH_CUDA! vs 12.8. Replacing with cu128... call :log "Stack transition: Replacing PyTorch with cu128 due to version mismatch" ) )