Skip to content

Instantly share code, notes, and snippets.

@sionta
Last active August 6, 2021 12:27
Show Gist options
  • Save sionta/e11f23c2e3eb63a275d4b74c5869aabe to your computer and use it in GitHub Desktop.
Save sionta/e11f23c2e3eb63a275d4b74c5869aabe to your computer and use it in GitHub Desktop.
Sub-ContextMenu-Items
Windows Registry Editor Version 5.00
;Main context menu
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name]
"Position"="Bottom"
"Icon"="explorer.exe"
"SubCommands"=""
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell]
;Main sub context menu items with divider
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\01subcmd]
"Icon"="SystemSettingsBroker.exe"
"MUIVerb"="Sub items 1"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\01subcmd\command]
@="explorer ms-settings:"
;This is a sub context menu items for name and icon
;This is an example of a 7-Zip application location; "C:\Program Files\7-Zip\7zFM.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\02subcmd]
"MUIVerb"="7-Zip"
"Icon"="C:\\Program Files\\7-Zip\\7zFM.exe"
"CommandFlags"=dword:00000020
;Sub context menu items for commands,
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\02subcmd\command]
@="C:\\Program Files\\7-Zip\\7zFM.exe"
;End 7-Zip
;Sub items 3
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\03subcmd]
"MUIVerb"="Sub items 3"
"Icon"="regedit.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\03subcmd\command]
@="regedit.exe"
;End Sub items 3
;Sub items 4
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\04subcmd]
"MUIVerb"="Sub items 4"
"Icon"="regedit.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\04subcmd\command]
@="regedit.exe"
;End Sub items 4
;Sub items 5
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\05subcmd]
"MUIVerb"="Sub items 5"
"Icon"="regedit.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\05subcmd\command]
@="regedit.exe"
;End Sub items 5Windows Registry Editor Version 5.00
;Main context menu
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name]
"Position"="Bottom"
"Icon"="explorer.exe"
"SubCommands"=""
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell]
;Main sub context menu items with divider
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\01subcmd]
"Icon"="SystemSettingsBroker.exe"
"MUIVerb"="Sub items 1"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\01subcmd\command]
@="explorer ms-settings:"
;This is a sub context menu items for name and icon
;This is an example of a 7-Zip application location; "C:\Program Files\7-Zip\7zFM.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\02subcmd]
"MUIVerb"="7-Zip"
"Icon"="C:\\Program Files\\7-Zip\\7zFM.exe"
"CommandFlags"=dword:00000020
;Sub context menu items for commands,
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\02subcmd\command]
@="C:\\Program Files\\7-Zip\\7zFM.exe"
;End 7-Zip
;Sub items 3
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\03subcmd]
"MUIVerb"="Sub items 3"
"Icon"="regedit.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\03subcmd\command]
@="regedit.exe"
;End Sub items 3
;Sub items 4
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\04subcmd]
"MUIVerb"="Sub items 4"
"Icon"="regedit.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\04subcmd\command]
@="regedit.exe"
;End Sub items 4
;Sub items 5
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\05subcmd]
"MUIVerb"="Sub items 5"
"Icon"="regedit.exe"
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell\05subcmd\command]
@="regedit.exe"
;End Sub items 5
@sionta
Copy link
Author

sionta commented Feb 22, 2021

README!

This context menu is only active when Right-click on the Desktop Background and for user only.

1. Example

Untitleaad

2. Result

Untitled

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