Categories of File Associations - Advanced Installer Community
Ansgar
Posts: 11
Joined: Tue Apr 05, 2022 12:20 pm

Categories of File Associations

Hi,

I'm using AI 22.7, Professional License, and I'm building an MSI installer for Windows 10/11 x64.

I am using a FileAssociationsDlg, but it shows all available extensions (defined in "File Associations") in a flat list. I'd like to group some of the options together, e.g. have one category for my own proprietary file types and one for some common types that my application can import. Right now the list is always just sorted alphabetically and it seems I can't even change the labels.
As a result, I cannot put the most important file types first. In fact I have no control over the order whatsoever.
I feel like this must be a common problem, am I missing something?

Regards,
Ansgar
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Categories of File Associations

Hello Ansgar,

The dialog can not be modified mostly because modifying dialogs requires the "Dialog Editor" feature, which comes in Enterprise.

With that feature, you would be able to modify the dialog, e.g. changing the order of the checkboxes.

Regarding the elements, those are indeed are displayed in the order from the "Files Associations" page, which is alphabetical.

Please let me know if you have any other questions and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ansgar
Posts: 11
Joined: Tue Apr 05, 2022 12:20 pm

Re: Categories of File Associations

Hi Catalin,

thanks for the answer. Disappointing, if not entirely unexpected.
To be honest though, I think that, regardless of license, having to manually manipulate the dialog for something this basic seems kinda unelegant and clumsy.

Another related question; is it possible to combine several extensions into one checkbox (e.g. ".jpg" and ".jpeg" as a single checkable option which then registers both extensions)?

Regards,
Ansgar
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Categories of File Associations

Hello Ansgar,
Another related question; is it possible to combine several extensions into one checkbox (e.g. ".jpg" and ".jpeg" as a single checkable option which then registers both extensions)?
I am afraid that this is not possible. Each extension has its own option that can be displayed in the FileAssociationDlg dialog. You cannot group them into a single check box.

However, this can be achieved with the help of our Dialog Editor feature. You just need to create your own Checkbox controls and then condition the extensions through the "Install based on custom condition" based on the user's selection.

If there’s anything else we can assist you with, please don’t hesitate to reach out.

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

Return to “Common Problems”