Skip to content

Commit

Permalink
Setup: inno_setup_compile.bat: use Inno Setup version 6 (if available…
Browse files Browse the repository at this point in the history
…, fallback to version 5 otherwise)
  • Loading branch information
DanRumery committed Sep 12, 2019
1 parent 51a104a commit 7da0832
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Setup/inno_setup_compile.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
@echo off
set InnoSetupFolderPathA="C:\Program Files (x86)\Inno Setup 5"
set InnoSetupFolderPathA="C:\Program Files (x86)\Inno Setup 6"
set InnoSetupFolderPathB="C:\Program Files (x86)\Inno Setup 5"

if EXIST %InnoSetupFolderPathA% (
set InnoSetupFolderPath=%InnoSetupFolderPathA%
) else (
echo.
echo ERROR: could not locate an Inno Setup 5 installation folder!
exit /b 1
if EXIST %InnoSetupFolderPathB% (
set InnoSetupFolderPath=%InnoSetupFolderPathB%
) else (
echo.
echo ERROR: could not locate an Inno Setup 5 or 6 installation folder!
exit /b 1
)
)

set InnoSetupCompileOptions=
Expand Down

0 comments on commit 7da0832

Please sign in to comment.