custom install dialog - Checkboxes in maintenance mode - Advanced Installer Community
Hunted
Posts: 10
Joined: Mon Oct 21, 2013 1:44 pm

custom install dialog - Checkboxes in maintenance mode

Hello,

I have created a custom feature selection dialog for my installer witch is also showed up in maintenance mode.
The Dialog have somme radiobutton groups and a lot of checkboxes.
Somme Checkboxes are checked by default by seting default checkbox value to 1.
Also are somme radiobuttons selected by default.

What i want to accomplish is that the checkboxes and radio buttons in maintenance mode are checked and selected like the User customized his installation.

So whenn a checkbox is not checked by default but the user installed this feature i want the checkbox be checked in maintenance mode oder future updates.
And if a Checkbox is checked by default but the User dont installed this feature i want the checkbox be unchecked in maintenance mode oder future updates.
Same for the radio button groups.


How can i accomplish this?
Can sommeone give me an example?

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

Re: custom install dialog - Checkboxes in maintenance mode

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can add in "Registry" page a registry value (for each of your control associated property) which will store the property value. Then, on "Search" page you can add registry searches which will search for your properties values. Also, the name of your registry searches should be the same as your property names. For example, if you have a check box control associated with MY_PROP property, then in "Search" page you should create a search named MY_PROP which will look for your MY_PROP value stored in a registry.

Let us know if this helped, otherwise please give us more details about your scenario (maybe exemplify).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hunted
Posts: 10
Joined: Mon Oct 21, 2013 1:44 pm

Re: custom install dialog - Checkboxes in maintenance mode

It worked for the Checkboxes but not for Radiobuttons.
How to solve this with Radiobuttons?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: custom install dialog - Checkboxes in maintenance mode

Hello,

First of all I apologize for my delayed answer.
How to solve this with Radiobuttons?
In order to achieve this you can store the value of the radio button group associated property (e.g. FEATURE_2) in a registry value which will be installed under its specific feature. Then, you can add registry search (having a different name than FEATURE_2, e.g FEATURE_2_STATE) which will look for your FEATURE_2 property value. Then, on [Next>] button from the previous dialog (of your "CustomFeatureSelection" dialog added on Maintenance dialogs tree) you can add a "Set installer property value" which will set accordingly the FEATURE_2 property based on the search result (FEATURE_2_STATE property value).

Also, from "Custom Actions" page you should configure the "UpdateFeaturesInstallStates" custom action to run on "Install" and "Maintenance".

Also, I've attached a sample created with version 10.6 of Advanced Installer which implements a similar scenario.
sample.zip
(3.15 KiB) Downloaded 321 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hunted
Posts: 10
Joined: Mon Oct 21, 2013 1:44 pm

Re: custom install dialog - Checkboxes in maintenance mode

Thanks this sample helped a lot.
i had to solve this on an other way for a radiobutton area with 4 radiobuttons, b ut it helped a lot for understanding how it workes.
Thank you :)
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: custom install dialog - Checkboxes in maintenance mode

You're always welcome. I'm glad you got this working.

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

Return to “Common Problems”