According to MSDN a Feature with Level="0" isn't displayed
(http://msdn.microsoft.com/en-us/library/aa368585(v=VS.85).aspx) Hence
you could try using the Property your RadioButtonGroup sets as Feature
Conditions for your 2 main Features & set the Level to 0 using mutually
exclusive Conditions. e.g.

<RadioButtonGroup Property="MYPROPERTY">
  <RadioButton Value="FirstFeature" Text="Install First Feature" X="10"
Y="10" Width="100" Height="10" />
  <RadioButton Value="SecondFeature" Text="Install Second Feature"
X="10" Y="20" Width="100" Height="10" />
</RadioButtonGroup>

<Property Id="MYPROPERTY" Value="FirstFeature" /> <--Set this to
whatever you want it to default to-->

<Feature Id="FirstFeature" Level="1">
  <Condition Level="0">MYPROPERTY="SecondFeature"</Condition>
  <Condition Level="1">MYPROPERTY="FirstFeature"</Condition>
  (sub-Features here)
</Feature>
<Feature Id="SecondFeature" Level="1">
  <Condition Level="0">MYPROPERTY="FirstFeature"</Condition>
  <Condition Level="1">MYPROPERTY="SecondFeature"</Condition>
  (sub-Features here)
</Feature>

You should set a default Value for the Property so your MSI can be run
without UI. Using a Public Property will also allow it to be set from
the command line in those situations.

Not sure if that'll do what you want it to as I've not tested it myself
but if the documentation is to be believed it should.

Good Luck.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Deepika Gakhar [mailto:deepi...@microsoft.com] 
Sent: 18 November 2010 20:17
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Is it possible to show features in the
FeatureDlgconditionally?

Hi,

We have 2 mutually exclusive main features that cannot co-exist. Each
main feature has multiple sub features.

I have a custom dialog with radio buttons that takes the user input on
which main feature should be installed. Based on this input, I need to
show the feature tree of only the selected main feature in the
FeatureDlg. Is it possible to do that?

I tried the following :
Based on the user input from the custom dialog, I set a property to
indicate which feature the user wants to install. Condition level of the
features are set based on the value of this property. But it seems that
the property's new value is not read and the features with non-zero
levels are displayed in the FeatureDlg based on the original value of
the property.

Your response will be much appreciated. Thanks in advance.

Best Regards,
Deepika


------------------------------------------------------------------------
------
Beautiful is writing same markup. Internet Explorer 9 supports standards
for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to