Radio button for component choice? - 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!

WatskeBart
Posts: 5
Joined: Fri Sep 30, 2011 2:08 pm

Radio button for component choice?

Hi there folks,

I'm new to this forum and also to Advanced Installer.
But i'm a bit stuck with the following issue. :(

I've created a custom dialog with a radio button group, which contain 2 buttons.
If button 1 is chosen then the installer needs to install 2 files to the installation folder.
If button 2 is chosen then the installer needs to install 2 identical named files (with different config) to the same installation folder.
I've already created 2 seperate components which contain those files, as described here: Install files with the same name

Here comes the question ;)
How do i define that button 1 should install component 1 or if button 2 is chosen it will install component 2?

Thanks in advance for taking the time to read my issue :)
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Radio button for component choice?

Hi and welcome to our forums,

The set the condition on the components you need to use the property associated with the radio group control. To see the name of the property
select the group and locate it in the right side pane. Let assume its called my "MY_RADIO_GROUP".

Now, if you select each radio button in Dialogs page, in the same right side pane you will see the field "Value". This represents the value that will be placed in
the above mentioned property if the radio button is selected by the user at install time. Let's assume the first button has the value "1" and the second has the value "2".

So what you need to do is to go in Organization page, locate the two components and set the conditions like this:
-- condition if first radio button is selected

Code: Select all

MY_RADIO_GROUP = "1"
-- condition if second radio button is selected

Code: Select all

MY_RADIO_GROUP = "2"
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
WatskeBart
Posts: 5
Joined: Fri Sep 30, 2011 2:08 pm

Re: Radio button for component choice?

Thanks Bogdan,

It's crystal clear now :D
I was a bit confused about the value part.

Thanks again for the quick support :wink:
WatskeBart
Posts: 5
Joined: Fri Sep 30, 2011 2:08 pm

Re: Radio button for component choice?

I've finally build my package, but is there a reason why my radio buttons are shown as regular buttons?

Another little question :wink:
I'm build a rather big package (around 7Gigs), but is it possible to create a single EXE installer, without the error "this is not a valid Win32 application"?
I'm trying to keep the amount of package files to the minimum. :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Radio button for component choice?

Hi,
is there a reason why my radio buttons are shown as regular buttons?
I'm not sure what you mean. Can you post a screen-shot with these radio buttons?
is it possible to create a single EXE installer, without the error "this is not a valid Win32 application"?
No. The Windows OS doesn't support EXE files larger than 2 GB.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
WatskeBart
Posts: 5
Joined: Fri Sep 30, 2011 2:08 pm

Re: Radio button for component choice?

Added the screenshot as attachment:

In the Dialogs screen they are shown correctly, but when I build my setup it's shown as these buttons. They act like radio buttons as they should, it's just a cosmetic issue.

Why doens't Advanced Installer warn, when i'm trying to build a 2GB+ EXE file? :wink:
Attachments
Radio Buttons?
Radio Buttons?
radio_button.jpg (13.43 KiB) Viewed 5740 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Radio button for component choice?

Hi,

Can you please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it?
Why doens't Advanced Installer warn, when i'm trying to build a 2GB+ EXE file?
I will forward this to our development team and we will consider adding this improvement. If this is an issue for you you can enable "Leave the files outside" option from the Bootstrapper tab in the Media page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
WatskeBart
Posts: 5
Joined: Fri Sep 30, 2011 2:08 pm

Re: Radio button for component choice?

I figured it out. :) I made a missclick in the dialogs page :oops:

Settings "Push like" was set true :lol:

Everything is fine now :D

Thanks for all the support though

Return to “Common Problems”