Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
Keep in mind, that is not the windows 7 path..... that's an XP path. – Brett Feb 11 '10 at 21:52
I can't find an equivalent folder in Windows7, and restarting the machine didn't solve it. – Bill Feb 11 '10 at 22:05
Edited to add Win7 path. If the restart didn't help, probably not a caching issue then. – heavyd Feb 11 '10 at 22:15
Probably not a caching issue either because there is no IconCache folder in my AppData\Local folder. The problem is also not Win7-64 related because I get exactly the same behaviour on a Win7-32 laptop as well. – Bill Feb 12 '10 at 5:50

I had the same problem till I realised I had accidentally selected the .exe file instead of the .ico file for the icon - since the correct icon shows against the .exe file it is quite easy to make this mistake and you cna press the apply button without triggering a warning or error - the shortcut then of course will not display the correct icon and defaults to the Windows default.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .