From 724f691e159f69c16d01ca00908452d2d8d6c5d4 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 13 Jun 2021 22:29:55 -0400 Subject: [PATCH] Multiple fixes for MSI installer * Fix #6242 - pinned taskbar shortcuts are not removed on upgrade or uninstall. Icons will be preserved between upgrades. * Fix #6627 - properly set checkboxes for desktop shortcut and autostart of login based on current settings during install * Add documentation shortcuts to the start menu * Auto-accept license if upgrading application --- share/windows/KPXC_ExitDlg.wxs | 2 +- share/windows/wix-template.xml | 43 +++++++++++++++++++++++++--------- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/share/windows/KPXC_ExitDlg.wxs b/share/windows/KPXC_ExitDlg.wxs index 0ed4d3e8a..ac4a802e4 100644 --- a/share/windows/KPXC_ExitDlg.wxs +++ b/share/windows/KPXC_ExitDlg.wxs @@ -15,7 +15,7 @@ diff --git a/share/windows/wix-template.xml b/share/windows/wix-template.xml index 918fe64ec..173a11552 100644 --- a/share/windows/wix-template.xml +++ b/share/windows/wix-template.xml @@ -57,16 +57,24 @@ - + - + - - + + + + @@ -80,33 +88,46 @@ Name="KeePassXC" Target="[#CM_FP_KeePassXC.exe]" WorkingDirectory="INSTALL_ROOT" /> + - + + + + + + + + + + + AUTOSTARTPROGRAM="0" OR (WIX_UPGRADE_DETECTED AND NOT AUTOSTARTPROGRAM_REGISTRY) + WIX_UPGRADE_DETECTED AND INSTALLDESKTOPSHORTCUT_REGISTRY + WIX_UPGRADE_DETECTED - + + - + + - - - - + +