Reputation: 691
Let's start off by saying I am on Windows 10 and that i've seen many posts about this subject but none seemed to work for me. Looking at this post has solved some issues but I still need some assistance. Add menu item to windows context menu only for specific filetype
What I want to do is add an a specific item to only images (I will start with .jpg) that will say "Upload Image". Here is what I have so far:
HKEY_CLASSES_ROOT\.jpg
which is jpegfile.HKEY_CURRENT_USER\SOFTWARE\Classes\jpegfile\shell\ImagePanel\command
After doing all that, the only thing that changed is the context menu shows my application under "Open with" and doesn't actually have its own spot on the context menu.
Am I doing something wrong here?
Upvotes: 6
Views: 1746
Reputation: 81
Had exactly the same problem, something must have changed in Windows 10. I finally managed to get it work, here are the keys that worked for me:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\
or this one for all the image extensions:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\Shell\
for example this is what I used (the first entry is for loading the icon, just the second one is needed to actually create the new menu item):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\shell\Photoshop]
"Icon"="C:\\Program Files\\Adobe\\Adobe Photoshop CS6 (64 Bit)\\Photoshop.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\shell\Photoshop\Command]
@="\"C:\\Program Files\\Adobe\\Adobe Photoshop CS6 (64 Bit)\\Photoshop.exe\" \"%1\""
Upvotes: 7