lightsystemdarkgreen
@ 261119.64

260411.25 bf6027c8fa2b90d0376ba72a2fd0365693c3757b 7zip: Refactor context-menu handling (#7476)

* Refine manifest metadata.

reading declarations

Changes to scripts/7-zip/. All files

scripts/7-zip/install-context.reg

@@ -1,27 +1,50 @@ Windows Registry Editor Version 5.00 -[HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]-@="7-Zip Shell Extension"+; Define per-user configuration parameters for 7-Zip shell integration and UI behavior+; Effective only when configured under the HKEY_CURRENT_USER hive.++[HKEY_CURRENT_USER\Software\7-Zip\Options]+"CascadedMenu"=dword:00000001+"MenuIcons"=dword:00000001+ -[HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]-@="$7zip_root\\7-zip.dll"-"ThreadingModel"="Apartment"++; Register 7-Zip as the context menu handler for all files  [HKEY_CURRENT_USER\Software\Classes\*\shellex\ContextMenuHandlers\7-Zip] @="{23170F69-40C1-278A-1000-000100020000}" ++; Register 7-Zip as the context menu handler for directory+ [HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\7-Zip] @="{23170F69-40C1-278A-1000-000100020000}" -[HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\7-Zip]-@="{23170F69-40C1-278A-1000-000100020000}"++; Register 7-Zip as the drag-and-drop handler for directories  [HKEY_CURRENT_USER\Software\Classes\Directory\shellex\DragDropHandlers\7-Zip] @="{23170F69-40C1-278A-1000-000100020000}" ++; Register 7-Zip as the drag-and-drop handler for drives+ [HKEY_CURRENT_USER\Software\Classes\Drive\shellex\DragDropHandlers\7-Zip] @="{23170F69-40C1-278A-1000-000100020000}" -[HKEY_CURRENT_USER\SOFTWARE\7-Zip\Options]-"MenuIcons"=dword:00000001-"CascadedMenu"=dword:00000001++; Register 7-Zip as the context menu handler for folder shell objects++[HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\7-Zip]+@="{23170F69-40C1-278A-1000-000100020000}"++++; Register the CLSID and the in-process COM server DLL for the 7-Zip shell extension++[HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]+@="7-Zip Shell Extension"++[HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]+@="\"{{7zip_dir}}\\7-zip.dll\""+"ThreadingModel"="Apartment"

scripts/7-zip/uninstall-context.reg

@@ -1,10 +1,31 @@ Windows Registry Editor Version 5.00 -[-HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]-[-HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]+; Unregister all 7-Zip configuration settings and shell integration entries++[-HKEY_CURRENT_USER\Software\7-Zip]+++; Unregister the 7-Zip context menu handler for all file types+ [-HKEY_CURRENT_USER\Software\Classes\*\shellex\ContextMenuHandlers\7-Zip]++; Unregister the 7-Zip context menu handler for directories+ [-HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\7-Zip]-[-HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\7-Zip]++; Unregister the 7-Zip drag-and-drop handler for directories+ [-HKEY_CURRENT_USER\Software\Classes\Directory\shellex\DragDropHandlers\7-Zip]++; Unregister the 7-Zip drag-and-drop handler for drives+ [-HKEY_CURRENT_USER\Software\Classes\Drive\shellex\DragDropHandlers\7-Zip]-[-HKEY_CURRENT_USER\SOFTWARE\7-Zip\Options]++; Unregister the 7-Zip context menu handler for folder shell objects++[-HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\7-Zip]+++; Unregister the CLSID and the in-process COM server DLL for the 7-Zip shell extension++[-HKEY_CURRENT_USER\Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]