It is checked because the associated property is set when the dialog page is
(re)opened. When you deselect the feature, you need to also clear the
property before the dialog with the checkbox is opened.

-----Original Message-----
From: Bimali Ponnamperuma [mailto:bimal...@gmail.com] 
Sent: Friday, February 05, 2010 2:04 AM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] How to set default value based on a condtition

Hi all,

I have a new dialog screen introduced into the main installation flow.
This contains a check box which should be set to uncheck by default.

but this check box should be unchecked and disabled when the feature X is
not selected.

I can enable or disable based on feature selection.

But my problem scenario is :
    Select feature X and go to the screen and check the "checkbox"
    Go back to feature tree and unselect feature X
    proceed to the screen... The check box is Checked and disabled... ( this
should be unchecked and disabled)

How can i set back the checked status ??
my checkbox control is like below

<Control Id="InstallSQLExpressCheckBox" Type="CheckBox" X="10" Y="50" Width=
"330"

Height="18" CheckBoxValue="0" Property="INSTALLSQLEX"

Text="!(loc.InstallSQLExpressSelectionCheckBox)" >

<!-- Enable/Disable control according to database feature selection -->

<Condition Action="enable" ><![CDATA[&Database=3]]></Condition>

<Condition Action="disable" ><![CDATA[&Database<>3]]></Condition>
----------------------------------------------------------------------------
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to