The SMS_TaskSequence_SoftwareConditionExpression Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a condition expression to verify if a specified product is installed on the destination computer. If the software exists, the action is run; otherwise it is not run.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_TaskSequence_SoftwareConditionExpression : SMS_TaskSequence_ConditionExpression
	String Operator;
	String ProductCode;
	String ProductName;
	String UpgradeCode;
	String Version


The SMS_TaskSequence_SoftwareConditionExpression class does not define any methods.



Data type: StringAccess type: Read/WriteQualifiers: [Not_Null]The condition operator to use for the comparison. Possible values are:
  • AnyVersion

  • ThisVersion


Data type: StringAccess type: Read/WriteQualifiers: [Not_Null]The Windows Installer package product code to be compared.

Data type: StringAccess type: Read/WriteQualifiers: NoneThe product name.

Data type: StringAccess type: Read/WriteQualifiers: NoneThe upgrade code for the product to be compared.

Data type: StringAccess type: Read/WriteQualifiers: NoneVersion …  


There are no class qualifiers for this class. For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Using this condition, you can do the following:

Check for the existence of a specific product.

  • Operator should be ThisVersion.

  • ProductCode should the product code.

Check for existence of a product family.

  • Operator should be AnyVersion

  • UpgradeCode should be the upgrade code.

Either the product code or upgrade code must be specified, otherwise an error will occur.

The software on the destination computer must be installed using a Windows Installer package for this expression to work. In usage, the class properties are obtained from the Windows Installer package of the software that is to be compared against. For more information, see Windows Installer.


Runtime Requirements

Development Requirements

See Also