From f95fbf144e26dac95564dcaa0624ef357d71e468 Mon Sep 17 00:00:00 2001 From: bergmeister Date: Sat, 15 Jul 2017 02:10:35 +0100 Subject: [PATCH] Checkbox to open PowerShell after the (Windows) installer has finished (#4203) Added a checkbox (unchecked by default) to the last dialogue of the Windows installer to provide the option of opening PowerShell because that's what most people want to do if they installed PowerShell. --- 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 e4bea5860..48ff22fda 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 579d1bad8..d67f9961d 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