Freigeben über


SMS_TaskSequence_SoftwareConditionExpression Server WMI Class

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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;
};

Methods

The SMS_TaskSequence_SoftwareConditionExpression class does not define any methods.

Properties

  • Operator
    Data type: String

    Access type: Read/Write

    Qualifiers: [Not_Null]

    The condition operator to use for the comparison. Possible values are:

    • AnyVersion

    • ThisVersion

  • ProductCode
    Data type: String

    Access type: Read/Write

    Qualifiers: [Not_Null]

    The Windows Installer package product code to be compared.

  • ProductName
    Data type: String

    Access type: Read/Write

    Qualifiers: None

    The product name.

  • UpgradeCode
    Data type: String

    Access type: Read/Write

    Qualifiers: None

    The upgrade code for the product to be compared.

Remarks

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.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

Operating System Deployment Server WMI Classes
Configuration Manager Operating System Deployment
About Operating System Deployment Task Sequences
How to Create an Operating System Deployment Task Sequence
How to Add a Condition to an Operating System Deployment Task Sequence Step