diff --git a/CMakeLists.txt b/CMakeLists.txt index 538f8f9c..d5ec96f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -403,6 +403,7 @@ endif() # Windows installer # if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") + set (BARRIER_WIX_VERSION "${BARRIER_VERSION_MAJOR}.${BARRIER_VERSION_MINOR}.${BARRIER_VERSION_PATCH}") message (STATUS "Configuring the wix installer") configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer-wix) message (STATUS "Configuring the inno installer") diff --git a/build_installer.bat b/build_installer.bat index 424e585a..9c204ccf 100644 --- a/build_installer.bat +++ b/build_installer.bat @@ -1,25 +1,24 @@ @echo off -set WIX_ROOT=C:\Program Files (x86)\WiX Toolset v3.11 +set INNO_ROOT=C:\Program Files (x86)\Inno Setup 5 set savedir=%cd% cd /d %~dp0 if not exist build\bin\Release goto buildproject -cd build\installer -if ERRORLEVEL 1 goto buildproject - echo Building 64-bit Windows installer... -"%WIX_ROOT%\bin\candle.exe" -nologo -arch x64 -dConfiguration=Release -dPlatform=x64 -ext WixUtilExtension -ext WixFirewallExtension Product.wxs -o Barrier.wixobj -if ERRORLEVEL 1 goto failed -"%WIX_ROOT%\bin\light.exe" -nologo -ext WixUtilExtension -ext WixFirewallExtension -ext WixUIExtension Barrier.wixobj -o bin\Barrier.msi + +cd build\installer-inno +if ERRORLEVEL 1 goto buildproject +"%INNO_ROOT%\ISCC.exe" /Qp barrier.iss if ERRORLEVEL 1 goto failed + echo Build completed successfully goto done :buildproject echo To build a 64-bit Windows installer: -echo - set Q_BUILD_TYPE=Release in build_env.bat +echo - set B_BUILD_TYPE=Release in build_env.bat echo - also set other environmental overrides necessary for your build environment echo - run clean_build.bat to build Barrier and verify that it succeeds echo - re-run this script to create the installation package @@ -29,7 +28,7 @@ goto done echo Build failed :done -set WIX_ROOT= +set INNO_ROOT= cd /d %savedir% set savedir= diff --git a/dist/wix/Include.wxi.in b/dist/wix/Include.wxi.in index 652d203a..cba9a06a 100644 --- a/dist/wix/Include.wxi.in +++ b/dist/wix/Include.wxi.in @@ -1,7 +1,7 @@ - + @@ -11,12 +11,12 @@ - + - + diff --git a/dist/wix/Product.wxs b/dist/wix/Product.wxs index 1abc21ee..d0b79806 100644 --- a/dist/wix/Product.wxs +++ b/dist/wix/Product.wxs @@ -31,7 +31,6 @@ - NOT Installed