Radiobuttons... - 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!

CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Radiobuttons...

Hi...

How can i use radiobuttons to decide what next customdialog im going to see?

I know i can use checkboxes, but really would prefer radiobuttons.



Tx

CArl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Radiobuttons...

Hello Carl,

In order to obtain what you want this is what you should do:
- Add a "Radio Button Group" control (this has added by default two radio buttons on it) on a dialog from "Dialogs" page. Set the "Property Name" field from "Properties" right pane to RADIOBTN.
- Select first radio button from "Radio Button Group" control and in the "Properties" right pane set the "Value" field to DlgA.
- Select the second radio button from "Radio Button Group" control and in the "Properties" right pane set the "Value" field to DlgB.
- Create two new dialogs (i.e. DlgA and DlgB) in the "Dialogs" page.
- Select the "DlgA" dialog and from its context menu select the "Show only if..." option. The "Edit Condition Dialog" will appear. In the "Condition" field set the following condition:

Code: Select all

RADIOBTN = "DlgA"
- Select the "DlgB" dialog and from its context menu select the "Show only if..." option. The "Edit Condition Dialog" will appear. In the "Condition" field set the following condition:

Code: Select all

RADIOBTN = "DlgB"
- Build and run your package.

If you have any questions let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Radiobuttons...

ok, thanks so far so good.....

Now im trying to base my select my selection of features installed on the condititon from the radiobuttons....

But this is of course not so easy, can i put the button state into a property or something so the feature condition can use it?


/Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Radiobuttons...

Hello Carl,

In order to achieve what you want you should follow our Show a custom feature selection dialog how to's steps.
If you have any questions let me know.

You can not use a property set from User Interface of the installation process in the "Condition" field from "Organization" -> "Features Properties" right pane because this condition is evaluated before the msi dialogs are loaded.

Please keep in mind that every User Interface control has a property assigned to it. The property name of an User Interface control can be identified in the "Property Name" field from "Properties" right pane. A "Radio Button" control has assigned the property of its "Radio Button Group" control.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”