[wix-users] FeatureGroupRef and Primary="no" doesn't seem to work the way I want

Robert Beardsworth rob_beardsworth at hotmail.com
Fri Jan 22 17:34:45 PST 2016

Sorry for the Ping, but I was really hoping someone could help! According to:
                        Features may belong to multiple features
But I can't seem to get it to work.
Thanks for any Help, Rob
> From: rob_beardsworth at hotmail.com
> To: wix-users at lists.wixtoolset.org
> Date: Tue, 19 Jan 2016 17:10:19 -0800
> Subject: [wix-users] FeatureGroupRef and Primary="no" doesn't seem to work	the way I want
>  Hi All,
>    I have a product that has a server and client component. ALL of the client components are in the server. So I tried the following (in a test project) 2 wixlibraries which have:
>   <Fragment>
>       <FeatureGroup Id="Group1">
>           <Feature Id="Wixlib1" Title="Lobster" AllowAdvertise="no" Description="Lobster Picture and Text File">
>               <ComponentGroupRef Id="Wixlib1.Components"/>
>           </Feature>
>       </FeatureGroup>
> 	</Fragment>
> (obviously with all the appropriate components etc. Also, there is an equivalent Group2/Wixlib2/Wixlib2.Components)
> Then in my final build:
> <Feature Id="Everything">
> 		    <Feature Id="ProductFeature" Title="FinalBuild" Level="1" AllowAdvertise="no" InstallDefault="local">
>             <FeatureGroupRef Id="Group1"/>
>             <FeatureGroupRef Id="Group2"/>
>   <Feature>
>   <Feature Id="TestFeature" Title="Test" Level="1" AllowAdvertise="no" InstallDefault="local">
>            <FeatureGroupRef Id="Group1" Primary="no"/>
>        </Feature>
>     </Feature>
> If I don't have the TestFeature, everything builds nicely, but if I include that, I get:
> Multiple primary references were found for Feature 'Wixlib1' in Feature 'TestFeature' and Feature' ProductFeature'. 
> I thought that the Primary="no" should have stopped this. Any clues?
> We are using Wix 3.8.
> Rob
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list