Skip to content

Instantly share code, notes, and snippets.

@AveYo
Last active October 27, 2024 18:22
Show Gist options
  • Save AveYo/305ec63e18518b22f41d1b52a3d5022b to your computer and use it in GitHub Desktop.
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]
@tang-nn
Copy link

tang-nn commented Oct 1, 2024

Can menu items be merged and collapsed?
image

@Porygon31
Copy link

Can I right click on the menu item? image

Of course you can

@tang-nn
Copy link

tang-nn commented Oct 2, 2024

Can I right click on the menu item? image

Of course you can

Can menu items be merged and collapsed?

@AveYo
Copy link
Author

AveYo commented Oct 11, 2024

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

@tang-nn
Copy link

tang-nn commented Oct 13, 2024

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

Any other solutions?

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