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!

see
Posts: 11
Joined: Wed Aug 12, 2015 7:16 am

Remember selection of radio buttons

Hi,

is it possible to remember a selection made by a previous installation for future ugprades/repairs?

Thank you,
see
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remember selection of radio buttons

Hello,

In order to achieve this you can create the property as persistent in the Install Parameters page. Use this property for the radiobutton group control.

This way, the property's value will be saved in the registry. During an upgrade, its value will be automatically retrieved.

Please let us know if there is anything else I can help you with.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
see
Posts: 11
Joined: Wed Aug 12, 2015 7:16 am

Re: Remember selection of radio buttons

Will the radio button with the value of the persistent InstallParameter be selected (selected = true)?

Thank you!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remember selection of radio buttons

Hi,

For this, you can set the property from the Install Parameters with the default value of the radiobutton group.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Remember selection of radio buttons

I understand that we can retrieve the Registry value of the radio button group property at install time and re-populate that value however this does not set the Radio button group toggle to one of the values depending on the previously saved (to registry) value?
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Remember selection of radio buttons

Is it possible to set the Radio Button selection during installation using the Init Events and the property from the Install Parameters/Registry Search?
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Remember selection of radio buttons

OK, so i figured this out.

You can set the Radio Button default selection by using a little logic in the Init events combined with the Install Parameter, Search and the relevant registry key. Works great! if anyone would like to see an example then please shout.
bernieshweinstieger
Posts: 4
Joined: Sat Jul 01, 2017 2:07 pm

Re: Remember selection of radio buttons

Hello,

I have two radio buttons on my dialogue and i'm trying to have 1 pre-selected based on a registry value, please would you mind sharing how you did this as I just can't work it out!

Thank you

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

Re: Remember selection of radio buttons

Hello Bernie and welcome to our forums,

This can be done by using a registry value search (e.g. MY_REG_SEARCH). Then, on the dialog with the radio button group control add an init event like this:
  • Control Event: Set installer property value
    Property: RADIO_GROUP_PROP
    Argument: PreselectedValue
    Condition: MY_REG_SEARCH
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bernieshweinstieger
Posts: 4
Joined: Sat Jul 01, 2017 2:07 pm

Re: Remember selection of radio buttons

Thank you works perfectly.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Remember selection of radio buttons

You're always welcome.

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

Return to “Building Installers”