MsiApplicabilityRules Schema

 

Applies To: Windows Server Update Services

Types

The MsiApplicabilityRules Schema defines the following types in the https://schemas.microsoft.com/msus/2002/12/MsiApplicabilityRules target namespace. It references types from the BaseTypes Schema , the CSAPI Update Schema and the PatchApplicability Schema.

MsiProductInstalled

Checks that the specified product is installed. Only the ProductCode is required, but the other attributes will be checked if they are supplied.

<element name="MsiProductInstalled" substitutionGroup="upd:ApplicabilityRuleElement">  
    <annotation>  
      <documentation>Checks that the specified product is installed. Only the ProductCode is required, but the other attributes will be checked if they are supplied.</documentation>  
    </annotation>  
    <complexType>  
      <attribute name="ProductCode" type="mspblob:GUID" use="required">  
        <annotation>  
          <documentation>Windows Installer product code for the product to be checked.</documentation>  
        </annotation>  
      </attribute>  
      <attribute name="VersionMax" type="mspblob:Version" use="optional">  
        <annotation>  
          <documentation>If present, this specified the maximum version of the product. If not present, there is no maximum version filter.</documentation>  
        </annotation>  
      </attribute>  
      <attribute name="ExcludeVersionMax" type="boolean" use="optional" default="false">  
        <annotation>  
          <documentation>This is only valid if VersionMax is specified. If set to true, the value in VersionMax is not considered a valid version for this check. If set to false, VersionMax is valid.</documentation>  
        </annotation>  
      </attribute>  
      <attribute name="VersionMin" type="mspblob:Version" use="optional">  
        <annotation>  
          <documentation>If present, this specified the minimum version of the product. If not present, there is no minimum version filter.</documentation>  
        </annotation>  
      </attribute>  
      <attribute name="ExcludeVersionMin" type="boolean" use="optional" default="false">  
        <annotation>  
          <documentation>This is only valid if VersionMin is specified. If set to true, the value in VersionMin is not considered a valid version for this check. If set to false, VersionMin is valid.</documentation>  
        </annotation>  
      </attribute>  
      <attribute name="Language" type="int" use="optional">  
        <annotation>  
          <documentation>If present, specifies the language to be filtered on. If not present, all languages are considered valid.</documentation>  
        </annotation>  
      </attribute>  
    </complexType>  
  </element>  

MsiFeatureInstalledForProduct

Checks that the specified feature(s) are installed for one (optionally all) of the specified products.

<element name="MsiFeatureInstalledForProduct" substitutionGroup="upd:ApplicabilityRuleElement">  
    <complexType>  
      <sequence>  
        <element name="Feature" type="bt:MsiFeatureName" minOccurs="1" maxOccurs="unbounded" />  
        <element name="Product" type="mspblob:GUID" minOccurs="1" maxOccurs="unbounded" />  
      </sequence>  
      <attribute name="AllFeaturesRequired" type="boolean" use="optional" default="false" />  
      <attribute name="AllProductsRequired" type="boolean" use="optional" default="false" />  
    </complexType>  
  </element>  

MsiComponentInstalledForProduct

Checks that the specified component(s) are installed for one (optionally all) of the specified products.

<element name="MsiComponentInstalledForProduct" substitutionGroup="upd:ApplicabilityRuleElement">  
  <complexType>  
    <sequence>  
      <element name="Component" type="bt:MsiComponentCode" minOccurs="1" maxOccurs="unbounded" />  
      <element name="Product" type="mspblob:GUID" minOccurs="1" maxOccurs="unbounded" />  
    </sequence>  
    <attribute name="AllComponentsRequired" type="boolean" use="optional" default="false" />  
    <attribute name="AllProductsRequired" type="boolean" use="optional" default="false" />  
  </complexType>  
</element>  

MsiPatchInstalledForProduct

Checks that the specified patch is installed for the specified product.

<element name="MsiPatchInstalledForProduct" substitutionGroup="upd:ApplicabilityRuleElement">  
  <complexType>  
    <attribute name="PatchCode" type="mspblob:GUID" use="required">  
      <annotation>  
        <documentation>Windows Installer patch code for the patch whose install status is to be checked.</documentation>  
      </annotation>  
    </attribute>  
    <attribute name="ProductCode" type="mspblob:GUID" use="required">  
      <annotation>  
        <documentation>Windows Installer product code for the product to be checked.</documentation>  
      </annotation>  
    </attribute>  
    <attribute name="VersionMax" type="mspblob:Version" use="optional">  
      <annotation>  
        <documentation>If present, this specified the maximum version of the product. If not present, there is no maximum version filter.</documentation>  
      </annotation>  
    </attribute>  
    <attribute name="ExcludeVersionMax" type="boolean" use="optional" default="false">  
      <annotation>  
        <documentation>This is only valid if VersionMax is specified. If set to true, the value in VersionMax is not considered a valid version for this check. If set to false, VersionMax is valid.</documentation>  
      </annotation>  
    </attribute>  
    <attribute name="VersionMin" type="mspblob:Version" use="optional">  
      <annotation>  
        <documentation>If present, this specified the minimum version of the product. If not present, there is no minimum version filter.</documentation>  
      </annotation>  
    </attribute>  
    <attribute name="ExcludeVersionMin" type="boolean" use="optional" default="false">  
      <annotation>  
        <documentation>This is only valid if VersionMin is specified. If set to true, the value in VersionMin is not considered a valid version for this check. If set to false, VersionMin is valid.</documentation>  
      </annotation>  
    </attribute>  
    <attribute name="Language" type="int" use="optional">  
      <annotation>  
        <documentation>If present, specifies the language to be filtered on. If not present, all languages are considered valid.</documentation>  
      </annotation>  
    </attribute>  
  </complexType>  
</element>  

MsiPatchInstalled

Checks that the specified patch is installed. This rule uses the MSP metadata to perform the check.

<element name="MsiPatchInstalled" substitutionGroup="upd:ApplicabilityRuleElement">  
</element>  

MsiPatchSuperseded

Checks that the specified patch is superseded. This rule uses the MSP metadata to perform the check.

<element name="MsiPatchSuperseded" substitutionGroup="upd:ApplicabilityRuleElement">  
</element>  

MsiPatchInstallable

Checks that the specified patch is installable. This rule uses the MSP metadata to perform the check.

<element name="MsiPatchInstallable" substitutionGroup="upd:ApplicabilityRuleElement">  
</element>  

MsiApplicationInstalled

Checks that the specified application is installed. This rule uses the Windows Installer metadata to perform the check.

<element name="MsiApplicationInstalled" substitutionGroup="upd:ApplicabilityRuleElement">  
</element>  

MsiApplicationSuperseded

Checks that the specified application is superseded. This rule uses the Windows Installer metadata to perform the check.

<element name="MsiApplicationSuperseded" substitutionGroup="upd:ApplicabilityRuleElement">  
</element>  

MsiApplicationInstallable

Checks that the specified application is installable. This rule uses the Windows Installer metadata to perform the check.

<element name="MsiApplicationInstallable" substitutionGroup="upd:ApplicabilityRuleElement">  
</element>  

MsiPatchMetadataStuff

The metadata for an MSP (Windows Installer Patch). This metadata is used by the MsiPatchInstalled, MsiPatchSuperseded, and MsiPatchInstallable applicability rules.

<complexType name="MsiPatchMetadataStuff">  
  <sequence>  
    <element ref="mspblob:MsiPatch" />  
    <element name="FallbackPatchCode" type="mspblob:GUID" minOccurs="0" maxOccurs="1" />  
  </sequence>  
</complexType>  

MsiPatchMetadata

<element name="MsiPatchMetadata" substitutionGroup="upd:ApplicabilityMetadataElement" type="msiar:MsiPatchMetadataStuff"/>  

MsiApplicationMetadataStuff

The metadata for a Windows Installer Application. This metadata is used by the MsiApplicationInstalled, MsiApplicationSuperseded, and MsiApplicationInstallable applicability rules.

<complexType name="MsiApplicationMetadataStuff">  
    <sequence>  
      <element name="ProductCode" type="mspblob:GUID" minOccurs="1" maxOccurs="1"/>  
    </sequence>  
</complexType>  

MsiApplicationMetadata

<element name="MsiApplicationMetadata" substitutionGroup="upd:ApplicabilityMetadataElement" type="msiar:MsiApplicationMetadataStuff"/>