Hi Rafael, This is one of those cases when keypath is very important. Target of the shortcut in advertised shortcut is the keypath of the component. When you don't specify the keypath for your component (as in the sample below), WiX will select first file as a keypath. Hence the behavior you're experiencing. To fix it, just add KeyPath="yes" to a file you want to be a target of shortcut.
Alex -----Original Message----- From: Rafael Rivera [mailto:raf...@withinwindows.com] Sent: Monday, July 20, 2009 10:10 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Shortcut points to wrong file I noticed Ondrej was having similar issues, so thought I'd report my experience with shortcuts. Upon building of my MSI with the following snippet, the shortcut gets created but points to file02. <Component Id="ComponentA" Guid="GUID"> <File Id="0002" Source="file02" /> <File Id="0001" Source="file01"> <Shortcut Id="shortcut01" Advertise="yes" Directory="StartMenuFolder" Name="Shortcut" /> </File> </Component> If I ensure my Files, with Shortcut children, are placed first, the problem doesn't occur. ---------------------------------------------------------------------------- -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users