如果选择了FeatureB,则WiX取消选择FeatureA

时间:2020-10-01 12:53:08

标签: installation wix conditional-statements

我只希望安装一项功能。 但是,仅当未选择FeatureB时才能选择FeatureA。反之亦然。但是我能够同时安装这两个想法吗?

<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>

0 个答案:

没有答案