From 89822f33ab3f56cdf5e24fc35aedcc564058ecb2 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Sun, 9 Jul 2017 14:40:36 +0100 Subject: [PATCH 1/2] Checkbox to open PowerShell after the (Windows) installation has finished. Default value is unchecked. The official WiX guide was followed: http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html --- assets/Product.wxs | 7 +++++++ build.psm1 | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/assets/Product.wxs b/assets/Product.wxs index e4bea5860da..3cf80efa7f6 100644 --- a/assets/Product.wxs +++ b/assets/Product.wxs @@ -31,6 +31,13 @@ + + + + + + + WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed diff --git a/build.psm1 b/build.psm1 index de972a22384..e7cc4056cdc 100644 --- a/build.psm1 +++ b/build.psm1 @@ -2591,8 +2591,8 @@ function New-MSIPackage Remove-Item -ErrorAction SilentlyContinue $msiLocationPath -Force & $wixHeatExePath dir $ProductSourcePath -dr $productVersionWithName -cg $productVersionWithName -gg -sfrag -srd -scom -sreg -out $wixFragmentPath -var env.ProductSourcePath -v | Write-Verbose - & $wixCandleExePath "$ProductWxsPath" "$wixFragmentPath" -out (Join-Path "$env:Temp" "\\") -arch x64 -v | Write-Verbose - & $wixLightExePath -out $msiLocationPath $wixObjProductPath $wixObjFragmentPath -ext WixUIExtension -dWixUILicenseRtf="$LicenseFilePath" -v | Write-Verbose + & $wixCandleExePath "$ProductWxsPath" "$wixFragmentPath" -out (Join-Path "$env:Temp" "\\") -ext WixUIExtension -ext WixUtilExtension -arch x64 -v | Write-Verbose + & $wixLightExePath -out $msiLocationPath $wixObjProductPath $wixObjFragmentPath -ext WixUIExtension -ext WixUtilExtension -dWixUILicenseRtf="$LicenseFilePath" -v | Write-Verbose Remove-Item -ErrorAction SilentlyContinue *.wixpdb -Force From 16280bb8273cb009a5b935b73f42074469a9ab82 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Fri, 14 Jul 2017 22:49:29 +0100 Subject: [PATCH 2/2] Replaced CheckBox text "Open PowerShell" with " Open $(env.ProductName)" as requested in pull request review. --- assets/Product.wxs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Product.wxs b/assets/Product.wxs index 3cf80efa7f6..48ff22fdaea 100644 --- a/assets/Product.wxs +++ b/assets/Product.wxs @@ -33,7 +33,7 @@ - +