Markus
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Common files for two features

Hello,
I am trying to port an existing installation project to Advanced Installer.
The problem is that there a files which are used by two features. These features can be installed optionally. I can only add files to one feature so these files get only installed if the feature they are assigned to is installed. I tried to solve this by creating a third feature and add the common files there. But my conditions in the components never return true, at least the files that should be installed are never installed
Let's say there is FeatureA, FeatureB and Feature_COMMON.

I tried this condition (amongst others):

(&FeatureA=3) OR (&FeatureB=3)


Can someone tell me how to get this work?


Regards
Markus.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Common files for two features

Hi Markus,

Please note that you cannot condition a component using a feature action, you can only use features states for that.

However the solution you need is much simpler and you don't need to use the third feature (the common one). All you have to do
is to select the components of the files you wish to install under both features, press "Shift" key and drag them under the second feature.

This will make the same components to be shared under both features, even if you have added them under a certain one.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Markus
Posts: 11
Joined: Fri Mar 05, 2010 10:49 am

Re: Common files for two features

Hello Bogdan and thanks for the reply.
I tried it and it works well.


Regards
Markus.

Return to “Common Problems”