Hello,
Unfortunately, we do not have predefined support for this task.
You can, however, try to achieve this by using a
custom action.
For instance, let's consider we have 3 features, i.e.:
Feature1
Feature2
Feature3
For each of these features, we will have their
"Installation Behavior" (
"Organization" page --> your feature) set to
"Installed".
We will need a property to condition the
"Disabled if" field for each of our features. For instance, the
"Disabled if" field for the first feature could look like this:
Now, the custom action could look something as this:
Code: Select all
read the license file
if (feature1 is found)
set FEATURE_1_PRESENT to "true"
else set FEATURE_1_PRESENT to "false"
Now, the above check should be done for each feature and another property should be used. For instance, for
Feature2 we will use the
FEATURE_2_PRESENT property and so on.
For more details about setting a property from within a custom action, please have a look over our
"How to set an installer property using custom actions" article.
Hope this helps.
Best regards,
Catalin