Checkbox to int (REG_DWORD) in registry - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Checkbox to int (REG_DWORD) in registry

Hi there,

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.

Thanks in advance.

regards,

Dawie
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Checkbox to int (REG_DWORD) in registry

Hi Dawie,

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".

Please let us know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Checkbox to int (REG_DWORD) in registry

Once again very impressed with your service. Thank you Bogdan

Return to “Common Problems”