Hi all,
If you know how to show/hide a checkbox based on a property which is set on runtime, please let me know. We're eager to see the solution. Basically, we need to show the end user a dialog to tell them if they want to migrate their existing settings from old version to new. I'm having trouble to conditionally show a dialog(http://n2.nabble.com/How-to-detect-files-presence-and-conditionally-show-a-new-added-dialog-page-td3855938i20.html ). Well, we can show it, but we'll have to click the next button two times to get it move forward. Anyways, discussed with our team, we're even okay by just conditionally show/hide a checkbox. If this work, we can give up the conditionally showing dialog which cause much too much trouble. But "conditionally show/hide checkout" doesn't work either. Can you point out my problem? Here is the code: <Control Id="MigrateSettingsCheckBox" Type="CheckBox" X="20" Y="220" Width="290" Height="17" Property="MIGRATE_SETTING_CHECKBOX_VALUE" CheckBoxValue="1" Text="Migrate settings from old version." > <Condition Action="show">Not Installed and NEED_MIGRATE_SETTING</Condition> </Control> The reason we have to "conditionally" show the checkbox is that, some of our users may not have old version of software, they probably just buy the new version. So there is no point to always show that checkbox. We have a custom action(DLL) can detect if the end user needs to migrate settings, and further set a property on runtime. This checkbox's show action is associated with that property. Does it make sense? Many many thanks. ________________________________ From: little.forest <little.for...@ymail.com> To: wix-users@lists.sourceforge.net Sent: Tuesday, October 27, 2009 1:25:15 AM Subject: [WiX-users] How is Control Condition supposed to work? We use Wix 3.0. How is Control condition supposed to work? I've this code: <Control Id="MigrateSettingsCheckBox" Type="CheckBox" X="20" Y="220" Width="290" Height="17" Property="MIGRATE_SETTING_CHECKBOX_VALUE" CheckBoxValue="1" Text="Migrate settings from old version." > <Condition Action="show">Not Installed and NEED_MIGRATE_SETTING</Condition> </Control> I'd like to see the checkbox shows if the condition is true, but not show if it's false. But the result is, no matter what, the checkbox always shows up. What's wrong? Thanks. __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users __________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users