mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
- Now the installation is divided in modules: ModSecurity and CRS. - Added default configuration - Configuration was moved to "Program Files" folder - Build_msi script now using candle available in %PATH%
30 lines
1.0 KiB
Batchfile
30 lines
1.0 KiB
Batchfile
|
|
|
|
set PATH="%PATH%;C:\Program Files (x86)\WiX Toolset v3.8\bin;C:\Program Files (x86)\WiX Toolset v3.7\bin;"
|
|
set CURRENT_DIR=%cd%
|
|
|
|
del installer.wix*
|
|
|
|
"candle.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wxs" -out "%CURRENT_DIR%\installer.wixobj" -dPlatform="x64"
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
"light.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wixobj" -out "%CURRENT_DIR%\installer-64.msi" -dPlatform="x64"
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
"candle.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wxs" -out "%CURRENT_DIR%\installer.wixobj" -dPlatform="x86"
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
"light.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wixobj" -out "%CURRENT_DIR%\installer-32.msi" -dPlatform="x86"
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
exit /B 0
|
|
|
|
:build_failed
|
|
@echo Problems during the building phase
|
|
@goto failed
|
|
|
|
:failed
|
|
@cd %CURRENT_DIR%
|
|
@exit /B 1
|
|
|