fix: restore old style context menu on windows for stable (#260960)

This commit is contained in:
Robo
2025-08-11 19:28:54 +09:00
committed by GitHub
parent 6d97df36f7
commit 61f1c115ad
+2 -3
View File
@@ -1534,9 +1534,8 @@ begin
if CurStep = ssPostInstall then
begin
#ifdef AppxPackageName
if not WizardIsTaskSelected('addcontextmenufiles') then begin
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\{#RegValueName}ContextMenu');
end else begin
// Remove the old context menu registry keys for insiders
if QualityIsInsiders() and WizardIsTaskSelected('addcontextmenufiles') then begin
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\*\shell\{#RegValueName}');
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\directory\shell\{#RegValueName}');
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\directory\background\shell\{#RegValueName}');