Hi Could anybody help me with fragments and features. I'm working on big wix project with lot of fragments. Idea was that I make libraries for everything what can be shared between our installers and then just by references compose what I need.
Everything goes fine until now. I created fragment (wixlib) Where I have 2 features. But in one of final installers I need only one. But when I make reference to one of these features then both are linked into final installer. Second feature which I didn't referenced is without parent but it is there. Look at this example *.wixlib* <Fragment> ... <Feature Id="Feature_A" Level="1" Title="!(loc.Feature_A_Title)" Description="!(loc.Feature_A_Description)" Display="collapse"> <ComponentGroupRef Id="FilesCG"/> <ComponentGroupRef Id="RegsCG"/> <ComponentGroupRef Id="LangCG"/> <ComponentGroupRef Id="DriversCG"/> <ComponentGroupRef Id="ModuleCG"/> </Feature> <Feature Id="Feature_B" Level="1" Title="!(loc.Feature_B_Title)" Description="!(loc.Feature_B_Description)" Display="collapse"> <ComponentGroupRef Id="FilesCG"/> <ComponentGroupRef Id="RegsCG"/> <ComponentGroupRef Id="LangCG"/> </Feature> </Fragment> *installer* <Product> ... <Feature Id="MainFeature" Level="1" Title="!(loc.MainFeature_Title)" Description="!(loc.MainFeature_Description)" Display="expand"> <FeatureRef Id="Feature_B" /> </Feature> </Product> So when I make now build of installer I get installer with both features Feature_B and also Feature_A. But Feature_A is without parent because I didn't referenced it. So I hoped that if some feature form wixlib is not referenced that it wont by included into final installer. Is there any way how can be this Feature_A excluded from linking into final installer. Or is whole my approach wrong? I also though that I put one of them into another fragment (wixlib) but these features has shared components so I didn't know if it helped something. Thanks for any reply. elanius. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users