Skip to content

Commit ffb9c86

Browse files
committed
BuildInstaller.bat: download WiX 3.14 if it is not present
1 parent b46883e commit ffb9c86

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: Src/Setup/BuildInstaller.bat

+10
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ md Temp
3636
@set /a "CS_VERSION_NUM=%%A<<24|%%B<<16|%%C"
3737
)
3838

39+
@REM Check if WiX is available in PATH
40+
@candle --help 1> nul 2>&1
41+
if ERRORLEVEL 1 (
42+
@echo --- Downloading WiX...
43+
@curl -s -L https://wixtoolset.org/downloads/v3.14.0.4118/wix314-binaries.zip -o Temp\wix314-binaries.zip > nul
44+
@7z x Temp\wix314-binaries.zip -oTemp\WiX -r > nul
45+
@if ERRORLEVEL 1 exit /b 1
46+
)
47+
@if exist "Temp\WiX" set PATH=%PATH%;%CD%\Temp\WiX
48+
3949
REM ********* Build x86 MSI
4050
echo --- x86 MSI
4151
candle Setup.wxs -nologo -out Temp\Setup32.wixobj -ext WixUIExtension -ext WixUtilExtension -dx64=0 -dARM64=0 -dCS_LANG_FOLDER=%CS_LANG_FOLDER% -dCS_LANG_NAME=%CS_LANG_NAME%

0 commit comments

Comments
 (0)