diff --git a/excel_filter/ExcelFilterSetup.exe b/excel_filter/ExcelFilterSetup.exe new file mode 100644 index 0000000..473bbcb Binary files /dev/null and b/excel_filter/ExcelFilterSetup.exe differ diff --git a/excel_filter/build_installer.bat b/excel_filter/build_installer.bat index 7b1f31f..34c986d 100644 --- a/excel_filter/build_installer.bat +++ b/excel_filter/build_installer.bat @@ -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