This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Enabling/Disabling checkbox in MSI install
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 13, 2011
01:40 PM
Enabling/Disabling checkbox in MSI install
I want to disable checkbox 2 if checkbox1 is unchecked, and enable checkbox2 if checkbox1 is checked. So in the section “Behavior” of the dialog, for checkbox 2 I added two conditions: The Action is Enable if the Condition is “PROPCHBOX1=1” and Disable if “PROPCHBOX1=0”. When I run the install, checkbox2 is disabled by default. When I click on checkbox1, checkbox2 is enabled. But when I uncheck checkbox1, checkbox2 remains enabled, and remains enabled no matter what I do from that point on. How can I get checkbox2 to be disabled when unchecking checkbox1?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 13, 2011
11:28 PM
According to CheckBox Control...
The unselected state sets the property to null.You will want to use the condition below instead to disable the 2nd checkbox.
NOT PROPCHBOX1
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 14, 2011
10:53 AM
Works beautifully! I guess I've been working with MFC too long where 0 means disabled, 1 means enabled...
Thanks a lot!
Thanks a lot!