I have an WIX installation with a feature and two subfeatures. I would like the feature to be required and the two subfeatures optional but not to install by default. Here is my feature tree:
<Feature Id="A" Level="3" AllowAdvertise="no" TypicalDefault="install"
InstallDefault="local" Absent="disallow" >
<Feature Id="A1" Level="1" AllowAdvertise="no" />
<Feature Id="A2" Level="1" AllowAdvertise="no" />
</Feature>
I thought that adding:
<Property Id="INSTALLLEVEL" Value=3 />
would set the main feature to install and the subfeatures to not install. That isn't the case; all features are installed by default.
I'm using the WixUI_FeatureTree. I wonder if that might be messing up the INSTALLLEVEL property.
So is what I am attempting even possible? How can I disable the two subfeatures by default?
Edit: Interesting. I set INSTALLLEVEL=1000
and tried it again and all features were still set to install. Could WixUI_FeatureTree be clobbering INSTALLLEVEL
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…