-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSIS: Auto-updating leaves a bad shortcut when a user attaches the icon to the Windows Taskbar #926
Comments
Solution: Since you should use asar, it is ok to not create folder per version. |
@develar: I upgraded to v10.2.0, but my application is still being unpinned during upgrade. |
@bontibon Were both versions (old and new) built by 10.2.0? |
@develar: Yes; I just re-ran the same installer. |
I can confirm on Windows 10 I am also experiencing this issue. Upon closing my application when a update will be installed the pin is removed (cleaned up by the NSIS installer?). When manually executing the installer I get the same behavior. |
UninstShortcut calls IStartMenuPinnedList::RemoveFromList which removes the shortcut from being pinned in both the start menu and the taskbar. Since the updater effectively runs the old uninstall and the new installer this is being called. If the paths are no longer being changed upon update (and the updater should check that, since the new installer could use a different directory) the portion of the uninstall where shortcuts are removed and reinstalled could be skipped when updating. |
Hi! Is there any workaround for this issue? |
Can confirm this problem. |
Fixed (If |
We are still experiencing this issue in Windows |
Actually it's a diff issue. It does not keep old short cut but it deletes old pinned icon on every upgrade. so looks like a diff issue. |
User Story
As a Electron-App user, I would like my pinned Taskbar icon to still work after updating, so I can quickly use my app after updates and reduce time spent pinning the icon to my Taskbar after every update.
Current situation:
When you do auto-update, it installs it in a new folder, deletes the old folder, and leaves the pinned Taskbar icon referencing a folder that doesn't exist.
Example workflow:
Ideal situation:
When you do an auto-update, the pinned Taskbar icon continues to work.
Assumptions:
Currently Electron-App structure is: Program_Files\Electron-App-Name\Version\Electron-App.exe
Uninstalling is easy because it uninstalls the entire
Version
folder.Potential Proposal:
Move the .exe outside of the version folder?
Electron-App Structure:
Note: The above proposal is just a suggestion, I am open to whatever the best technical implementation is (I trust you know better than me).
References: #884
The text was updated successfully, but these errors were encountered: