Share via


how to add programm to context menu (right-click-menu) without root privileges?

Question

Friday, October 25, 2019 8:45 PM

I'm know this path in regedit, but when I'm adding to it something like (HKEY_CURRENT_USER\Software\Classes\\shell\myprogramm\command (someValue), it automatically copies this branch to HKEY_CLASSES_ROOT\\shell\myprogramm\command, BUT without value. Therefore, without value, it don't work.

All replies (7)

Saturday, October 26, 2019 8:21 AM

You can add custom items to your desktop context menu from the registry as well, such as a shortcut launcher for a program.

Navigate to Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\, and then...

  • Right click on "shell" and go to New > Key -- give it the name of the program you're going to be launching.
  • Right click that new entry and make another new key named "command"
  • Right click the default value on the right and modify it, giving it the directory of your executable

S.Sengupta,Microsoft MVP Windows and Devices for IT, Windows Insider MVP


Saturday, October 26, 2019 10:39 AM

the behaviour of HKEY_CLASSES_ROOT is complicated, as it is for legacy purposes
and a merged view of HKLM\Software\Classes and HKCU\Software\Classes
see HKEY_LOCAL_MACHINE\SOFTWARE\Classes vs HKEY_CLASSES_ROOT
When you want to add the program for all users, you better change this in the HKLM keys


Saturday, October 26, 2019 7:41 PM

To modify HKEY_CLASSES_ROOT needs root privileges. And I'm not.


Saturday, October 26, 2019 7:44 PM

To modify HKLM or HKCU need rot privileges? 


Sunday, October 27, 2019 9:07 AM | 1 vote

for HKCU you don't need additional privileges, for HKLM you do.


Sunday, October 27, 2019 6:47 PM

Thank you, the problem was that I used single quote instead of double quotes.


Tuesday, November 5, 2019 7:51 AM

Would you mind letting me know the update of the problem? If you need further assistance, feel free to let me know.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].