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!

dov
Posts: 3
Joined: Wed Mar 04, 2020 3:07 pm

Select all check boxes in dialog

Hi,

I'm new to Advanced Installer.

I've created an OptionalFeatsDlg that contain 2 Checkboxes ( for example A and B)

I would like to add another CheckBox name "Select All" which will select all checkboxes upon check and deselect all upon uncheck.

In Control Conditions I can't set Check / Uncheck so I'm not sure how to accomplish that.

I tried to use Published Events but setting the event to "Set installer property value" and:
Property: A_CHECKBOX
Argument: TRUE / YES / CHECK
Condition: SELECTALL_CHECKBOX = 1 / CHECK

It didn't work.

Any help would be highly appreciated, Thanks.

Dov
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Select all check boxes in dialog

Hello Dov and welcome to Advanced Installer forums,

Please note that we offer such a dialog as a predefined dialog. In order to add it to your project, please go to "Dialogs" page --> select "WelcomeDlg" --> "Add Dialog" button from the ribbon --> "OptionalFeatsDlg".

This dialog already has a "Select All" checkbox which achieves exactly what you need.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dov
Posts: 3
Joined: Wed Mar 04, 2020 3:07 pm

Re: Select all check boxes in dialog

Thank you for the fast reply, it's working great.


Can I "hide" a feature (so it won't be shown) in "OptionalFeatsDlg" but will be shown (or become enabled) in "VerifyRemoveDlg" if the user selects another feature to be removed?

For example, a user selects to install FeatA and FeatB, when the user tries to uninstall FeatA he selects it from the QuickSelectionList and another checkbox appears (or becomes enabled) to allow the user to remove FeatAData (user can select to keep or delete the feature).

Thanks,

Dov.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Select all check boxes in dialog

Hello Dov,

Unfortunately, the QuickSelectionList control is treated as a whole (its content is not really editable).

A feature can be hidden by going to "Organization" page --> your feature --> under "General" section --> "Feature Tree" = Not Displayed

To fully achieve what you want, you will need to create your own custom selection dialog. For more information about this, please have a look on our "How to show a custom feature selection dialog" article which I think you may find useful.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”