Windows – Why can’t I change the icon being displayed for a desktop shortcut

desktopiconsshortcutswindows 7

I wanted to change the icon showing for a shortcut on the desktop, which points to a .Net utility I created for myself. I rebuilt the exe after changing the icon used within the project.

In Windows Explorer the new icon shows in all size variations for the exe. In the 'Change Icon' dialog from the Properties option, the correct icon is showing as present, yet when I Apply it remains with the old icon?

Even when I delete the shortcut and create a new one pointing to the newly built exe the old icon somehow is assigned?

Best Answer

Windows explorer keeps a cache of icons. You can try deleting the following file:

Vista/7: C:\Users\<username>\AppData\Local\IconCache.db
XP: C:\Documents and Settings\<username>\Local Settings\Application Data\IconCache.db

Also, killing explorer.exe and restarting it may help.

Related Question