An entire Fragment is included when referenced.
On Mon, Aug 19, 2013 at 12:15 PM, Marlos Gottschild < marlos.gottsch...@gmail.com> wrote: > Hi, > > I have a wixlib with Components, ComponentGroups and Features and another > wix project referencing this library. And I need to selectively choose > which Features from the wixlib I will include in my main setup. This way: > > wixlib: > file1.wxs > <Wix><Fragment> > <ComponentGroup Id="CompGroup_A" Directory="Folder_A"> > <Component Id="Component_A" Guid="{GUID}"> > <File Id="File_A" Source="myfileA.exe" KeyPath="yes" /> > </Component> > </ComponentGroup> > <ComponentGroup Id="CompGroup_B" Directory="Folder_B"> > <Component Id="Component_B" Guid="{GUID}"> > <File Id="File_A" Source="myfileB.exe" KeyPath="yes" /> > </Component> > </ComponentGroup> > </Fragment></Wix> > file2.wxs > <Wix><Fragment> > <Feature Id="Feature_A" Title="Feature A" Level="1" Absent="disallow" > Description="My feature A"> > <ComponentGroupRef Id="CompGroup_A" /> > </Feature> > <Feature Id="Feature_B" Title="Feature B" Level="1" Absent="disallow" > Description="My feature B"> > <ComponentGroupRef Id="CompGroup_B" /> > </Feature> > </Fragmnet></Wix> > > And my main setup: > <Product> > ... > <FeatureRef Id="Feature_A" /> > <!-- I don't want to include Feature_B --> > </Product> > > The problem is that when I try to install, both features (and > components/files) get installed. > > I'm definitely doing something wrong, but don't know what to do to correct > this. Any help? > > Thank you in advance. > > BR, > Marlos > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users