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 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

Reply via email to