I have made a personalized context menu item, which appears to function on all kinds of files, including shortcut links. When I choose my custom alternative, it applies the action to the shortcut target rather than the .lnk file. At present, I wish to design an icon to make it more prominent.
My antivirus software and Notepad++ have been able to achieve this, which indicates it is achievable. The only question remaining is how to do it.
3 Answers
Launch regedit.exe and locate the registry key that you generated for the personalized menu option. Then, add a new String value within that key and label it as “Icon”.
To set the path for your personalized icon image file, double-click on the newly created String value and enter the file’s location:
c:\folder\icon.ico
Optionally you could use the Windows shell32.dll file like in my example:
The result:
An additional point to mention is that it appears that this technique functions on Windows 7 (and possibly Vista), but when I tested it on Windows XP, the icon did not show up.