We have encountered the same problem. Windows
Explorer is the culprit, not MSI engine. Explorer does not invalidate its icon
cache even if the icon file is changed, at least in Windows XP. Refreshing icon cache can be a solution using
a custom action. Although there is no known public API to refresh the shell
icon cache, there is a way by changing the shell icon size (e.g. +1 or -1 of
the existing value) and restoring to the old value. But this solution has a
side effect that user’s desktop icons are rearranged. When we shipped with
such custom action, we got some complaints from customers for the side effect. So
we decided not to use this technique. Another solution for us was the same
solution you are using – changing the icon name whenever the icon data is
changed – we add a suffix using MD5 hash of the icon file – we do
this way because we supply several OEM versions of the package with custom
icons and there should be an automated way to change the icon name. So far that is the only feasible way to
circumvent icon cache problems for me. FYI: To achieve this, we implemented in two
ways:
First one is easier to implement. Second
is more convenient to use but it has a subtle side-effect that MSI file size
grows a little bit for updating rows containing binary columns (OLE storage
limitation, mentioned in MSDN). So the first one is the one we use at this
time. Regards, From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Calin Iaru Hi
List,
Strange thing on Windows XP – maybe you can tell me more about it. If I
create a shortcut and specify an Icon, then that initial icon is displayed no
matter if the icon - as a binary file - has been modified and the MSI
recompiled. This is not the case with Server 2003, where the icons are properly
displayed. So far it seems that changing the icon Id whenever an update on that
binary is made makes XP happy. Best
regards,
Calin |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users