From d5544dc6d1b1d781db5e6cdd9157c93b5aaceace Mon Sep 17 00:00:00 2001 From: walker0643 <> Date: Tue, 6 Feb 2018 20:08:37 -0500 Subject: [PATCH] fix installer build. at this point the process is not at all robust..it mainly just works for me. --- build_installer_windows.bat | 35 +++++++++++++++++++++++++++++++++++ dist/wix/Include.wxi.in | 10 +++++----- dist/wix/Product.wxs | 23 +++-------------------- 3 files changed, 43 insertions(+), 25 deletions(-) create mode 100644 build_installer_windows.bat diff --git a/build_installer_windows.bat b/build_installer_windows.bat new file mode 100644 index 00000000..8bac74c9 --- /dev/null +++ b/build_installer_windows.bat @@ -0,0 +1,35 @@ +@echo off +set WIX_ROOT=C:\Program Files (x86)\WiX Toolset v3.11 + +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 +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 winbuild_env.bat +echo - also set other environmental overrides necessary for your build environment +echo - run clean_build_windows.bat to build Barrier and verify that it succeeds +echo - re-run this script to create the installation package +goto done + +:failed +echo Build failed + +:done +set WIX_ROOT= + +cd /d %savedir% +set savedir= diff --git a/dist/wix/Include.wxi.in b/dist/wix/Include.wxi.in index de30cb9f..962f5d7a 100644 --- a/dist/wix/Include.wxi.in +++ b/dist/wix/Include.wxi.in @@ -2,7 +2,7 @@ - + @@ -11,19 +11,19 @@ - + - + - + - + diff --git a/dist/wix/Product.wxs b/dist/wix/Product.wxs index 4923f953..dd74f7d4 100644 --- a/dist/wix/Product.wxs +++ b/dist/wix/Product.wxs @@ -12,8 +12,6 @@ - - @@ -79,6 +77,8 @@ + + @@ -106,22 +106,5 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file +