Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a program pinned to the taskbar. After I upgraded the program (I think) the icon broke. What I get now is what you see below; that ugly default application icon thing.

Broken icon

If I unpin it, I get the correct icon. If I then right-click on it, the icon breaks again. If I pin it again, still the broken icon. Unpin again and back to good icon. Very annoying. How can I fix this?

share|improve this question
    
This was my first question I asked on here actually. Check out 62508. –  MrStatic Aug 8 '10 at 14:44
    
Hm, didn't seem to fix it. –  Svish Aug 8 '10 at 15:22

6 Answers 6

Based on @dash17291's answer, here is a slightly faster procedure (no reboot) that worked for me:

  1. Open Windows Explorer, go to %userprofile%\AppData\Local, delete IconCache.db.

  2. Open Task Manager, go to Processes tab, highlight explorer.exe, and click End Process. Your desktop will "disappear."

  3. Still in Task Manger, select File > New Task (Run...), type explorer.exe, and click OK. Your desktop should reappear, with the previously missing icons.

share|improve this answer
    
Genius...works. –  Aerovistae Feb 17 at 16:16
1  
An anonymous user edited my answer to add "This works for Win 8.1 as well, just checked." Doesn't that kind of update belong in a comment? I have not checked it so I don't feel comfortable signing my name to it. –  Mark Berry Jun 12 at 16:01

Rebuild the Icon Cache:

http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html

Edit

To Manually Rebuild the Icon Cache using the Command Prompt:

1. Close and save anything that you are working on. This command will kill explorer and restart the computer when completed.

2. Open the Start Menu, and type cmd in the search box and press enter.

3. In the command prompt, Copy and Paste each command line below exactly as is and press enter after each command.


WARNING: The last command will restart the computer, so be sure to close and save anything that you are working on first.

    taskkill /IM explorer.exe /F
    CD /d %userprofile%\AppData\Local
    DEL IconCache.db /a
    shutdown /r /f /t 00

4. The IconCache.db file has now been rebuilt.
share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Daniel Beck Aug 12 '12 at 18:01
    
Most likely this will not solve the issue since it's, as answered above, probably embedded in the installer and not pointing towards the actual exe –  Simon Aronsson Aug 16 '12 at 12:53
    
Worked for me, thanks. I lost several icons after a network disconnect killed the icons coming from the server. I already knew from the shortcuts' properties that the icons were available in the .exe's. Couldn't figure out why it wasn't displaying them, but forcing a recreation of iconcache.db fixed it. –  Mark Berry Nov 7 '12 at 3:02

I made some progress on the issue (though I don't necessarily like the answer). I found that this occured with such things as my steam.exe, and my lunascape.exe, etc... I tried this, weird, fix.

Go to the program's location (i.e. C:\program files\Steam\) and find the suspect program (the one that the icon isn't working for).

Right-click on it and select 'create shortcut' [I know it sounds stupid] then pin THAT to your taskbar INSTEAD of the actual exe.

For some reason, this fixed the problem for me, and I hope this fixes the problem for anyone else as well.

share|improve this answer

You could have unpinned the link in the taskbar and again pinned the application to the taskbar. The icon would have updated itself.

The reason why this happened was icons for applications installed by Windows MSI installers are present with the installer itself. Because of this, when you upgrade the program, the link to the icon breaks. The only way to fix this is either recreate the shortcut/pinned link or update the icon for the shortcut itself by Right Click → Properties → Change Icon...

e.g.: This is a link to the icon for Nokia PC Suite: %SystemRoot%\Installer\{92D1CEBC-7C72-4ECF-BFC6-C131EF3FE6A7}\ARPPRODUCTICON.exe. Note that the icon resides with the installer and not linked to the icon embedded inside the executable.

share|improve this answer

The answer from dash17291 works but rebooting is not necessary.
Just enter & run

Explorer.exe 

from command prompt to restart explorer & reload taskbar.

For numerous reasons (like not having memorize this stuff) I prefer to create a batch file.

@echo off
title Fix Broken Taskbar Icons.
color 0E                            ::yellow text/black background
echo This will kill all explore windows and rebuild icon cache
echo (Note: sometimes Explorer takes a few moments to reload)
echo.
echo Hit Ctrl-C to abort or 
pause

taskkill /IM explorer.exe /F        ::/IM = imagename 
                                    ::/F =  forcefully terminate the process(es)    
CD /d %userprofile%\AppData\Local   ::/d  = change drives if necessary
DEL IconCache.db 
start explorer.exe                  ::start = don't wait for completion
share|improve this answer

I tried most of the other answers and had some success one of my icons changed back. In the end I went to the actual game icon folder and copied it to a different folder on the desktop and then pointed the icon there by right clicking choosing properties and then pointing to the icon you have copied elsewhere. Worked for me!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.