cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
garyflet
Level 3

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?
Labels (1)
0 Kudos
(2) Replies
TsungH
Level 12

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
0 Kudos
garyflet
Level 3

Works beautifully! I guess I've been working with MFC too long where 0 means disabled, 1 means enabled...

Thanks a lot!
0 Kudos