aboutsummaryrefslogtreecommitdiff
path: root/src/xsd/util/ComponentSearch.xsd
blob: f076b48b805cfc719e703aa7f28dde9799cfde54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<element name="ComponentSearch">
    <annotation>
      <documentation>Describes a component search.</documentation>
      <appinfo>
        <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Bundle" />
        <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Fragment" />
      </appinfo>
    </annotation>
    <complexType>
      <choice minOccurs="0" maxOccurs="unbounded">
        <any namespace="##other" processContents="lax">
          <annotation>
            <documentation>
              Extensibility point in the WiX XML Schema. Schema extensions can register additional
              elements at this point in the schema.
            </documentation>
          </annotation>
        </any>
      </choice>
      <attributeGroup ref="SearchCommonAttributes" />
      <attribute name="Guid" type="xs:string" use="required">
        <annotation>
          <documentation>Component to search for.</documentation>
        </annotation>
      </attribute>
      <attribute name="ProductCode" type="xs:string">
        <annotation>
          <documentation>Optional ProductCode to determine if the component is installed.</documentation>
        </annotation>
      </attribute>
      <attribute name="Result">
        <annotation>
          <documentation>
            Rather than saving the matching key path into the variable, a ComponentSearch can save an attribute of the component instead.
          </documentation>
        </annotation>
        <simpleType>
          <restriction base="xs:NMTOKEN">
            <enumeration value="directory">
              <annotation>
                <documentation>Saves the parent directory for the component's file key path; other types of key path are returned unmodified.</documentation>
              </annotation>
            </enumeration>
            <enumeration value="keyPath">
              <annotation>
                <documentation>Saves the key path of the component if installed. This is the default.</documentation>
              </annotation>
            </enumeration>
            <enumeration value="state">
              <annotation>
                <documentation>Saves the state of the component: absent (2), locally installed (3), will run from source (4), or installed in default location (either local or from source) (5)</documentation>
              </annotation>
            </enumeration>
          </restriction>
        </simpleType>
      </attribute>
      <anyAttribute namespace="##other" processContents="lax">
        <annotation>
          <documentation>
            Extensibility point in the WiX XML Schema. Schema extensions can register additional
            attributes at this point in the schema.
          </documentation>
        </annotation>
      </anyAttribute>
    </complexType>
  </element>