aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WindowsInstaller/Xsd/data.xsd
blob: a3dc7e2b410c4dae33f42f66b7053e68dca7c92c (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
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://wixtoolset.org/schemas/v4/windowsinstallerdata"
              xmlns="http://wixtoolset.org/schemas/v4/windowsinstallerdata"
         xmlns:objs="http://wixtoolset.org/schemas/v4/wixobj"
         xmlns:tbls="http://wixtoolset.org/schemas/v4/wi/tables">
    <xs:annotation>
        <xs:documentation>
            Schema for describing WiX Windows Installer Data files.
        </xs:documentation>
    </xs:annotation>

    <xs:import namespace="http://wixtoolset.org/schemas/v4/wixobj" schemaLocation="objects.xsd" />
    <xs:import namespace="http://wixtoolset.org/schemas/v4/wi/tables" schemaLocation="tables.xsd" />

    <xs:element name="windowsInstallerData">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="tbls:tableDefinitions" />
                <xs:element ref="objs:table" maxOccurs="unbounded" />
                <xs:element ref="subStorage" minOccurs="0" maxOccurs="unbounded" />
            </xs:sequence>
            <xs:attribute name="codepage" type="xs:unsignedInt">
                <xs:annotation>
                    <xs:documentation>Codepage of the output.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="type" use="required">
                <xs:annotation>
                    <xs:documentation>Type of the output.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN">
                        <xs:enumeration value="Bundle" />
                        <xs:enumeration value="Module" />
                        <xs:enumeration value="Patch" />
                        <xs:enumeration value="PatchCreation" />
                        <xs:enumeration value="Product" />
                        <xs:enumeration value="Transform" />
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="version" type="xs:string" use="required">
                <xs:annotation>
                    <xs:documentation>Version of WiX used to create this output file.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
        </xs:complexType>
    </xs:element>

    <xs:element name="subStorage">
        <xs:complexType>
            <xs:sequence minOccurs="1" maxOccurs="1">
                <xs:element ref="windowsInstallerData" />
            </xs:sequence>
            <xs:attribute name="name" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Name of the substorage.</xs:documentation>
                </xs:annotation>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
</xs:schema>