mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
fix: always remove the old context menu entries on win11 (#291574)
This commit is contained in:
@@ -1603,7 +1603,7 @@ begin
|
||||
begin
|
||||
#ifdef AppxPackageName
|
||||
// Remove the old context menu registry keys
|
||||
if IsWindows11OrLater() and WizardIsTaskSelected('addcontextmenufiles') then begin
|
||||
if IsWindows11OrLater() then begin
|
||||
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\*\shell\{#RegValueName}');
|
||||
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\directory\shell\{#RegValueName}');
|
||||
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\directory\background\shell\{#RegValueName}');
|
||||
|
||||
Reference in New Issue
Block a user