Thursday 8 November 2018

How to create a persistent custom icon in the Windows taskbar?

Changing the icon of a shortcut in the Windows 7 taskbar is easy using the Properties menu.


But when the application runs, its icon in the taskbar switches back to the application's default icon.


Is there a way to have the custom icon "stick" so that it does not switch back the default icon when while the application is running?


As a simple example, let's say you create a shortcut to "notepad.exe example.txt". You then change the icon via the shortcut's Properties menu. Finally, you pin the shortcut to the taskbar. All is good, and your custom icon will appear in the taskbar. But as soon as you press your new button in the taskbar, the icon will switch back. How can this be prevented?


I do not want to hack the executable to change its icon resource. That would require separate copies of the executable for each file represented on the taskbar, and will not work with signed executables.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...