{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/926","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/926/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/926/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/926/events","html_url":"https://github.com/electron-userland/electron-builder/issues/926","id":190519520,"number":926,"title":"NSIS: Auto-updating leaves a bad shortcut when a user attaches the icon to the Windows Taskbar","user":{"login":"SxMShaDoW","id":9122189,"avatar_url":"https://avatars.githubusercontent.com/u/9122189?v=3","gravatar_id":"","url":"https://api.github.com/users/SxMShaDoW","html_url":"https://github.com/SxMShaDoW","followers_url":"https://api.github.com/users/SxMShaDoW/followers","following_url":"https://api.github.com/users/SxMShaDoW/following{/other_user}","gists_url":"https://api.github.com/users/SxMShaDoW/gists{/gist_id}","starred_url":"https://api.github.com/users/SxMShaDoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SxMShaDoW/subscriptions","organizations_url":"https://api.github.com/users/SxMShaDoW/orgs","repos_url":"https://api.github.com/users/SxMShaDoW/repos","events_url":"https://api.github.com/users/SxMShaDoW/events{/privacy}","received_events_url":"https://api.github.com/users/SxMShaDoW/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-19T20:50:51Z","updated_at":"2016-11-29T07:14:13Z","closed_at":null,"body":"<!-- Which version of electron-builder are you using? -->\r\n* **Version**: Electron-builder: 8.6.0\r\n\r\n<!-- What target are you building for? -->\r\n* **Target**:  Windows NSIS\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n\r\n## User Story\r\nAs 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. \r\n\r\n## Current situation:\r\nWhen 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.\r\n\r\n### Example workflow:\r\n```\r\n### User side: \r\n1. user has electron app on Windows Taskbar.\r\n2. User runs electron app on 2.0.21. It is installed in C:\\Program Files\\electron-app\\2.0.21\\electron-app.exe \r\n3. User boots up the app. \r\n4. User gets install prompt. Accepts it.\r\n5. The app downloads. \r\n### Electron-App: \r\n* Creates a new folder 2.0.22. \r\n* Installs Electron-app in the  2.0.22. \r\n* Deletes folder 2.0.21.\r\n* leaves the dock icon referencing a folder and .exe that doesn't exist.\r\n\r\n```\r\n\r\n## Ideal situation:\r\nWhen you do an auto-update, the pinned Taskbar icon continues to work. \r\n\r\n## Assumptions: \r\nCurrently Electron-App structure is: Program_Files\\Electron-App-Name\\Version\\Electron-App.exe\r\nUninstalling is easy because it uninstalls the entire `Version` folder.\r\n\r\n## Potential Proposal:\r\nMove the .exe outside of the version folder?\r\nElectron-App Structure: \r\n* Program_files\\Electron-App-Name\\Electron-App.exe \r\n* Program_files\\Electron-App-Name\\Version\\Electron-App files (including uninstall)\r\n\r\nNote: The above proposal is just a suggestion, I am open to whatever the best technical implementation is (I trust you know better than me).\r\n\r\n\r\nReferences: #884 "},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/263494399","html_url":"https://github.com/electron-userland/electron-builder/issues/926#issuecomment-263494399","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/926","id":263494399,"user":{"login":"develar","id":350686,"avatar_url":"https://avatars.githubusercontent.com/u/350686?v=3","gravatar_id":"","url":"https://api.github.com/users/develar","html_url":"https://github.com/develar","followers_url":"https://api.github.com/users/develar/followers","following_url":"https://api.github.com/users/develar/following{/other_user}","gists_url":"https://api.github.com/users/develar/gists{/gist_id}","starred_url":"https://api.github.com/users/develar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/develar/subscriptions","organizations_url":"https://api.github.com/users/develar/orgs","repos_url":"https://api.github.com/users/develar/repos","events_url":"https://api.github.com/users/develar/events{/privacy}","received_events_url":"https://api.github.com/users/develar/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T07:14:13Z","updated_at":"2016-11-29T07:14:13Z","body":"Solution: Since you should use asar, it is ok to not create folder per version."}}
{"actor":{"display_login":"develar"}}