I have an Enterprise project with a custom dialog box that contains three CheckBox controls.
Each CheckBox control defines a public property (all uppercase letters). The Value property for each CheckBox control is 1, and the Default Value property is empty.
I am using each CheckBox control to write a value to the registry, in HKLM\[ProductName], to record the state of each CheckBox. The component associated with each registry value has a condition of PROPERTY=1 (where PROPERTY is the public property associated with each CheckBox control).
If the CheckBox control is not selected, then there is no property, and hence the installation does not write the value to the registry. This is not a surprise.
However, I would like to write a value of 1 if the CheckBox is selected, or a 0 (zero) if the check box is not selected.
If I put 0 for Default Value, the CheckBox is selected by default. I would like for the CheckBox not to be selected by default.
Does anyone have any suggestions?
Thanks,
Bill