From 040254f46700fa7414f00d73a11676630e0c9558 Mon Sep 17 00:00:00 2001 From: George King <98261225+GeorgeK1ng@users.noreply.github.com> Date: Fri, 18 Jul 2025 09:37:57 +0200 Subject: [PATCH] Update build_installer.cmd --- CI/wininstaller/build_installer.cmd | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CI/wininstaller/build_installer.cmd b/CI/wininstaller/build_installer.cmd index 283f6d863..0cb57415a 100644 --- a/CI/wininstaller/build_installer.cmd +++ b/CI/wininstaller/build_installer.cmd @@ -56,6 +56,13 @@ if exist "%WinDir%\SysWow64" ( set "ProgFiles=%programfiles%" ) +set "ISCC=%ProgFiles%\Inno Setup %InnoSetupVer%\ISCC.exe" + +REM Github should have it installed in different location +if not exist "%ISCC%" ( + set "ISCC=%SystemDrive%\ProgramData\Chocolatey\bin\ISCC.exe" +) + REM Dynamically locate the UCRT path if not defined if not defined UCRTFilesPath ( set "UCRTBasePath=!ProgFiles!\Windows Kits\10\Redist" @@ -68,7 +75,7 @@ if not defined UCRTFilesPath ( ) REM Verify Inno Setup is installed -if not exist "%ProgFiles%\Inno Setup %InnoSetupVer%\ISCC.exe" ( +if not exist "%ISCC%" ( echo. echo ERROR: Inno Setup !InnoSetupVer! was not found in !ProgFiles!. echo Please install it or specify the correct path. @@ -108,7 +115,7 @@ echo InstallerScript: %InstallerScript% echo. REM Call Inno Setup Compiler -"%ProgFiles%\Inno Setup %InnoSetupVer%\ISCC.exe" "%InstallerScript%" ^ +"%ISCC%" "%InstallerScript%" ^ /DAppVersion="%AppVersion%" ^ /DAppBuild="%AppBuild%" ^ /DInstallerArch="%InstallerArch%" ^