Skip to content

Instantly share code, notes, and snippets.

@AveYo
Last active June 18, 2026 22:49
Show Gist options
  • Select an option

  • Save AveYo/305ec63e18518b22f41d1b52a3d5022b to your computer and use it in GitHub Desktop.

Select an option

Save AveYo/305ec63e18518b22f41d1b52a3d5022b to your computer and use it in GitHub Desktop.
7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
Windows Registry Editor Version 5.00
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
; Add to archive.. only single files (multiple would need a single instance redirect tool)
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
"MultiSelectModel"="Single"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive\command]
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" u -t7z -ad \"%1\" \"%1\""
; Add to archive.. on folder = open 7-Zip in folder
[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\connectNetworkDrive]
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\connectNetworkDrive]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
"MultiSelectModel"="Single"
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\connectNetworkDrive\command]
@="C:\\Program Files\\7-Zip\\7zFM.exe \"%V\""
; Extract to separate folders
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\disconnectNetworkDrive]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\disconnectNetworkDrive]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2327"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
"MultiSelectModel"="Player"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\disconnectNetworkDrive\command]
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" x \"%1\" -r -o*"
; Open archive
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Windows.CompressTo]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Windows.CompressTo]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2322"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
"MultiSelectModel"="Single"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Windows.CompressTo\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
; uncomment to remove entries
;[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
;[-HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\shell\connectNetworkDrive]
;[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\disconnectNetworkDrive]
;[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Windows.CompressTo]
@lucien-gh

lucien-gh commented Oct 1, 2024

Copy link
Copy Markdown

Can menu items be merged and collapsed?
image

@Porygon31

Copy link
Copy Markdown

Can I right click on the menu item? image

Of course you can

@lucien-gh

Copy link
Copy Markdown

Can I right click on the menu item? image

Of course you can

Can menu items be merged and collapsed?

@AveYo

AveYo commented Oct 11, 2024

Copy link
Copy Markdown
Author

@tang-nn, you can't do submenus with such simple regedit as far as I know

@lucien-gh

Copy link
Copy Markdown

@tang-nn, you can't do submenus with such simple regedit as far as I know

Any other solutions?

@RufinoBR

Copy link
Copy Markdown

Some way to fix icon ?
image

@GTGeek88

Copy link
Copy Markdown

Your comment . . . only single files (multiple would need a single instance redirect tool)
Is that still accurate? So I can't click multiple files and then right click on one of them, choose "Add to archive" and get them all in an archive with that one action (after entering the archive name in the dialog box)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment