Summary
When using a condition on a feature, such as &FeatureName, !FeatureName, $ComponentName, or ?ComponentName, so that the feature condition evaluates based on the state of another feature or component in the package, the feature condition does not work as expected, causing the feature to always be installed or never be installed.Symptoms
When using a condition on a feature, such as &FeatureName, !FeatureName, $ComponentName, or ?ComponentName, so that the feature condition evaluates based on the state of another feature or component in the package, the feature condition does not work as expected, causing the feature to always be installed or never be installed.
Cause
It is not possible to use feature or component states in a feature condition. This is a limitation of the Microsoft Windows Installer service.
Workaround
A feature condition needs to be authored that does not depend upon the state of another feature or component in the project. For example, the condition could be based on system search results or public properties populated prior to the CostFinalize action.
Additional Information
More information on feature conditions can be found in the Windows Installer SDK topic Condition Table.
Information on conditional syntax can be found in the Windows Installer SDK topic Conditional Statement Syntax.
Related Articles
Change Installation State of a Feature, Based on Another Feature's Selection State 5Number of Views After Borrowing a License it does not Work as Expected 5Number of Views Create a Component Condition Based on a Feature Being Installed or Not 4Number of Views Deleting Oracle from Discovered devices does not work as expected. 4Number of Views Java API getServerTimeout is not Working as Expected 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago