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!

jezcooke
Posts: 29
Joined: Mon May 28, 2012 4:34 pm

Mutually Exclusive Components

Hi,

I'm building an installer that has several mutually exclusive components that either (or none) may be installed but not both. So far I didn't find a good way to do this in Advanced Installer. I tried setting conditions in the "organisation" page but it seems that these don't get re-evaluated when the user changes things (ideally ticking one of the exclusive components would untick the other, alternatively the non-default set could be shown disabled unless the user unticks the default ones first).

I also tried setting a custom action to warn the user if they chose both, the message box appeared fine but the custom action to "disable features" didn't have any affect (the features I asked it not to install were still present on the target machine after installation).

I'm sure I must be missing something as this seems a pretty basic standard thing to do.

I'm using AI professional.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Mutually Exclusive Components

Hello,

We tried to find a solution for this, however Windows Installer does not support this behavior.

The only apparent solution is to use Radio button group on a custom dialog to condition which component to install.

You can take a look on the How do I show a custom feature selection dialog? article with related information for hints and guidance. Please note that you will need the Dialog Editor feature which is available starting with the Enterprise edition of Advanced Installer.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”