diff --git a/build/win32/code.iss b/build/win32/code.iss index 101dc2d3548..197ff3e9e26 100644 --- a/build/win32/code.iss +++ b/build/win32/code.iss @@ -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}');