Scott,
I have not seen that problem with Advertised shortcuts. The only time I
have had problems is if I do not specify an icon for the shortcut at
all. I wonder if it has to do with the name of your icon. From the WiX
help file:
Identifier reference to Icon element. The Icon identifier should have
the same extension as the file that it points at. For example, a
shortcut to an executable (e.g. "my.exe") should reference an Icon with
identifier like "MyIcon.exe"
So, I wonder if it would help if your icon identifier was:
<Icon Id="MyProduct.exe" SourceFile="$(var.MainIconPath )"/>
... assuming that your icon is pointing to an executable.
Let me know if that helps - because I am curious.
- Brett
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Palmer
Sent: Monday, April 16, 2007 10:53 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Advertised Shortcuts don't show the correct
Icon
(Despite receiving a confirmation, I haven't seen this message
hit the list after 4 days, so I'm resending...)
In my WiX XML I have:
<Icon Id="MyProduct.ico" SourceFile="$(var.MainIconPath )"/>
...
<Shortcut Id="desktopShortcut" Directory="DesktopFolder"
Name="MyProduct" WorkingDirectory="INSTALLDIR"
Icon="MyProduct.ico" IconIndex="0"
Advertise="yes"/>
The shortcut gets created. On my machine and some others the
icons are correct. But many machines get the wrong icon for ALL of the
advertised shortcuts.. the icon picked up is that of an entirely
different application from another vendor that was already installed on
the target machine. Changing to non-advertised shortcuts fixes this
icon problem. When this happens, it happens for all of the advertised
shortcuts. That means all of the shortcuts I put in the start menu or
desktop, regardless of the icons that they are supposed to use, get
something completely different that is entirely unrelated.
I've seen this now with two installers I've done with WiX 3.
Is this just a known bug in Windows XP that I have to put up
with? Is there some trick to get it to work? I was trying to avoid
non-advertised shortcuts for these components because of the added
hassle of making dummy registry entries to satisfy the ICE problems
since I'm doing a per-machine install.
Thanks in advance,
Scott
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users