How unselect and disable a checkbox based on a RadioButton - 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!

bullyellis
Posts: 22
Joined: Wed Mar 02, 2011 4:25 pm

How unselect and disable a checkbox based on a RadioButton

Just as the title says:

How can I uncheck and disable a checkbox based upon a RadioButton selection?

I have figured out how to disable the checkbox using "Control Conditions", but I have been unable to uncheck it.

I found this post here, http://www.advancedinstaller.com/forums ... f=2&t=7508 , but have the same problem that user does, namely I can't add anything to the "Published Events" tab of the radiobutton group.

Any ideas?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How unselect and disable a checkbox based on a RadioButton

Hello,

You can set the checkbox property to an empty string and then refresh the dialog. Here is an user guide article to help you with this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bullyellis
Posts: 22
Joined: Wed Mar 02, 2011 4:25 pm

Re: How unselect and disable a checkbox based on a RadioButton

I understand the script part of it, but for the instructions under the Enhanced UI, it says,

"You can then call it by placing a DoAction Published Event on a button."

Which brings me back to the original problem, how do I add a Published Event to a RadioButton or a RadioButtonGroup ? Or rather, how do I call the .vbs script on a changing selection of the RadioButtons ?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How unselect and disable a checkbox based on a RadioButton

Hello,

Unfortunately there is no way to dispatch a DoAction published event from a Radio Button Group, this can be done only from a Check Box or a Button control.

Here is a sample project of such an implementation which simulates the functionality of a Radio Button Group on the NewDialog from the First Install dialog tree:
EnableDisableCheckBoxSample.aip
(14.06 KiB) Downloaded 538 times
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”