My wix installer creates the shortcuts at Desktop and StartMenu during installation.
From the installed Startmenu shortcuts, Some of the users use the feature "Pin to taskbar" to pin the shortcuts to taskbar manually which is not in control of my wix msi.
The taskbar shortcut gets created at %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Product.lnk
in Windows 10.
The shortcuts at StartMenu and Desktop gets removed when product is uninstalled (which is expected), However the taskbar shortcut pinned manually goes orphaned and stays even after product is uninstalled.
How can i remove the taskbar shortcut when product is uninstalled ?
This is what I tried but it is not working:
<CustomAction Id="DeleteTaskBarShortcut" Execute="deferred"
ExeCommand="del "[AppDataFolder]\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Product.lnk""
Directory="AppDataFolder"
Impersonate="no"
Return="ignore" />
<InstallExecuteSequence>
<Custom Action="DeleteTaskBarShortcut" Before="RemoveFiles">Installed</Custom>
</InstallExecuteSequence>
Thanks in advance