diff --git a/build-scripts/package-msi b/build-scripts/package-msi index 09a98043f..4d3868124 100755 --- a/build-scripts/package-msi +++ b/build-scripts/package-msi @@ -7,6 +7,40 @@ WIXPATH="$HOME/wix" +# First see if wix tools are installed, if not, do so +if [ -f "$WIXPATH/candle.exe" ] && [ -f "$WIXPATH/light.exe" ]; then + echo "Wix Tools are installed at $WIXPATH" +else + ( + # Fetch some prerequisites + cd /tmp || exit + echo ' +get /export/images/windows/wix310-binaries.zip +get /export/images/windows/wine-folder.tar.xz +' | sftp -b - jenkins_sftp_cache@build-artifacts-cache.cloud.cfengine.com + + # check checksums + sha256sum -c - <