How to add any program to right click context menu

1. Click on the Windows icon and type “regedit“.

2.Then, hit “Enter” from your keyboard to access the Registry Editor.

3. Now, simply expand this location-

Computer\HKEY_CLASSES_ROOT\*\shell\

4. Then, right-click on the “shell” key and then click on “New>” and then on “Key“.

5. Name the key as the application name which you want on the right-click context menu (We have named it “PainDotNet” ).

6. Again, right-click on this new key (in our example, it is ‘PaintDotNet‘) and then click on “New>” and then on “Key“.

7. Name the key as “command“.

Minimize the Registry Editor window.ADVERTISEMENT

8. Right-click on the desktop icon and click on “Properties“.

9. Navigate to the “Shortcut” tab.

10. After that, copy the path mentioned in the “Target:” box.

Close File Explorer window.

11. In the Registry Editor, click on “PaintDotNet” on the left pane.

12. Further, you have to double click on the “(Default)” string.

13. In the Edit String window, set the ‘Value data:‘ as what term you wish to see in the right-click context menu.

(For us it is – “Paint it with Paint.Net”. Whenever we will right-click on an item, ‘Paint it with Paint.Net‘ will appear. )

14. Click on “OK” to save the changes on your computer.

15. Now, on the left-hand side of the Registry Editor window, click on the key “command“.

16. On the right-hand side, double click on “(Default)” to modify it.

17. Set the ‘Value data:’ to the ” “application location” “%1” “.

For example – the value data will look like this- the location of ‘ Paint.Net “%1” ‘. or in actual words, it will this –

"C:\Program Files\paint.net\PaintDotNet.exe" "%1"

18. Click on “OK” to save the changes.

Close Registry Editor window.


OPTIONAL STEPS-

After enacting the mentioned steps on your computer, you will be able to access the shortcut option from the right-click context menu. But, it won’t show the icon of the application. Follow the below-mentioned steps to modify the registry to get the .ico file.

1. Open the Registry Editor window.

2. Go to this location, again –

Computer\HKEY_CLASSES_ROOT\*\shell\\

3. Now, on the left-hand side of the Registry Editor window, click on “PainDotNet“.

4. On the right-hand side, right-click on “New>” and then click on “String Value“.

5. Name the new string value as “Icon“.

6. Double click on “Icon“.

7. In the Edit String window, set the ‘Value data:‘ as the path of the application.

8. Click on “OK“.

NOTE– For us, we have copy-pasted this-

"C:\Program Files\paint.net\PaintDotNet.exe"

Close the Registry Editor and restart your computer once. That should do it.


https://thegeekpage.com/add-any-program-to-right-click-context-menu/