Yeah, shortcuts in the Windows Installer can be annoying little things. This blog entry will hopefully help some: http://robmensching.com/blog/archive/2007/04/27/How-to-create-an-uninstall-shortcut-and-pass-all-the.aspx
The weird thing about Advertised shortcuts is that they *always* point to the KeyPath of the Component the Shortcut is in. It doesn't matter what file you put the Shortcut under (or list as the Target, same difference) Advertised won't change. That's why the candle tells you to move the Shortcut out from under the File. It could be easily argued that there should be a better error message and if you want to open a bug (maybe with a suggest or two?) that would be cool. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Hughes Sent: Thursday, May 01, 2008 19:21 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Shortcut without icon Hi, This still has not been resolved. My shortcut is nested under the file, with advertise 'yes' and the file is set as the key file. The shortcut is created OK however the icon is not correct until the first time the shortcut is followed. If I change to advertise="no" I'm told I can't have it under a file element. That makes no sense to me, if Advertise is yes I am forced to put it under a file element, even though it doesnt nessisarily use the file element I put it under....???? If I don't wont to advertise so I can make it use a "specific file"... then I can't put it under a file element. So I remove it from the file element and add a target attribute.... And Get..... ICE03: Not a valid foreign key; Table: Shortcut, Column: Target, .. ICE43: Component ProductComponent has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file. ICE57: Component 'ProductComponent' has both per-user and per-machine data with a per-machine KeyPath. Can someone please post an example of creating a shortcut to a file for the current user that has the correct Icon from the start. If this is not possible with WiX3 then please let us know. Bob Arnson wrote: > Riyaz Mogharabin wrote: >> <Shortcut IconIndex='0' Name='View Readme' Show='normal' >> Directory='ProgramMenuDir' Advertise='yes' Id='readmeShortcut' /> >> > > When you use Advertise="yes" Windows Installer creates an advertised > shortcut, which always points to the key file of the component. Use > Advertise="no" to get a shortcut to the file. > > -- > sig://boB > http://joyofsetup.com/ > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ======================================================================= ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users