Hello and welcome to Advanced Installer forums,
I have tested this scenario and indeed, you are right, the predefined dialog does not have buttons for selecting and unselecting all the file associations.
However, this can be achieved pretty easily:
Let's assume we have the following two extensions:
exe and
txt.
From this, two checkboxes are created in the
"FileAssociationsDlg", having the following properties:
EXE_CHECKBOX
and
TXT_CHECKBOX
When selected, the above properties will have, by default, a value of "1". When unchecked, the value (of the properties) will be set to empty string.
So, here is you can achieve that:
- go to
"Dialogs" page
- in the
"FileAssoctiaonsDlg" dialog, add two push-buttons controls (one named "Select All" and the other one "Deselect All" - these changes can be done from the
"Properties" pane of the control).
- now click on the "Select All" buton. Under
"Published Events", please create an event as it follows:
- Annotation 2019-09-25 100257.png (133.18KiB)Viewed 8564 times
Now please repeat the above step for the second file association.
Now, please click on the "Deselect All" button and please repeat the above steps with the following modification:
- this time, the property will be set to the "{}" (without quotes) value, instead of "1".
This way, when these buttons are pressed, it should either select or deselect all file associations.
Hope this helps.
Best regards,
Catalin