Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
installer: do not remove shortcuts when updating, fixes #425
Browse files Browse the repository at this point in the history
Current installer will remove completely the previous installed version before installing the update
This results in breaking the pinned taskbar shortcuts at every update which is irritating for users.

That patch will skip the shortcuts removal. This will also skip the shortcut removal when completely uninstalling the app, but windows will propose to remove it next time you click it and that the app was uninstalled.

So this is improving current situation even if not perfect.
  • Loading branch information
LongChair committed Apr 26, 2018
1 parent f13a95a commit f9fb10a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bundle/win/PMP.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<!-- Prevent downgrades from newer versions -->
<Custom Action="PreventDowngrades" After="FindRelatedProducts">NEWERPRODUCTFOUND</Custom>
<!-- Uninstall older versions before installing ourselves -->
<RemoveShortcuts>Installed AND NOT UPGRADINGPRODUCTCODE</RemoveShortcuts>
<RemoveExistingProducts After="InstallInitialize">PREVIOUSVERSIONINSTALLED</RemoveExistingProducts>
<Custom Action="LaunchPMP" After="InstallFinalize"><![CDATA[AUTOLAUNCH = 1]]></Custom>
<Custom Action="WixCloseApplications" After="InstallInitialize" />
Expand Down

0 comments on commit f9fb10a

Please sign in to comment.