How to condition components by Feature action and state - Advanced Installer Community
honzajic
Posts: 10
Joined: Thu Oct 13, 2011 12:31 pm

How to condition components by Feature action and state

Hello,

First, I would like to thank you for your hard work you have been doing. Advanced Installer is really wonderful product.

I need to put condition into component which belongs to one Feature, but to be only installed if some combination of sub-features of this Feature is met.

I have tried to bound these combination into Properties and then condition this component with it using CustomAction, but still so far no result with a lot hours wasted.
This CustomAction is bound to Wizard button when traversing from CustomDlg to Install.

There has to be some way how to do it nicely, but I haven't found it so far...

Thank you very much for your help.

Kind regards,
Honza
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to condition components by Feature action and state

Hello Honza and thank you for your interest in Advanced Installer,

Unfortunately you cannot have this scenario due to Windows Installer limitations.

As a workaround you can have a custom feature selection dialog and install the related components depending on the user choices. You can take a look on How do I show a custom feature selection dialog article which may be useful.

If you need any help, please let us know.

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

Return to “Common Problems”