Wrong Desktop Icon Displayed - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

halscrib
Posts: 1
Joined: Tue Mar 04, 2008 6:26 pm
Location: Hamilton ON Canada
Contact: Website

Wrong Desktop Icon Displayed

I have a menu app that allows a user to select an app to be installed (3 choices altogether). If app "A" is installed then app "C", the desktop icon for "C" is the same icon for app "A". If I reverse the sequence and install app C first, then the icon for app C is correct until after I install app A when it reverts to the icon for app A not instantaneously but within a few seconds afterwards (on my win 95 test system)..

This behaviour occurs for Windows 95, 98, ME, and 2000 but not on XP nor Vista. (Haven't been able to test this on Windows NT but suspect it to be in error as well).

Embedded in the EXE of app C is a RES file that contains two icons: the one that is embedded at design time and one for app D which gets loaded conditionally at runtime. Apparently A.I. doesn't recognize the correct icon for app C after app A is installed.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You are encountering his behavior because the Windows operating system caches the icon of the first shortcut and uses it for the second shortcut.

You can verify this with another file browser (e.g. Total Commander). You can see that the correct icon is set for the shortcut, but Windows uses the cached shortcut.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”