How to avoid broken taskbar shortcut after app update? #8108
Unanswered
ArmorBearer
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reposted from https://stackoverflow.com/questions/78004322/how-to-avoid-broken-taskbar-shortcut-after-app-update
Installing v1.2 of our app over v1.1 causes a shortcut pinned on the taskbar to be broken.
Here are the steps to see the problem:
When I click on the broken shortcut, Windows tells me this:
enter image description here
Ironically (or infuriatingly?), when I clicked No, it removed it anyway!!!
What can I do in our Wix code to prevent the shortcut from becoming broken?
I looked at How to keep taskbar shortcut during update? and Wix - Do Not Remove Pinned Taskbar on Install
So I tried adding this to my
<InstallExecuteSequence>
:<RemoveShortcuts>Installed AND NOT UPGRADINGPRODUCTCODE AND REMOVE="ALL"</RemoveShortcuts>
The intent was to remove shortcuts only when the user chooses to uninstall the product, but not to remove them for upgrades or repairs. That did not work. The shortcut is still broken after the upgrade install.
I suspect it may have something to do with warning messages I get when using light.exe to build the installer:
Encoding-Converters is a merge module from another development team.
Is there a way to avoid this conflict?
If there is, will it fix our problem with the broken taskbar shortcut?
UPDATE: I was able to work with a developer for the merge module, and we tried to ensure that both the merge module and the installer for our app had the same
<RemoveShortcuts>
line. Doing this removed the warning from Wix when building the installer, but the problem remains with the taskbar shortcut being broken.New question: Does it matter where in the
<InstallExecuteSequence>
, the<RemoveShortcuts>
is placed?Beta Was this translation helpful? Give feedback.
All reactions