Installation 如果选择了FeatureB,WiX将取消选择FeatureUrea

Installation 如果选择了FeatureB,WiX将取消选择FeatureUrea,installation,wix,conditional-statements,Installation,Wix,Conditional Statements,我只想安装一个功能。 但是,仅当未选择FeatureB时,才能选择FeatureUrea。反之亦然。但我可以安装这两个,有什么想法吗 <Feature Id="FeatMainNode" Title="..." Description="..." Level="101" AllowAdvertise="no" Absent="allow"> <Feat

我只想安装一个功能。 但是,仅当未选择FeatureB时,才能选择FeatureUrea。反之亦然。但我可以安装这两个,有什么想法吗

<Feature Id="FeatMainNode" Title="..." Description="..." Level="101" AllowAdvertise="no" Absent="allow">
    <Feature Id="FeatureA" Title="..." Description="..." Level="1" AllowAdvertise="no" Absent="allow">
      <Condition Level="101"><![CDATA[&FeatureB=3]]></Condition>
      <ComponentGroupRef Id="FeatureAComponents"/>
    </Feature>
    <Feature Id="FeatureB" Title="..." Description="..." Level="1" AllowAdvertise="no" Absent="allow">
     <Condition Level="101"><![CDATA[&FeatureA=3]]></Condition>
      <ComponentGroupRef Id="FeatureBComponents"/>
    </Feature>
  </Feature>