Why are icons missing for certain programs in Win7?

15

7

For some of my programs, the icons have vanished. This applies to both the pinned Start Menu items and the programs in their program folders as well.

enter image description here

Inkscape and IrfanView have both had their icons disappear. SVG and image files associated with the respective programs still show the right icons -- it's just the main .exes that don't have icons any more.

How do I restore them?

JeanSibelius

Posted 2013-11-03T13:15:34.713

Reputation: 375

Question was closed 2014-12-11T12:46:57.430

1Do you have any antivirus program running? Has it detected anything suspicious recently? – gronostaj – 2013-11-03T13:29:28.380

Yes, in fact -- Microsoft Security Essentials detected a very old virus on a very old IDE drive I plugged in a few days ago to retrieve a very old file. – JeanSibelius – 2013-11-03T13:31:36.830

1Well, I guess that may be the cause of the problem. Try uninstaling and reinstalling Inkscape and IrfanView and see if it helps. Don't run them before this operation, also be sure to manually uninstall first and ensure no application files are left before reinstalling. – gronostaj – 2013-11-03T16:11:07.310

Answers

26

Try the following.

Open Notepad and paste the below code.

taskkill /F /IM explorer.exe
cd /d %UserProfile%\AppData\Local
attrib –h IconCache.db
del IconCache.db
start explorer

save the file as a .bat file on your desktop.

Lastly, double click on the .bat file that you saved on your desktop and all icons should be restored.

Source

stderr

Posted 2013-11-03T13:15:34.713

Reputation: 9 300

worked for me too, thank you @QMechanic73 – volume one – 2014-11-08T21:24:48.680

If you are missing icons for windows explorer and notepad you may also need to delete the windows explorer icon and thumbnail cache databases in %UserProfile%\AppData\Local\Microsoft\Windows\Explorer however those files aren't immediately available for deletion after the taskkill command completes so it failed for me in a batch file. Maybe a short wait would help after the taskkill as well. – Jeremy – 2016-11-09T16:23:07.453

0

From what I can see it seems like a 3rd party program removed the root directories of these programs. Or it could have been you deleting something on accident. But that is the icon you get when a program root gets deleted but the shortcuts correlated with it don't get removed also

You're going to have to reinstall the programs that were deleted

Kade

Posted 2013-11-03T13:15:34.713

Reputation: 113

0

Its due to corrupted IconCache, You can delete the database file described above and reboot

Another workaround is temporarily setting your windows DPI Scale to medium (120 ppi)/or any other than default in advanced display settings

"Control Panel\Appearance and Personalization\Display"

Log off and revert to your old DPI scaling

dccet

Posted 2013-11-03T13:15:34.713

Reputation: 73