GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Remove duplicate `Open Here` context menu item upgrading to newer Preview release by SteveL-MSFT · Pull Request #8496 · PowerShell/PowerShell Conversation
|
|
Christoph Bergmeister (@bergmeister) thanks for looking into this. Our plan is to move to MSIX (post 6.2) so I don't think we want to spend a bunch of time trying getting things perfect now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) I think we're good to merge this one |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This issue will still affect users that upgrade to the latest PoSh Core 6.2.x and once had a preview release. Suggestion if the directory and WMI call results there is no 6 preview installed cleanup should purge the orphaned registry keys. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Karl Wester-Ebbinghaus (@Karl-WE) If I remember correctly a conclusion was to do not fix the old and rare issue. Also taking in account how msi works it is not easy. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have searched the entire registry for How can we remove this manually? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, of cause. You need to search "pwsh.exe" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The registry keys are here: Line 186 in bf59561
Alternatively, you can also just install a preview of 6 again with the explorer context menu again and uninstall it explicitly, which will always remove the registry entries, it is just the case of using an upgrade install, which can leave registry entries behind. I agree with Ilya (@iSazonov) that we should not need to invest effort for more polished previews, that's just the nature of previews (saving time for the dev team to get early feedback without having to invest time in proper support). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hi all I've made a script to remove this issue. It worked for me, hope it can help others. Cleanup-PowershellCoreOrphans.zip Tried to paste the code here but formatting didn't worked out as I expected so sorry for the zip file. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I wrote something similar that will remove entries for all PowerShell versions that are no longer installed. Hope this helps. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I too made a little PowerShell script to clean up right click context menus. Click to expand#Requires -RunAsAdministrator <# .SYNOPSIS Clean up right click context menu. .NOTES Author: Olav Rønnestad Birkeland Created: 210828 Modified: 210828 .EXAMPLE # Git & $psISE.'CurrentFile'.'FullPath' -NamesLike 'git*' & $psISE.'CurrentFile'.'FullPath' -NamesLike 'git*' -WriteChanges # Intel Graphics Settings & $psISE.'CurrentFile'.'FullPath' -NamesLike 'igfx*' & $psISE.'CurrentFile'.'FullPath' -NamesLike 'igfx*' -WriteChanges # MPC-HC & $psISE.'CurrentFile'.'FullPath' -NamesLike 'mplayerc64.*' & $psISE.'CurrentFile'.'FullPath' -NamesLike 'mplayerc64.*' -WriteChanges # nVidia Graphics Settings & $psISE.'CurrentFile'.'FullPath' -NamesLike 'NvCplDesktopContext' & $psISE.'CurrentFile'.'FullPath' -NamesLike 'NvCplDesktopContext' -WriteChanges # PowerShell 7 Preview & $psISE.'CurrentFile'.'FullPath' -NamesLike 'PowerShell7-preview*' & $psISE.'CurrentFile'.'FullPath' -NamesLike 'PowerShell7-preview*' -WriteChanges #> # Input parameters [OutputType($null)] Param( [Parameter(Mandatory, HelpMessage = 'String array of PowerShell -like statements to match with.')] [string[]] $NamesLike, [Parameter(HelpMessage = 'Whether to write changes.')] [switch] $WriteChanges ) # PowerShell preferences $ErrorActionPreference = 'Stop' $InformationPreference = 'Continue' # Assets $Paths = # Loop through $( [string[]]( 'HKEY_CLASSES_ROOT' ) ).ForEach{ [string[]]( # Directory ('Registry::{0}\Directory\Background\shell' -f $_), ('Registry::{0}\Directory\Background\shellex\ContextMenuHandlers' -f $_), ('Registry::{0}\Directory\ContextMenus' -f $_), ('Registry::{0}\Directory\shell' -f $_), ('Registry::{0}\Directory\shellex\ContextMenuHandlers' -f $_), ('Registry::{0}\Directory\shellex\DragDropHandlers' -f $_), # Drive ('Registry::{0}\Drive\shell' -f $_), ('Registry::{0}\Drive\shellex\ContextMenuHandlers' -f $_), ('Registry::{0}\Drive\shellex\DragDropHandlers' -f $_), # Library folder ('Registry::{0}\LibraryFolder\background\shell' -f $_), ('Registry::{0}\LibraryFolder\background\shellex\ContextMenuHandlers' -f $_), ('Registry::{0}\LibraryFolder\ShellEx\ContextMenuHandlers' -f $_) ) }.ForEach{ Get-ChildItem -Path $_ -Depth 0 }.'PSPath'.Where{ $( foreach ($NameLike in $NamesLike) { $_.Split('\')[-1] -like $NameLike } ) -contains $true }.ForEach{ Write-Information -MessageData $_ if ($WriteChanges) { if (Test-Path -Path $_) { $null = Remove-Item -Path $_ -Recurse -Force Write-Information -MessageData ('{0}Successfully removed.' -f "`t") $null = Start-Sleep -Milliseconds 100 } else { Write-Information -MessageData ('{0}Already removed.' -f "`t") } } } |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi Steve Steve Lee (@SteveL-MSFT) do you think one these scripts could be included in the MSI? Not sure about Win11 as so far the integration due Windows Terminal is better and context menu only includes Terminal by default. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…view release (PowerShell#8496) Remove old `Open` regkey
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
PowerShell-6.2.0-preview.2-win-x64 creates duplicate "Open here" context menu item (also preview.3)
There was an error while loading. Please reload this page.