I have had different problem a year ago: I must create 3 installers which
was similar to each other, but was some differents: one have all features,
and other two only some features from the whole set. So I use proprocessor
variables like so:
 <?if $(var.CurrentComplex) = "Full" Or  $(var.CurrentComplex) = "Complex1"
?>
    <Feature Id="ServerFeature" Level="5" Title="ServerFeature"
Description="ServerFeature" AllowAdvertise="no">
<ComponentRef Id="ConfigAgentComponent" />
....
    </Feature>
    <?endif?>

So, during the build of the installer there was 3 times of "candle" and
"light" running. Each time I use different values for "var.CurrentComplex".
So in example this Feature will exist in Full Complex and Complex1 but we
will not see it in Complex2.
In WIX 2.0 it was Ok, but now it is problem. During build of Complex2,
"light.exe" found errors like this:
error LGHT0267 : Found orphaned Component 'ConfigAgentComponent'.  If this
is a Product, every Component must have at least one parent Feature.  To
include a Component in a Module, you must include it directly as a Component
element of the Module element or indirectly via ComponentRef,
ComponentGroup, or ComponentGroupRef elements.

I understand, that for Complex2 there was no Feature with component
"ConfigAgentComponent" and this component is in source files. But what I
must do? How can I change my build process and installer source?
I want to keep agility to build few installers from one source file.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to