Fixed build_installer with correct inno setup paths

This commit is contained in:
jonasgaudian
2026-02-12 10:01:54 +01:00
parent d7f49197c0
commit 29af93abfc
2 changed files with 30 additions and 11 deletions

Binary file not shown.

View File

@@ -40,18 +40,37 @@ if defined ISCC_PATH (
)
:: Check common installation paths
set "common_paths=C:\Program Files (x86)\Inno Setup 6
C:\Program Files\Inno Setup 6
C:\Program Files (x86)\Inno Setup 5
C:\Program Files\Inno Setup 5
C:\Inno Setup 6
C:\Inno Setup 5"
:: Each path must be checked individually to handle spaces correctly
set "PATH1=C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
set "PATH2=C:\Program Files\Inno Setup 6\ISCC.exe"
set "PATH3=C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
set "PATH4=C:\Program Files\Inno Setup 5\ISCC.exe"
set "PATH5=C:\Inno Setup 6\ISCC.exe"
set "PATH6=C:\Inno Setup 5\ISCC.exe"
for %%p in (%common_paths%) do (
if exist "%%p\ISCC.exe" (
set "ISCC_PATH=%%p\ISCC.exe"
goto :found_iscc
)
if exist "%PATH1%" (
set "ISCC_PATH=%PATH1%"
goto :found_iscc
)
if exist "%PATH2%" (
set "ISCC_PATH=%PATH2%"
goto :found_iscc
)
if exist "%PATH3%" (
set "ISCC_PATH=%PATH3%"
goto :found_iscc
)
if exist "%PATH4%" (
set "ISCC_PATH=%PATH4%"
goto :found_iscc
)
if exist "%PATH5%" (
set "ISCC_PATH=%PATH5%"
goto :found_iscc
)
if exist "%PATH6%" (
set "ISCC_PATH=%PATH6%"
goto :found_iscc
)
:: Check for any Inno Setup folder in Program Files directories