topper_harley
Posts: 24
Joined: Fri Aug 24, 2007 1:13 pm

Plz explain "&Feature" and "!Feature"

Hi!

In conditions, there are variables like "&Feature" and "!Feature" for requesting a feature state. So I guess to validate them against msiInstallState-values (http://msdn2.microsoft.com/en-us/library/aa371662.aspx).

But why there are two of them and what's the difference between "&Feature" and "!Feature"?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

For example, if we have:

Code: Select all

(&FeatureName=3) AND NOT(!FeatureName=3)
The term "&FeatureName=3" means that the feature is set to be installed local and the term "NOT(!FeatureName=3)" means that the feature is not installed local.

Therefore "&" signifies the Action state of the feature (what the MSI will do) and "!" signifies the Installed state of the feature (whether the feature is already installed or not on the target machine).

You can read more about this here:
http://msdn2.microsoft.com/En-US/library/aa368012.aspx
http://msdn2.microsoft.com/En-US/library/aa368561.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
topper_harley
Posts: 24
Joined: Fri Aug 24, 2007 1:13 pm

Thank you very much. Now I understand. :)

Return to “Common Problems”