{"action":"closed","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/6088","repository_url":"https://api.github.com/repos/PowerShell/PowerShell","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/6088/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/6088/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/6088/events","html_url":"https://github.com/PowerShell/PowerShell/issues/6088","id":293700388,"number":6088,"title":"[Windows] Pinned PowerShell shortcuts are lost after upgrade.","user":{"login":"SwarfegaGit","id":17131194,"avatar_url":"https://avatars1.githubusercontent.com/u/17131194?v=4","gravatar_id":"","url":"https://api.github.com/users/SwarfegaGit","html_url":"https://github.com/SwarfegaGit","followers_url":"https://api.github.com/users/SwarfegaGit/followers","following_url":"https://api.github.com/users/SwarfegaGit/following{/other_user}","gists_url":"https://api.github.com/users/SwarfegaGit/gists{/gist_id}","starred_url":"https://api.github.com/users/SwarfegaGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwarfegaGit/subscriptions","organizations_url":"https://api.github.com/users/SwarfegaGit/orgs","repos_url":"https://api.github.com/users/SwarfegaGit/repos","events_url":"https://api.github.com/users/SwarfegaGit/events{/privacy}","received_events_url":"https://api.github.com/users/SwarfegaGit/received_events","type":"User","site_admin":false},"labels":[{"id":311043049,"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Resolution-Duplicate","name":"Resolution-Duplicate","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-01T22:05:10Z","updated_at":"2018-02-02T00:41:07Z","closed_at":"2018-02-02T00:41:07Z","author_association":"CONTRIBUTOR","body":"New issue at the request of @SteveL-MSFT in issue #6080 \r\n\r\nWhen upgrading between new versions of PowerShell any pinned Start Menu or Taskbar Icons are lost.\r\nIf you copy the shortcut from the Start Menu to anywhere else, such as the desktop, that icon also stops functioning following an upgrade.\r\n\r\nI believe the reason for this is because the path changes to the pwsh.exe changes after the upgrade due to the version being part of the file path for the pwsh.exe file.  E.G.\r\n\r\n* C:\\Program Files\\PowerShell\\6.0.0-beta.9\\pwsh.exe\r\n* C:\\Program Files\\PowerShell\\6.0.0-rc.2\\pwsh.exe\r\n* C:\\Program Files\\PowerShell\\6.0.0\\pwsh.exe\r\n* C:\\Program Files\\PowerShell\\6.0.1\\pwsh.exe\r\n\r\nIdeally the version number folder should be removed or at least the pwsh.exe is moved into the PowerShell folder and the rest of the files remain in the version folder.  Also, is there a real need to keep the version number found on the shortcut that's placed into the Start Menu?\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n1. Uninstall PowerShell.\r\n2. Install [PowerShell 6.0.0](https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/PowerShell-6.0.0-win-x64.msi).  \r\n3. Right click the 'PowerShell-6.0.0' shortcut and select 'Pin to Start' or/and 'Pin to taskbar'. \r\n4. Run the [PowerShell 6.0.1](https://github.com/PowerShell/PowerShell/releases/download/v6.0.1/PowerShell-6.0.1-win-x64.msi) installer to perform an upgrade.\r\n\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nFor the PowerShell icon to remain pinned and working after the upgrade.  \r\n\r\nActual behavior\r\n---------------\r\n\r\nThe one in the Start Menu disappears.  The one on the taskbar turns to a white default file icon which when clicked (Windows 10)...\r\n\r\n````none\r\n[Window Title]\r\nWindows\r\n\r\n[Main Instruction]\r\nCan't open this item\r\n\r\n[Content]\r\nIt might have been moved, renamed, or deleted. Do you want to remove this item?\r\n\r\n[Yes] [No]\r\n````\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.0.1\r\nPSEdition                      Core\r\nGitCommitId                    v6.0.1\r\nOS                             Microsoft Windows 10.0.17083\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n"}}
{"actor":{"display_login":"SteveL-MSFT"}}