Question How to add DWORD registry value depending on checkbox value

Exxoff

New member
Joined
Oct 16, 2008
Messages
2
Location
Gothenburg, Sweden
Programming Experience
3-5
I have created a "Setup & Deployment"-project.

I'd like to set a DWORD registry value to 0 or 1 depending on if a checkbox is checked or not during installation.

In the "User interface" page I have a checkbox called LOGGING. Depending on whether this checkbox is checked I want to add a registry entry called EnableLogging to 0 or 1.

In the "Registry" page of the setup project I have created a DWORD value called EnableLogging. The value must be "vsdrvtInteger". How can I make this work?

/ Exxoff
 
Solved it on my own.

Add a "Checkboxes (A)" dialog. Stay with default names (CHECKBOXA1).

Add two registry values with the same name, e.g. "Logging"

In the Condition property for the first value, type "CHECKBOXA1=1" without quotes. Set the Value property to 1.

In the Condition property for the second value, type "CHECKBOXA1<>1" without quotes. Set the Value property to 0.

Done.
 
Back
Top