Bugs item #1870153, was opened at 2008-01-12 18:00
Message generated for change (Comment added) made by pmarcu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1870153&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: light
Group: v3.0
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: kevin (kgr003)
Assigned to: pmarcu (pmarcu)
Summary: LGHT0095 error with ComponentRef under FeatureRef
Initial Comment:
It appears as though having ComponentRefs as children of a FeatureRef is broken.
The attached .wxs source does not link under WiX 3.0.3711.0. It works fine
(with some slight schema changes) under WiX 2.
The error is "LGHT0095 : Multiple primary references were found for Feature
'MainFeature' in Product {GUID} and Product {SAME GUID}."
There are no other fragments or files involved. The entirety of the code is
attached.
----------------------------------------------------------------------
>Comment By: pmarcu (pmarcu)
Date: 2008-01-30 10:09
Message:
Logged In: YES
user_id=1612676
Originator: NO
The problem here is that both FeatureRef and Feature under a Product makes
a connection between that Id and the product. In your case, having Feature
and FeatureRef with the same Id both under the Product element is the
problem. You can add the IgnoreParent="yes" attribute to the FeatureRef and
everything should work. IgnoreParent was added recently for this scenario.
----------------------------------------------------------------------
Comment By: kevin (kgr003)
Date: 2008-01-15 11:46
Message:
Logged In: YES
user_id=1980099
Originator: YES
Apparently, the FeatureRef/ComponentRef structure is only supported when
the Feature exists in a fragment. This is now enforced for WiX3 but
apparently wasn't for WiX2. If that's correct, this bug can be closed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1870153&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs