Possible Duplicate:
Wrong desktop shortcut icon on Windows 7 (Inno Setup)
I have an application deployed with an Inno Setup installer. When I perform an upgrade installation (i.e. run install-1.5.exe when version 1.0 is already installed), if my application binary is in-use (either my application is running, or perhaps some other process has locked the image file), I encounter icon cache corruption in Explorer after a reboot. Explorer shows a blank/default shortcut icon for my application on the desktop and Start Menu.
We have searched the internet and found a variety of "kitchen-sink" methods for refreshing the Explorer icon cache, none of which seem to be wholly reliable on all operating systems. So, we would prefer to figure out what causes this corruption in the first place and cure the disease rather than treating the symptoms.
This occurs in Windows Vista and Windows 7, but not in Windows XP.
In particular, the corruption "takes effect" whenever file associations are refreshed by Explorer. That might be immediate (if ChangesAssociations=yes is set in the Inno script), or later on.
Has anyone run into this before? We do not understand why this icon cache corruption comes about.