From ceb8f50e43edffe03b688389857adcce7f5be4e3 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 5 Jan 2018 17:53:19 +0000 Subject: [PATCH] Add option to add explorer context menu in Windows installer (#5774) A new dialogue is added in the Windows installer to offer the option of adding explorer.exe context menus to open PowerShell in the current location as a normal shell or as administrator. The context menu entries are achiveven via registry entries and is available when right-clicking on: - the background of explorer - a folder in explorer - a drive in explorer - on the Desktop --- assets/Product.wxs | 154 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 152 insertions(+), 2 deletions(-) diff --git a/assets/Product.wxs b/assets/Product.wxs index ed98172a4..a1fbe7e22 100644 --- a/assets/Product.wxs +++ b/assets/Product.wxs @@ -12,6 +12,9 @@ + + + @@ -67,7 +70,7 @@ - + @@ -75,6 +78,7 @@ + @@ -111,10 +115,55 @@ - + + + + ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -130,4 +179,105 @@ + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + "1"]]> + + 1 + + NOT Installed + Installed AND PATCH + + 1 + LicenseAccepted = "1" + + 1 + 1 + + 1 + 1 + NOT WIXUI_DONTVALIDATEPATH + "1"]]> + WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1" + 1 + 1 + 1 + + NOT Installed + Installed AND NOT PATCH + Installed AND PATCH + + 1 + + 1 + 1 + 1 + + + + + +