Yes, advertised shortcuts point to the key path of the component they're in.
You are recommended, in the SDK documentation, to place EXEs in their own component. Recall that versioning is only done based on the key path of the component, so in your example if you modified CRC.TemplateImporter.exe and changed its version, but you didn't change CRC.ReportDesigner.exe, CRC.TemplateImporter.exe wouldn't actually be upgraded as Windows Installer would consider that the correct version of the component was already installed. Rob Mensching's advice is to place each file in its own component, except where absolutely required by Windows Installer (e.g. multi-file assemblies). You need advertised shortcuts to support repair-on-launch, install-on-first-use, and administratively-advertised products. If you don't need or want these features, you can set Shortcut/@Advertise='no'. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ward, Mike (MED US) Sent: 26 June 2007 22:03 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Shortcuts and components The following yields two shortcuts. Both shortcuts open CRC.ReportDesigner.exe which is not desired. <Component Id="ReportBinaryComponents" Guid="AE8E1085-2F1A-43ce-B167-7A4E4888AFA1"> <File Id="CRC.ReportDesigner.exe" Name="CRC.ReportDesigner.exe" Source="$(var.SourcePath)\CRC.ReportDesigner.exe" Vital="yes" > <Shortcut Id="CRC.ReportDesignerShortcut" Name="sD Report Designer 7.0" Icon="AppIcon.exe" Directory="ProgramMenuDir" WorkingDirectory="Bin" Advertise="yes" /> </File> <File Id="CRC.TemplateImporter.exe" Name="CRC.TemplateImporter.exe" Source="$(var.SourcePath)\CRC.TemplateImporter.exe" Vital="yes"> <Shortcut Id="CRC.TemplateImporterShortcut" Name="sD Template Importer 7.0" Icon="AppIcon.exe" Directory="ProgramMenuDir" WorkingDirectory="Bin" Advertise="yes" /> </File> </Component> If I separate the files/shortcuts into separate components, then each shortcut points to the correct executable. <Component Id="ReportDesignerComponent" Guid="6FD60D0A-01A4-4be1-A432-A82A1B90325E"> <File Id="CRC.ReportDesigner.exe" Name="CRC.ReportDesigner.exe" Source="$(var.SourcePath)\CRC.ReportDesigner.exe" Vital="yes" > <Shortcut Id="CRC.ReportDesignerShortcut" Name="sD Report Designer 7.0" Icon="AppIcon.exe" Directory="ProgramMenuDir" WorkingDirectory="Bin" Advertise="yes" /> </File> </Component> <Component Id="TemplateImporterComponent" Guid="6D3A0812-4882-4ae1-B1D1-9ED46503D667"> <File Id="CRC.TemplateImporter.exe" Name="CRC.TemplateImporter.exe" Source="$(var.SourcePath)\CRC.TemplateImporter.exe" Vital="yes"> <Shortcut Id="CRC.TemplateImporterShortcut" Name="sD Template Importer 7.0" Icon="AppIcon.exe" Directory="ProgramMenuDir" WorkingDirectory="Bin" Advertise="yes" /> </File> </Component> Is this expected behavior? ---------------------------------------------------------------------------- This message and any included attachments are from Siemens Medical Solutions and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail with a copy to [EMAIL PROTECTED] Thank you ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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