Hi
Here is my solution to this. I don't know if there is something easier or
better.
The radiobuttongroup controls some property
<RadioButtonGroup Property="PROPERTY">
<RadioButton Text="Feature1" Value="Feature1" X="5" Y="0" Width="140"
Height="15" />
<RadioButton Text="Feature2" Value="Feature2" X="5" Y="20" Width="140"
Height="15" />
</RadioButtonGroup>
When the user presses the Next-button I publish events to add/remove the
features
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="!(loc.WixUINext)">
<Publish Event="AddLocal" Value="Feature1"><![CDATA[ (PROPERTY =
"Feature1")]]></Publish>
<Publish Event="Remove" Value="Feature1"><![CDATA[NOT (PROPERTY =
"Feature1")]]></Publish>
<Publish Event="AddLocal" Value="Feature2"><![CDATA[ (PROPERTY =
"Feature2")]]></Publish>
<Publish Event="Remove" Value="Feature2"><![CDATA[NOT (PROPERTY =
"Feature2")]]></Publish>
<Publish Event="NewDialog" Value="NextDlg">1</Publish>
</Control>
Where the value in the publish-element equals the feature names.
//Peter Björkman
-----Original Message-----
From: Arun Perregatturv [mailto:[email protected]]
Sent: den 19 januari 2009 18:08
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] RadioButtons and Feature
I am confused on how to set a feature to a Radiobutton selection.
I have 4 Features
1. Feature1
2. Feature2
3. Feature3
4. Feature4
I copied WixUI_Mondo and modified to include my custom Dialog which has 4
radiobuttons and one checkbox.
Now, I can compile and run and even see the dialog that's not the problem.
Problem is how do I set or relate feature1 to Radiobutton1, feature2 to
Radiobutton2 and so on.
Based on their selection I would like to install features.
Thanks,
Arun Perregattur
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users