I suspect most of this is just my ignorance of the how MSI installers work. Visually, the XML suggests the association.
<component...> <file...><shortcut /></file> <file...><shortcut /></file> </component> I think it pretty natural for someone to think the shortcuts would be associated with the files here, not the component. In fact, I'm still a little perplexed by it. After decompiling a few installers, I see this pattern which I've adopted. <component...> <file.../> <shortcut.../> </component> <component...> <file.../> <shortcut.../> </component> I think some of this is just result of laziness. I didn't see a reason to put the files in separate components because they always get installed together. It's a different mindset compared to something more scripting oriented like InstallShield or Inno. Actually, I've only had a few stumbling points like this one but they have been tricky because of they "appear" to be correct. The other issue that cost me some time was that public properties need to be capitalized. Again, my understanding is limited but I think the compiler might be able to help here. It appears a public property is one that can be set at runtime. It's not apparent to me that a property used in a RadioButtonGroup can ever be useful unless it's public. Perhaps there is a use case I'm not thinking of here? -----Original Message----- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 1:51 AM To: Ward, Mike (MED US); Wendell Joost Cc: wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Shortcuts and components Interesting. Why do you think the WiX toolset should complain? Because a shortcut with the same name is in two different Components? (I'm not being critical, just wondering what algorithm you used to say the duplicate shortcut was 'wrong' vs. 'right'). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ward, Mike (MED US) Sent: Wednesday, June 27, 2007 5:15 AM To: Wendell Joost Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Shortcuts and components Wendell, Thanks for your reply. The reason it surprised me is that the WiX didn't complain. I had a clean compile and link. Perhaps this shows up when using an install verifier? Regards, - Mike -----Original Message----- From: Wendell Joost [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 5:07 PM To: Ward, Mike (MED US) Subject: Re: [WiX-users] Shortcuts and components You'll note that when you have 2 .exes in the same component that you get a MSI validation error. The "two shortcuts pointing to the first .exe in the component" problem you're seeing is a side effect of the expectation that there will be only one shortcut per component. Wendell On 6/26/07, Ward, Mike (MED US) <[EMAIL PROTECTED]> wrote: > > 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 > -- "Some people come visit Europe and are really let down when they find out it's not like a credit-card commercial; others really get into meeting all the quirky people and careening along narrow mountain roads in rickety cabs driven by suicidal, gap-toothed Carpathians. I guess it's pretty obvious which one you are..." - Justin Crevier, May '01 ------------------------------------------------------------------------ ---- 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 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