Skip to content

Instantly share code, notes, and snippets.

@AveYo
Last active July 11, 2024 12:47
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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment