What he meant was to inject a couple of Id="[somename]" into your code. I used
myID and myID2 in this example.
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Id="Comp1">
<File Id="myID" Name="FileA" />
</Component>
<Directory Id="SomeFolder" Name="SomeFolder">
<Component Id="Comp2">
<File Id="myID2" Name="FileA" />
</Component>
</Directory>
</Directory>
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, June 22, 2010 4:55 AM
To: [email protected]
Subject: Re: [WiX-users] Same file name different locations
I already read that...
Do you mean that theres no other way doing this?
-----Ursprüngliche Mitteilung-----
Von: Pally Sandher <[email protected]>
An: General discussion for Windows Installer XML toolset.
<[email protected]>
Verschickt: Di., 22. Jun. 2010, 13:45
Thema: Re: [WiX-users] Same file name different locations
See the Id attribute @
http://wix.sourceforge.net/manual-wix3/wix_xsd_file.htm
Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 22 June 2010 12:33
To: [email protected]
Subject: [WiX-users] Same file name different locations
Hello list,
following XML throws this error while linking:
error LGHT0091: Duplicate symbol 'File:FileA' found.
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Id="Comp1">
<File Name="FileA" />
</Component>
<Directory Id="SomeFolder" Name="SomeFolder">
<Component Id="Comp2">
<File Name="FileA" />
</Component>
</Directory>
</Directory>
I can solve the problem if I set for every File element an unique ID,
but in our program at work there are many cases like this.
Is there a better approach than setting the ID manual? I'm using WIX
3.0.
------------------------------------------------------------------------
------
ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's
Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the
prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users