discoveryHint Element

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

The discoveryHint element contains one of three possible child elements that define the criteria to use to determine whether a product is already installed on the client computer. The child elements can define a registry key value, file version, or MSI file product code. An entry element can contain more than one discoveryHint elements, and elements can be nested using and and or elements. When nested using an and element, each nested discoveryHint condition must be met for the Web PI to determine that the product is installed. When they are nested with or, only one of the nested conditions must be met.

Schema Hierarchy

feed Element
  registry Element

Syntax

<discoveryHint>
  <or>
    <discoveryHint>
      <msiProductCode>{C536BAE4-69AD-4E27-9D87-74DDAD231B7B}</msiProductCode>
    </discoveryHint>
    <discoveryHint>
      <msiProductCode>{E36EE103-D2AA-41AD-81C4-0117A45B95AE}</msiProductCode>
    </discoveryHint>
  </or>
</discoveryHint>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

registry

Optional. Contains a keyPath and valueName child elements that define a registry key and value that is used to determine whether an application is already installed on the client computer.

file

Optional. Contains child elements that define a file on the client computer to examine to determine whether an application is already installed.

msiProductCode

Optional. Indicates that the version of an MSI file is examined to determine whether an application is installed on the client computer.

or

Optional. Contains child discoveryHint elements. The values of the child discoveryHint elements are used to determine whether the application is already installed. The application is already installed if the Web PI discovers the file, version, or registry key value defined in any of the child discoveryHint elements.

and

Optional. Contains child discoveryHint elements. The values of the child discoveryHint elements are used to determine whether the application is already installed. The application is already installed if the Web PI discovers all of the criteria defined in the child discoveryHint elements.

Parent Elements

Element Description

entry

Contains child elements that define information about an application displayed in the Web PI interface.