Wix Installer: enable/disable features based on ComboBox Selection

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Wix Installer: enable/disable features based on ComboBox Selection

suresh.kau05
This post has NOT been accepted by the mailing list yet.
Currently I am facing issue with Wix Toolset Installer while creating the custom dialog and adding some more controls into it.

Requirement:

When user changes the Combobox selection then it should enable/disable the features from the Feature Tree section. Please see attachment for more details. It shows two things:



1. When user selects "COMPLETE" then it should show 5 feature (Enables 5 Features)

2. When user selects "Custom" then it should show 4 feature (1 feature should disable)

Find my code below:

Component Dialog code:

<Control Id="CBTypeofInstall" Type="ComboBox" X="130" Y="85" Width="120" Height="120" Property="TYPEOFINSTALL" ComboList="yes">
          <ComboBox Property="TYPEOFINSTALL" >
            <ListItem Text="Transfer" Value="Transfer"/>
            <ListItem Text="Rescan" Value="Rescan"/>
            <ListItem Text="Complete" Value="Complete"/>
            <ListItem Text="Custom" Value="Custom"/>           
          </ComboBox>
        </Control>

Product.wxs:

<Feature Id="ABC" Title="ABC" Level="1" Description="ABC">
      <ComponentRef Id="ABC" />     
    </Feature>

    <Feature Id="XYZ" Title="XYZ" Level="1" Description="XYZ">
      <Feature Id="Test1" Title ="Test1" Level="1" Description="Test1">
        <ComponentRef Id="Test1" />     
      </Feature>
      <Feature Id="Test2" Title ="Test2" Level="1" Description="Test2">
        <ComponentRef Id="Test2" />
      </Feature>
    </Feature>

Please help us to find the solution of this problem.

Thank you in Advance.