I have created an installer with Inno Setup. The icon used for the desktop shortcut and start menu is embeded in the application executable.
When the installer was i
As in swirlywonder's answer, this batch script should automate the process:
rebuild-icon-cache.bat
@echo off
taskkill /IM explorer.exe /F
cd /d %userprofile%\AppData\Local
del IconCache.db /a
start explorer.exe
It seems that this indeed was related to the IconCache.db
file. I can only guess that something wasn't done in the right order (though I tried differing procedures more than once).
Here's how I performed the reset manually:
cd /d %userprofile%\AppData\Local
(and press Enter)attrib –h IconCache.db
(and press Enter)del IconCache.db
(and press Enter)start explorer
(and press Enter)Now everything renders just as it should.