diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
| commit | 155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch) | |
| tree | 59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core.WindowsInstaller/Data | |
| parent | 6f1665ed759b31bd095f186f9239232c653597cd (diff) | |
| download | wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2 wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip | |
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Data')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Data/Xsd/actions.xsd | 73 | ||||
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Data/Xsd/tables.xsd | 248 |
2 files changed, 321 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Data/Xsd/actions.xsd b/src/WixToolset.Core.WindowsInstaller/Data/Xsd/actions.xsd new file mode 100644 index 00000000..bf0ccb95 --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/Data/Xsd/actions.xsd | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- 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. --> | ||
| 3 | |||
| 4 | |||
| 5 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
| 6 | targetNamespace="http://wixtoolset.org/schemas/v4/wi/actions" | ||
| 7 | xmlns="http://wixtoolset.org/schemas/v4/wi/actions"> | ||
| 8 | <xs:annotation> | ||
| 9 | <xs:documentation> | ||
| 10 | Schema for describing standard actions in the Windows Installer. | ||
| 11 | </xs:documentation> | ||
| 12 | </xs:annotation> | ||
| 13 | |||
| 14 | <xs:element name="actions"> | ||
| 15 | <xs:complexType> | ||
| 16 | <xs:sequence maxOccurs="unbounded"> | ||
| 17 | <xs:element ref="action" /> | ||
| 18 | </xs:sequence> | ||
| 19 | </xs:complexType> | ||
| 20 | </xs:element> | ||
| 21 | |||
| 22 | <xs:element name="action"> | ||
| 23 | <xs:complexType> | ||
| 24 | <xs:attribute name="name" type="xs:string" use="required"> | ||
| 25 | <xs:annotation> | ||
| 26 | <xs:documentation>Name of action</xs:documentation> | ||
| 27 | </xs:annotation> | ||
| 28 | </xs:attribute> | ||
| 29 | <xs:attribute name="condition" type="xs:string"> | ||
| 30 | <xs:annotation> | ||
| 31 | <xs:documentation>Default condition for action</xs:documentation> | ||
| 32 | </xs:annotation> | ||
| 33 | </xs:attribute> | ||
| 34 | <xs:attribute name="sequence" type="xs:integer" use="required"> | ||
| 35 | <xs:annotation> | ||
| 36 | <xs:documentation>Sequence of action</xs:documentation> | ||
| 37 | </xs:annotation> | ||
| 38 | </xs:attribute> | ||
| 39 | <xs:attribute name="AdminExecuteSequence" type="ActionsYesNoType"> | ||
| 40 | <xs:annotation> | ||
| 41 | <xs:documentation>Specifies if action is allowed in AdminExecuteSequence</xs:documentation> | ||
| 42 | </xs:annotation> | ||
| 43 | </xs:attribute> | ||
| 44 | <xs:attribute name="AdminUISequence" type="ActionsYesNoType"> | ||
| 45 | <xs:annotation> | ||
| 46 | <xs:documentation>Specifies if action is allowed in AdminUISequence</xs:documentation> | ||
| 47 | </xs:annotation> | ||
| 48 | </xs:attribute> | ||
| 49 | <xs:attribute name="AdvtExecuteSequence" type="ActionsYesNoType"> | ||
| 50 | <xs:annotation> | ||
| 51 | <xs:documentation>Specifies if action is allowed in AdvtExecuteSequence</xs:documentation> | ||
| 52 | </xs:annotation> | ||
| 53 | </xs:attribute> | ||
| 54 | <xs:attribute name="InstallExecuteSequence" type="ActionsYesNoType"> | ||
| 55 | <xs:annotation> | ||
| 56 | <xs:documentation>Specifies if action is allowed in InstallExecuteSequence</xs:documentation> | ||
| 57 | </xs:annotation> | ||
| 58 | </xs:attribute> | ||
| 59 | <xs:attribute name="InstallUISequence" type="ActionsYesNoType"> | ||
| 60 | <xs:annotation> | ||
| 61 | <xs:documentation>Specifies if action is allowed in InstallUISequence</xs:documentation> | ||
| 62 | </xs:annotation> | ||
| 63 | </xs:attribute> | ||
| 64 | </xs:complexType> | ||
| 65 | </xs:element> | ||
| 66 | |||
| 67 | <xs:simpleType name="ActionsYesNoType"> | ||
| 68 | <xs:restriction base="xs:NMTOKEN"> | ||
| 69 | <xs:enumeration value="no" /> | ||
| 70 | <xs:enumeration value="yes" /> | ||
| 71 | </xs:restriction> | ||
| 72 | </xs:simpleType> | ||
| 73 | </xs:schema> | ||
diff --git a/src/WixToolset.Core.WindowsInstaller/Data/Xsd/tables.xsd b/src/WixToolset.Core.WindowsInstaller/Data/Xsd/tables.xsd new file mode 100644 index 00000000..f87471bb --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/Data/Xsd/tables.xsd | |||
| @@ -0,0 +1,248 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- 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. --> | ||
| 3 | |||
| 4 | |||
| 5 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
| 6 | targetNamespace="http://wixtoolset.org/schemas/v4/wi/tables" | ||
| 7 | xmlns="http://wixtoolset.org/schemas/v4/wi/tables"> | ||
| 8 | <xs:annotation> | ||
| 9 | <xs:documentation> | ||
| 10 | Schema for describing table definitions in Windows Installer. | ||
| 11 | </xs:documentation> | ||
| 12 | </xs:annotation> | ||
| 13 | |||
| 14 | <xs:element name="tableDefinitions"> | ||
| 15 | <xs:complexType> | ||
| 16 | <xs:sequence maxOccurs="unbounded"> | ||
| 17 | <xs:element ref="tableDefinition" /> | ||
| 18 | </xs:sequence> | ||
| 19 | </xs:complexType> | ||
| 20 | </xs:element> | ||
| 21 | |||
| 22 | <xs:element name="tableDefinition"> | ||
| 23 | <xs:complexType> | ||
| 24 | <xs:sequence maxOccurs="unbounded"> | ||
| 25 | <xs:element ref="columnDefinition" /> | ||
| 26 | </xs:sequence> | ||
| 27 | <xs:attribute name="createSymbols" type="TablesYesNoType"> | ||
| 28 | <xs:annotation> | ||
| 29 | <xs:documentation>Boolean whether rows in this table create symbols</xs:documentation> | ||
| 30 | </xs:annotation> | ||
| 31 | </xs:attribute> | ||
| 32 | <xs:attribute name="name" type="NameType" use="required"> | ||
| 33 | <xs:annotation> | ||
| 34 | <xs:documentation>Name of table in Windows Installer database</xs:documentation> | ||
| 35 | </xs:annotation> | ||
| 36 | </xs:attribute> | ||
| 37 | <xs:attribute name="unreal" type="TablesYesNoType"> | ||
| 38 | <xs:annotation> | ||
| 39 | <xs:documentation>Specifies if table is virtual or not</xs:documentation> | ||
| 40 | </xs:annotation> | ||
| 41 | </xs:attribute> | ||
| 42 | <xs:attribute name="bootstrapperApplicationData" type="TablesYesNoType"> | ||
| 43 | <xs:annotation> | ||
| 44 | <xs:documentation>Specifies if the table is a part of the Bootstrapper Application Data manifest</xs:documentation> | ||
| 45 | </xs:annotation> | ||
| 46 | </xs:attribute> | ||
| 47 | </xs:complexType> | ||
| 48 | </xs:element> | ||
| 49 | |||
| 50 | <xs:element name="columnDefinition"> | ||
| 51 | <xs:complexType> | ||
| 52 | <xs:attribute name="name" type="NameType" use="required"> | ||
| 53 | <xs:annotation> | ||
| 54 | <xs:documentation>Name of column in Windows Installer table</xs:documentation> | ||
| 55 | </xs:annotation> | ||
| 56 | </xs:attribute> | ||
| 57 | |||
| 58 | <xs:attribute name="added" type="TablesYesNoType"> | ||
| 59 | <xs:annotation> | ||
| 60 | <xs:documentation>Whether this column was added by a transform.</xs:documentation> | ||
| 61 | </xs:annotation> | ||
| 62 | </xs:attribute> | ||
| 63 | |||
| 64 | <xs:attribute name="type" type="ColumnDefinitionType" use="required"> | ||
| 65 | <xs:annotation> | ||
| 66 | <xs:documentation>Type of column in Windows Installer table</xs:documentation> | ||
| 67 | </xs:annotation> | ||
| 68 | </xs:attribute> | ||
| 69 | |||
| 70 | <xs:attribute name="length" use="required"> | ||
| 71 | <xs:annotation> | ||
| 72 | <xs:documentation>Type of column in Windows Installer table</xs:documentation> | ||
| 73 | </xs:annotation> | ||
| 74 | <xs:simpleType> | ||
| 75 | <xs:restriction base="xs:integer"> | ||
| 76 | <xs:minInclusive value="0" /> | ||
| 77 | <xs:maxInclusive value="255" /> | ||
| 78 | </xs:restriction> | ||
| 79 | </xs:simpleType> | ||
| 80 | </xs:attribute> | ||
| 81 | |||
| 82 | <xs:attribute name="primaryKey" type="TablesYesNoType"> | ||
| 83 | <xs:annotation> | ||
| 84 | <xs:documentation>Boolean whether column is primary key of Windows Installer table</xs:documentation> | ||
| 85 | </xs:annotation> | ||
| 86 | </xs:attribute> | ||
| 87 | |||
| 88 | <xs:attribute name="nullable" type="TablesYesNoType"> | ||
| 89 | <xs:annotation> | ||
| 90 | <xs:documentation>Boolean whether column is nullable in Windows Installer table</xs:documentation> | ||
| 91 | </xs:annotation> | ||
| 92 | </xs:attribute> | ||
| 93 | |||
| 94 | <xs:attribute name="unreal" type="TablesYesNoType"> | ||
| 95 | <xs:annotation> | ||
| 96 | <xs:documentation>Boolean whether column is virtual in Windows Installer table</xs:documentation> | ||
| 97 | </xs:annotation> | ||
| 98 | </xs:attribute> | ||
| 99 | |||
| 100 | <xs:attribute name="modularize" type="TablesModularizeType"> | ||
| 101 | <xs:annotation> | ||
| 102 | <xs:documentation>Enumeration specifying how column should have the ModuleId appended</xs:documentation> | ||
| 103 | </xs:annotation> | ||
| 104 | </xs:attribute> | ||
| 105 | |||
| 106 | <xs:attribute name="localizable" type="TablesYesNoType"> | ||
| 107 | <xs:annotation> | ||
| 108 | <xs:documentation>Set to "yes" in order to allow substitution for localized variables.</xs:documentation> | ||
| 109 | </xs:annotation> | ||
| 110 | </xs:attribute> | ||
| 111 | |||
| 112 | <xs:attribute name="minValue" type="xs:long"> | ||
| 113 | <xs:annotation> | ||
| 114 | <xs:documentation>Minimum value for column in Windows Installer table</xs:documentation> | ||
| 115 | </xs:annotation> | ||
| 116 | </xs:attribute> | ||
| 117 | |||
| 118 | <xs:attribute name="maxValue" type="xs:long"> | ||
| 119 | <xs:annotation> | ||
| 120 | <xs:documentation>Maximum value for column in Windows Installer table</xs:documentation> | ||
| 121 | </xs:annotation> | ||
| 122 | </xs:attribute> | ||
| 123 | |||
| 124 | <xs:attribute name="keyTable" type="NameType"> | ||
| 125 | <xs:annotation> | ||
| 126 | <xs:documentation>Foreign key table for column in Windows Installer table</xs:documentation> | ||
| 127 | </xs:annotation> | ||
| 128 | </xs:attribute> | ||
| 129 | |||
| 130 | <xs:attribute name="keyColumn"> | ||
| 131 | <xs:annotation> | ||
| 132 | <xs:documentation>Maximum value for column in Windows Installer table</xs:documentation> | ||
| 133 | </xs:annotation> | ||
| 134 | <xs:simpleType> | ||
| 135 | <xs:restriction base="xs:integer"> | ||
| 136 | <xs:minInclusive value="1" /> | ||
| 137 | <xs:maxInclusive value="32" /> | ||
| 138 | </xs:restriction> | ||
| 139 | </xs:simpleType> | ||
| 140 | </xs:attribute> | ||
| 141 | |||
| 142 | <xs:attribute name="category" type="TablesCategoryType"> | ||
| 143 | <xs:annotation> | ||
| 144 | <xs:documentation>Specific column data types for column</xs:documentation> | ||
| 145 | </xs:annotation> | ||
| 146 | </xs:attribute> | ||
| 147 | |||
| 148 | <xs:attribute name="set" type="TablesSetType"> | ||
| 149 | <xs:annotation> | ||
| 150 | <xs:documentation>List of permissible values for the column</xs:documentation> | ||
| 151 | </xs:annotation> | ||
| 152 | </xs:attribute> | ||
| 153 | |||
| 154 | <xs:attribute name="description" type="xs:string"> | ||
| 155 | <xs:annotation> | ||
| 156 | <xs:documentation>Description of column</xs:documentation> | ||
| 157 | </xs:annotation> | ||
| 158 | </xs:attribute> | ||
| 159 | |||
| 160 | <xs:attribute name="escapeIdtCharacters" type="TablesYesNoType"> | ||
| 161 | <xs:annotation> | ||
| 162 | <xs:documentation>Set to "yes" in order to make the idt exporter escape whitespace characters \r, \n, and \t.</xs:documentation> | ||
| 163 | </xs:annotation> | ||
| 164 | </xs:attribute> | ||
| 165 | |||
| 166 | <xs:attribute name="useCData" type="TablesYesNoType"> | ||
| 167 | <xs:annotation> | ||
| 168 | <xs:documentation>Set to "yes" in order to make the Intermediate and Output objects wrap their data in a CDATA element to preserve whitespace.</xs:documentation> | ||
| 169 | </xs:annotation> | ||
| 170 | </xs:attribute> | ||
| 171 | </xs:complexType> | ||
| 172 | </xs:element> | ||
| 173 | |||
| 174 | <xs:simpleType name="NameType"> | ||
| 175 | <xs:restriction base="xs:string"> | ||
| 176 | <xs:minLength value="1" /> | ||
| 177 | <xs:maxLength value="64" /> | ||
| 178 | </xs:restriction> | ||
| 179 | </xs:simpleType> | ||
| 180 | |||
| 181 | <xs:simpleType name="ColumnDefinitionType"> | ||
| 182 | <xs:restriction base="xs:NMTOKEN"> | ||
| 183 | <xs:enumeration value="string" /> | ||
| 184 | <xs:enumeration value="localized" /> | ||
| 185 | <xs:enumeration value="number" /> | ||
| 186 | <xs:enumeration value="object" /> | ||
| 187 | <xs:enumeration value="preserved" /> | ||
| 188 | </xs:restriction> | ||
| 189 | </xs:simpleType> | ||
| 190 | |||
| 191 | <xs:simpleType name="TablesYesNoType"> | ||
| 192 | <xs:restriction base="xs:NMTOKEN"> | ||
| 193 | <xs:enumeration value="yes" /> | ||
| 194 | <xs:enumeration value="no" /> | ||
| 195 | </xs:restriction> | ||
| 196 | </xs:simpleType> | ||
| 197 | |||
| 198 | <xs:simpleType name="TablesModularizeType"> | ||
| 199 | <xs:restriction base="xs:NMTOKEN"> | ||
| 200 | <xs:enumeration value="column" /> | ||
| 201 | <xs:enumeration value="companionFile" /> | ||
| 202 | <xs:enumeration value="condition" /> | ||
| 203 | <xs:enumeration value="controlEventArgument" /> | ||
| 204 | <xs:enumeration value="controlText" /> | ||
| 205 | <xs:enumeration value="icon" /> | ||
| 206 | <xs:enumeration value="none" /> | ||
| 207 | <xs:enumeration value="property" /> | ||
| 208 | <xs:enumeration value="semicolonDelimited" /> | ||
| 209 | </xs:restriction> | ||
| 210 | </xs:simpleType> | ||
| 211 | |||
| 212 | <xs:simpleType name="TablesCategoryType"> | ||
| 213 | <xs:restriction base="xs:NMTOKEN"> | ||
| 214 | <xs:enumeration value="text" /> | ||
| 215 | <xs:enumeration value="upperCase" /> | ||
| 216 | <xs:enumeration value="lowerCase" /> | ||
| 217 | <xs:enumeration value="integer" /> | ||
| 218 | <xs:enumeration value="doubleInteger" /> | ||
| 219 | <xs:enumeration value="timeDate" /> | ||
| 220 | <xs:enumeration value="identifier" /> | ||
| 221 | <xs:enumeration value="property" /> | ||
| 222 | <xs:enumeration value="filename" /> | ||
| 223 | <xs:enumeration value="wildCardFilename" /> | ||
| 224 | <xs:enumeration value="path" /> | ||
| 225 | <xs:enumeration value="paths" /> | ||
| 226 | <xs:enumeration value="anyPath" /> | ||
| 227 | <xs:enumeration value="defaultDir" /> | ||
| 228 | <xs:enumeration value="regPath" /> | ||
| 229 | <xs:enumeration value="formatted" /> | ||
| 230 | <xs:enumeration value="formattedSddl" /> | ||
| 231 | <xs:enumeration value="template" /> | ||
| 232 | <xs:enumeration value="condition" /> | ||
| 233 | <xs:enumeration value="guid" /> | ||
| 234 | <xs:enumeration value="version" /> | ||
| 235 | <xs:enumeration value="language" /> | ||
| 236 | <xs:enumeration value="binary" /> | ||
| 237 | <xs:enumeration value="customSource" /> | ||
| 238 | <xs:enumeration value="cabinet" /> | ||
| 239 | <xs:enumeration value="shortcut" /> | ||
| 240 | </xs:restriction> | ||
| 241 | </xs:simpleType> | ||
| 242 | |||
| 243 | <xs:simpleType name="TablesSetType"> | ||
| 244 | <xs:restriction base="xs:string"> | ||
| 245 | <xs:pattern value="\w+(;\w+)*" /> | ||
| 246 | </xs:restriction> | ||
| 247 | </xs:simpleType> | ||
| 248 | </xs:schema> | ||
