I have a setting that needs to be a (REG_DWORD) 1 or 0 in registry that I want to set using a Checkbox during installation. Could somebody guide me in the right direction? I'm testing Advanced Installer Enterprise.
Thank you for your interest in Advanced Installer.
What you want to accomplish can be done very easy into an Enterprise project. Just create a new project and go to Registry page, here create the desired registry entry and set its "Data" field
to this: [MY_PROP]
Now you need to go to Dialogs page and add the checkbox control on the desired dialog. After you have added this control, on the "Next" button from the same MSI dialog
add a New Published Event, in Published Events tab. Select the type "SetProperty" from the dialog that appears when you press "New" button. Now set the name of the public property, i.e. MY_PROP, in the first field and the value 1 in the next field. The execution condition should be set to "NOT Installed AND MY_CHECK."
Where "MY_CHECK" is the property of your checkbox, you can see it in the right side, when you have the checkbox selecte din the dialog editor.
After you have added the event that sets MY_PROP to 1 you need to add another one that sets it to 0, with an opposite condition, i.e. "NOT Installed AND NOT MY_CHECK".
FOLLOW US
Get the latest news in Application Packaging