Evaluate CheckBox

Jul 7 at 6:48 AM
Edited Jul 7 at 6:50 AM
I've created my first bundle with wixextba. I want to control the features that will be installed by a MSI package. The MSI contain two features: ProductFeature and OptionalFeature. So the Checkbox should contol what is passed in MsiProperty ADDLOCAL.
    <Variable Name="Option" Type="numeric" Value="1" />

      <MsiPackage SourceFile="The.msi">
        <MsiProperty Name="ADDLOCAL" Value="[Option]"> <!-- doesn't work -->
Is there any way to evalurate the CheckBox value in MsiProperty or as a InstallCondition?

I admint that's the poor man's feature select. I know it would be possible to show the internal UI of the MSI. But the MSI doesn't have a UI since several MSIs shall be installed.
Jul 13 at 10:50 AM
Edited Jul 13 at 10:51 AM
Answering my onw question for the case that anybody else is thinking about it...

The MsiPackage has an attribute InstallCondition that can be used to evaluate the checkbox state:
  <MsiPackage SourceFile="The.msi" InstallCondition="Option = 0">
    <MsiPackage Name="ADDLOCAL" Value="SelectedFeature"/>
  <MsiPackage SourceFile="The.msi" InstallCondition="Option = 1">
    <!-- no ADDLOCAL necessary to install all features -->