Chips
Posts: 10
Joined: Wed Oct 02, 2024 1:50 pm

Quickselection list not updating with refresh dialog event

Hello,

Objective: I want to enhance the OptionalFeatsDlg by adding a checkbox for various installation types. Each type has specific features that need to be installed. The idea is for users to select an installation type from a combo box, allowing them to see the associated features. Mandatory features should be greyed out for that installation type, while users can also check additional non-mandatory features.

Example: Consider a combo box with three installation types: Install1, Install2, and InstallCustom, along with four features: A, B, C, and D.
  • If Install1 is selected, features A and B are automatically checked and greyed out as they are mandatory, while the user can optionally select features C and D.
  • If Install2 is chosen, features A, C, and D are checked and greyed out, and the user can decide whether to include feature B.
  • InstallCustom allows users to select any combination of features.
To implement this, I created a property called INSTALLTYPE for the combo box. On the "Organisation" page, for example, I set feature B to be checked with the condition "Not installed if:" INSTALLTYPE = "Install1". I also added a refresh event to the dialog, but it seems to only update when I click "Next" and return to the dialog, indicating that the refresh event might not be updating the QuickSelectionList properly. Additionally, I'm unsure how to grey out the mandatory features based on the installation type.

Thank you in advance for your assistance! I apologize if this question has been answered before; I've searched the forums without success.
Liviu
Posts: 1365
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Quickselection list not updating with refresh dialog event

Hello and welcome to our forums,

In order to achieve this, you need to create a custom feature selection dialog. For more details, you can refer to the article below:

How to show a custom feature selection dialog


After you follow the steps from the article and create the CheckBox controls, you need to add the control conditions for every checkbox.

Let's say you add 3 languages "en", "fr", "german" and you named the checkbox properties: CHECKBOX1, CHECKBOX2, CHECKBOX3.

Now you need to click on the first checkbox and add these control conditions:

CHECK2 OR CHECK3 with the Action: Disable means that this checkbox will be disabled if any of the "Fr" or "german" is selected.

(CHECK3="") is the condition if the checkbox is unselected.

You need to add these conditions for every checkbox that you want to be disabled/enabled.

Now from the Organization page you can condition the feature installation based on the user selection on the CheckBox.

If you cannot get this to work, please send us the .AIP (setup project) file by email to support at advancedinstaller dot com and more details about your expected result.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Chips
Posts: 10
Joined: Wed Oct 02, 2024 1:50 pm

Re: Quickselection list not updating with refresh dialog event

Hello,
Thanks for your reply! I understand your approach however the only problem is that I have about ~68 features which is a bit of work to do, however still possible. The only problem that remains is that I quite like the quick selection list because not only it automatically detected and added new features, but also had a very organized way to show the checkboxes (See gif below)
https://imgur.com/a/h6rg2p6
How can I achieve something similar? Since trying to organize so many checkboxes in the dialog is a bit tricky.

Thanks!
Liviu
Posts: 1365
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Quickselection list not updating with refresh dialog event

Hello,

Sorry for the delayed reply on this.

When using the QuickSelectionList control, there is no way to control the displayed features.

The only way to accomplish your scenario with mutually exclusive features is by creating a custom dialog with Checkbox controls for each feature. But since you have a lot of features, this will be hard to implement, almost impossible based on the number of combinations.

We apologize for the inconvenience.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”