You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uninstall problem(context menu was not removed) #7826
uninstall the previous version powershell6-preview
Expected behavior
delete the folder and context menu at the same time
Actual behavior
folder was deleted, but the context menu not
Environment data
I do not remember the version number since I have uninstalled it.
But I have the package name PowerShell-6.1.0-rc.1-win-x64.msi which used to install previous version.
Reacted by Jason Papakostas, videokojot, Stéphane BARIZIEN and ShefSam
I have this problem on my machine as well. It seems there must've been a faulty MSI during a preview phases when the 6.1-preview packages were renamed to 6-preview. 6.1.0 correctly removes the context menu on uninstall. Since this is a preview build, I'd advise to manually remove the left-over registry keys, you can find them here
I also have been dealing with this for months. Wish someone would whip up a quick tool to automate this as it's very annoying for hundreds of people to have to go to their registry to fully remove a program.
PR #8496 has been made to fix this, can you report which version. Otherwise this is just the nature of previews that some previews might have bugs in them (I saw it generally working but there were some 'bad' versions in the past that caused that). Windows 1903 added a feature called 'Sandbox' if you want to try out previews without affecting your system or having to do it in a virtual machine
I saw a similar problem when upgrading from 6.2.0 to 7.0.0-preview.1:
Install PowerShell-6.2.0-win-x64.msi
Install PowerShell-7.0.0-preview.1-win-x64.msi
Uninstall 6.2.0
Repair 7.0.0-preview.1, just in case the uninstallation of 6.2.0 damaged it
After those steps, I had duplicate registry keys, e.g. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\PowerShell6x64 and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\PowerShell7-previewx64. The PowerShell6x64 keys ought to have been deleted. I presume Windows Installer did not delete them because the component GUID was not changed.
This comment says PowerShell intends to switch from MSI to MSIX instead of frobbing the component GUIDs. Is that still going to happen before the 7.0.0 release?
(By the way, I spent a while searching docs.microsoft.com for information on the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\ContextMenus key. However, it turns out to be referenced by ExtendedSubCommandsKey values of other Registry keys, rather than specially recognized by the shell.)
Christoph Bergmeister (@bergmeister) After uninstalling PowerShell-7.0.0-preview.2-win-x86.msi I am left with a broken PowerShell 7-preview (x86) menu; it seems #8496 did not fix this issue.
After installing PowerShell-7.0.0-preview.3-win-x64.msi, the previous preview context menu looks weird. And I have checked the C:\Program Files\PowerShell\6-preview, it might empty by the Powershell7-preview installer. #7826 (comment)
After installing PowerShell-7.0.0-win-x64.msi, the PowerShell preview 7.0 was uninstalled, but the context menu was kept.
Then I removed the context menu "PowerShell 7-preview" by Easy Context Menu 1.6.
Reacted by Thành Thân Thiện, Toma Becea, Ringtailed Fox, Jesus Iniesta and Renat
Activity
bergmeister commentedon Oct 1, 2018
I have this problem on my machine as well. It seems there must've been a faulty MSI during a preview phases when the 6.1-preview packages were renamed to
6-preview.6.1.0correctly removes the context menu on uninstall. Since this is a preview build, I'd advise to manually remove the left-over registry keys, you can find them hereCoolOppo commentedon Jun 6, 2019
I also have been dealing with this for months. Wish someone would whip up a quick tool to automate this as it's very annoying for hundreds of people to have to go to their registry to fully remove a program.
Edit: got it all fixed up and it wasn't that bad
bergmeister commentedon Jun 6, 2019
PR #8496 has been made to fix this, can you report which version. Otherwise this is just the nature of previews that some previews might have bugs in them (I saw it generally working but there were some 'bad' versions in the past that caused that). Windows 1903 added a feature called 'Sandbox' if you want to try out previews without affecting your system or having to do it in a virtual machine
KalleOlaviNiemitalo commentedon Jul 1, 2019
I saw a similar problem when upgrading from 6.2.0 to 7.0.0-preview.1:
After those steps, I had duplicate registry keys, e.g.
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\PowerShell6x64andHKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\PowerShell7-previewx64. The PowerShell6x64 keys ought to have been deleted. I presume Windows Installer did not delete them because the component GUID was not changed.This comment says PowerShell intends to switch from MSI to MSIX instead of frobbing the component GUIDs. Is that still going to happen before the 7.0.0 release?
(By the way, I spent a while searching docs.microsoft.com for information on the
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\ContextMenuskey. However, it turns out to be referenced byExtendedSubCommandsKeyvalues of other Registry keys, rather than specially recognized by the shell.)vith commentedon Aug 26, 2019
Christoph Bergmeister (@bergmeister) After uninstalling
PowerShell-7.0.0-preview.2-win-x86.msiI am left with a brokenPowerShell 7-preview (x86)menu; it seems #8496 did not fix this issue.chucklu commentedon Aug 29, 2019
After installing

PowerShell-7.0.0-preview.3-win-x64.msi, the previous preview context menu looks weird. And I have checked theC:\Program Files\PowerShell\6-preview, it might empty by the Powershell7-preview installer.#7826 (comment)
maicWorkGithub commentedon Mar 19, 2020
uninstalled
6and7-preview, looks awful...bergmeister commentedon Mar 19, 2020
Please refer to this comment for manually removing left-overs #12105 (comment)
In issue #12011 a potential solution to this is being discussed.
maicWorkGithub commentedon Mar 20, 2020
Christoph Bergmeister (@bergmeister) still there, need reboot?
chucklu commentedon Mar 20, 2020
maic (@maicWorkGithub) You could try to remove the context menu by Easy Context Menu 1.6.


select the context menu you want to remove, and click delete
chucklu commentedon Mar 20, 2020
After installing PowerShell-7.0.0-win-x64.msi, the PowerShell preview 7.0 was uninstalled, but the context menu was kept.

Then I removed the context menu "PowerShell 7-preview" by Easy Context Menu 1.6.
chucklu commentedon Nov 16, 2023
manually remove the menu by Easy Context Menu 1.6.