aboutsummaryrefslogtreecommitdiff
path: root/src/xsd/ps.xsd
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2025-02-14 12:53:59 -0800
committerRob Mensching <rob@firegiant.com>2025-03-18 15:55:06 -0700
commit777b28beb32b2013e9feb77a9a18af397265f4ba (patch)
treea4700ebafdb4ad80be301a6814a490e7b189b202 /src/xsd/ps.xsd
parent1f48dfeb5bc15bb9d3e90ac6b236dbff77819561 (diff)
downloadwix-777b28beb32b2013e9feb77a9a18af397265f4ba.tar.gz
wix-777b28beb32b2013e9feb77a9a18af397265f4ba.tar.bz2
wix-777b28beb32b2013e9feb77a9a18af397265f4ba.zip
Migrate XSDs from web project
This is the new home for the XSDs. Closer to the code to hopefully be kept better up to date as changes happen to the language.
Diffstat (limited to 'src/xsd/ps.xsd')
-rw-r--r--src/xsd/ps.xsd227
1 files changed, 227 insertions, 0 deletions
diff --git a/src/xsd/ps.xsd b/src/xsd/ps.xsd
new file mode 100644
index 00000000..fce957d8
--- /dev/null
+++ b/src/xsd/ps.xsd
@@ -0,0 +1,227 @@
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 xmlns:xse="http://wixtoolset.org/schemas/XmlSchemaExtension"
7 xmlns:html="http://www.w3.org/1999/xhtml"
8 xmlns:wxs="http://wixtoolset.org/schemas/v4/wxs"
9 targetNamespace="http://wixtoolset.org/schemas/v4/wxs/powershell"
10 xmlns="http://wixtoolset.org/schemas/v4/wxs/powershell">
11 <xs:annotation>
12 <xs:documentation>
13 The source code schema for the WiX Toolset PowerShell Extension.
14 </xs:documentation>
15 </xs:annotation>
16
17 <xs:import namespace="http://wixtoolset.org/schemas/v4/wxs" />
18
19 <xs:element name="FormatsFile">
20 <xs:annotation>
21 <xs:documentation>
22 Identifies the parent File as a formats XML file for the referenced PowerShell snap-in.
23 </xs:documentation>
24 <xs:appinfo>
25 <xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="File" />
26 <xse:remarks>
27 A formats XML file that defines output formats for objects on the pipeline.
28 </xse:remarks>
29 </xs:appinfo>
30 </xs:annotation>
31 <xs:complexType>
32 <xs:choice minOccurs="0" maxOccurs="unbounded">
33 <xs:any namespace="##other" processContents="lax">
34 <xs:annotation>
35 <xs:documentation>
36 Extensibility point in the WiX XML Schema. Schema extensions can register additional
37 elements at this point in the schema.
38 </xs:documentation>
39 </xs:annotation>
40 </xs:any>
41 </xs:choice>
42 <xs:attribute name="FileId" type="xs:string">
43 <xs:annotation>
44 <xs:documentation>
45 Reference to the formats File ID. This is required when nested under the SnapIn element.
46 </xs:documentation>
47 </xs:annotation>
48 </xs:attribute>
49 <xs:attribute name="SnapIn" type="xs:string">
50 <xs:annotation>
51 <xs:documentation>
52 Reference to the PowerShell snap-in ID for which this formats file is associated. This is required when nested under the File element.
53 </xs:documentation>
54 </xs:annotation>
55 </xs:attribute>
56 <xs:anyAttribute namespace="##other" processContents="lax">
57 <xs:annotation>
58 <xs:documentation>
59 Extensibility point in the WiX XML Schema. Schema extensions can register additional
60 attributes at this point in the schema.
61 </xs:documentation>
62 </xs:annotation>
63 </xs:anyAttribute>
64 </xs:complexType>
65 </xs:element>
66
67 <xs:element name="TypesFile">
68 <xs:annotation>
69 <xs:documentation>
70 Identifies the parent File as a types XML file for the referenced PowerShell snap-in.
71 </xs:documentation>
72 <xs:appinfo>
73 <xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="File" />
74 <xse:remarks>
75 A types XML file used by the extensible type system.
76 </xse:remarks>
77 </xs:appinfo>
78 </xs:annotation>
79 <xs:complexType>
80 <xs:choice minOccurs="0" maxOccurs="unbounded">
81 <xs:any namespace="##other" processContents="lax">
82 <xs:annotation>
83 <xs:documentation>
84 Extensibility point in the WiX XML Schema. Schema extensions can register additional
85 elements at this point in the schema.
86 </xs:documentation>
87 </xs:annotation>
88 </xs:any>
89 </xs:choice>
90 <xs:attribute name="FileId" type="xs:string">
91 <xs:annotation>
92 <xs:documentation>
93 Reference to the types File ID. This is required when nested under the SnapIn element.
94 </xs:documentation>
95 </xs:annotation>
96 </xs:attribute>
97 <xs:attribute name="SnapIn" type="xs:string">
98 <xs:annotation>
99 <xs:documentation>
100 Reference to the PowerShell snap-in ID for which this types file is associated. This is required when nested under the File element.
101 </xs:documentation>
102 </xs:annotation>
103 </xs:attribute>
104 <xs:anyAttribute namespace="##other" processContents="lax">
105 <xs:annotation>
106 <xs:documentation>
107 Extensibility point in the WiX XML Schema. Schema extensions can register additional
108 attributes at this point in the schema.
109 </xs:documentation>
110 </xs:annotation>
111 </xs:anyAttribute>
112 </xs:complexType>
113 </xs:element>
114
115 <xs:element name="SnapIn">
116 <xs:annotation>
117 <xs:documentation>
118 Identifies the parent File as a PowerShell snap-in to be registered on the system.
119 </xs:documentation>
120 <xs:appinfo>
121 <xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="File" />
122 <xse:remarks>
123 [PowerShell](http://www.microsoft.com/powershell) snap-ins allow developers to
124 extend the functionality of of the PowerShell engine. Add this element to identify
125 the parent File as a PowerShell snap-in that will get registered on the system.
126 </xse:remarks>
127 </xs:appinfo>
128 </xs:annotation>
129 <xs:complexType>
130 <xs:choice minOccurs="0" maxOccurs="unbounded">
131 <xs:element ref="FormatsFile" />
132 <xs:element ref="TypesFile" />
133 <xs:any namespace="##other" processContents="lax">
134 <xs:annotation>
135 <xs:documentation>
136 Extensibility point in the WiX XML Schema. Schema extensions can register additional
137 elements at this point in the schema.
138 </xs:documentation>
139 </xs:annotation>
140 </xs:any>
141 </xs:choice>
142 <xs:attribute name="Id" type="xs:string" use="required">
143 <xs:annotation>
144 <xs:documentation>
145 The identifier for this PowerShell snap-in.
146 </xs:documentation>
147 </xs:annotation>
148 </xs:attribute>
149 <xs:attribute name="CustomSnapInType" type="xs:string">
150 <xs:annotation>
151 <xs:documentation>
152 The full type name of a class that is used to register a list of cmdlets and providers.
153 </xs:documentation>
154 </xs:annotation>
155 </xs:attribute>
156 <xs:attribute name="Description" type="xs:string">
157 <xs:annotation>
158 <xs:documentation>
159 A brief description of the snap-in.
160 </xs:documentation>
161 </xs:annotation>
162 </xs:attribute>
163 <xs:attribute name="DescriptionIndirect" type="EmbeddedResource">
164 <xs:annotation>
165 <xs:documentation>
166 An embedded resource that contains a brief description of the snap-in.
167 This resource must be embedded in the current snap-in assembly.
168 </xs:documentation>
169 </xs:annotation>
170 </xs:attribute>
171 <xs:attribute name="RequiredPowerShellVersion" type="wxs:VersionType">
172 <xs:annotation>
173 <xs:documentation>
174 The required version of PowerShell that must be installed and is associated with the
175 snap-in registration. The default value is "1.0".
176 </xs:documentation>
177 </xs:annotation>
178 </xs:attribute>
179 <xs:attribute name="Vendor" type="xs:string">
180 <xs:annotation>
181 <xs:documentation>
182 The name of the snap-in vendor.
183 </xs:documentation>
184 </xs:annotation>
185 </xs:attribute>
186 <xs:attribute name="VendorIndirect" type="EmbeddedResource">
187 <xs:annotation>
188 <xs:documentation>
189 An embedded resource that contains the name of the snap-in vendor.
190 This resource must be embedded in the current snap-in assembly.
191 </xs:documentation>
192 </xs:annotation>
193 </xs:attribute>
194 <xs:attribute name="Version" type="wxs:VersionType">
195 <xs:annotation>
196 <xs:documentation>
197 The version of the snapin. If not specified, this is taken from the assembly name.
198 </xs:documentation>
199 </xs:annotation>
200 </xs:attribute>
201 <xs:anyAttribute namespace="##other" processContents="lax">
202 <xs:annotation>
203 <xs:documentation>
204 Extensibility point in the WiX XML Schema. Schema extensions can register additional
205 attributes at this point in the schema.
206 </xs:documentation>
207 </xs:annotation>
208 </xs:anyAttribute>
209 </xs:complexType>
210 </xs:element>
211
212 <xs:simpleType name="EmbeddedResource">
213 <xs:annotation>
214 <xs:documentation>
215 <html:p>
216 Values should be in the format *ResourceName,StringName*, where *ResourceName*
217 is the name of the embedded resource in your assembly sans the ".resources" extension, and *StringName*
218 is the name of the string resource in the embedded resource.
219 </html:p>
220 <html:p>
221 Example: UtilityMshSnapInResources,Description
222 </html:p>
223 </xs:documentation>
224 </xs:annotation>
225 <xs:restriction base="xs:string" />
226 </xs:simpleType>
227</xs:schema>