fix: always remove the old context menu entries on win11 (#291574)

This commit is contained in:
Robo
2026-02-04 03:17:56 +09:00
committed by GitHub
parent 39dd5b5b5b
commit d797bd8de4

View File

@@ -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}');