Squirrel 1.7.5: Uninstall does not remove icon from Taskbar
Hello,
We use Squirrel 1.7.5 and we want to remove the Taskbar icon when uninstalling the application. Although the uninstall process removes the shortcut from "USER\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar", we still see Taskbar icon and when we click it we have the option to remove it. Is there a way that the icon disappears on uninstall?
Thanks.
@SissiKonsta is it still an issue with the latest version of Squirrel?
@Thieum This is still an issue with the latest version of Squirrel.
This is still a problem in 2.0.1 I've done a fair bit of research on this and it seems Microsoft has intentionally been removing the APIs related to pinning and unpinning taskbar icons, due to past abuse.
NSIS does it like this, but I haven't worked out how it can be done in node yet: https://stackoverflow.com/a/42816728
There is another way to do it. Delete the file, run this regedit command and the next time explorer is restarted it will be gone. But I don't know how dangerous/permanent that is.
REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\ /v FavoritesRemovedChanges /f