Page 1 of 1

Shortcut Icons... again

Posted: Tue May 01, 2007 1:16 pm
by HarvestInstaller
I've upgraded to IA 6.5 hoping to resolve the issue with shortcut icons, and it does appear to resolve the issue for the person that actually performs the install. However, if another user logs onto the same system, they do not see the icons associated w/ the Shortcut.

There really needs to be a way to specify a shortcut based on the file that you're pointing the shortcut to, or some other implementation OTHER than the current implementation.

Posted: Thu May 03, 2007 5:49 am
by Christoph Schneegans
Are you referring to this problem? I cannot reproduce this problem with 6.50, so it seems that it has been fixed.

The shortcut icon path still looks a little bit strange, e.g.
"%SystemRoot%\\Installer\\{233EE40F-08B6-4C11-9081-C3A001B1CED9}\\rtcutIcon5cApplication.ico0.ico", but it "survives" a reboot, and it works for all users.

Posted: Thu May 03, 2007 9:10 am
by Gizm0
Best thing to do, is place the .ico file of your application on TargetDir and set that as Icon Path.

Posted: Thu May 03, 2007 9:19 am
by Christoph Schneegans
"Icon File Path (no variables allowed)" is what the dialog says...

Posted: Thu May 03, 2007 5:05 pm
by MichaelNesmith
This mechanism is MSI's own mechanism and cannot be changed. What was done in 6.5 was actually to workaround an MSI flaw which caused icons to go missing. But we are still limited to what Windows Installer can natively do, unless of course, somebody writes a plug-in to create shortcuts manually using the Windows API.

Posted: Fri May 04, 2007 2:01 am
by Christoph Schneegans
So I can't use $TARGETDIR$ in the icon file path, right?

Posted: Fri May 04, 2007 8:08 am
by MichaelNesmith
The icon is embedded at build time into the MSI package, so you cannot use any runtime variables. You can of course use compiler variables if you want to.

Posted: Fri May 04, 2007 9:22 am
by Gizm0
Christoph Schneegans wrote:So I can't use $TARGETDIR$ in the icon file path, right?


I was reffering to the TARGETDIR as a directory, not as the variable, but nevermind.