aboutsummaryrefslogtreecommitdiff
path: root/src/xsd/sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsd/sql')
-rw-r--r--src/xsd/sql/SqlDatabase.xsd126
-rw-r--r--src/xsd/sql/SqlFileSpec.xsd68
-rw-r--r--src/xsd/sql/SqlLogFileSpec.xsd68
-rw-r--r--src/xsd/sql/SqlScript.xsd88
-rw-r--r--src/xsd/sql/SqlString.xsd88
-rw-r--r--src/xsd/sql/ns.xsd7
-rw-r--r--src/xsd/sql/order.txt5
7 files changed, 450 insertions, 0 deletions
diff --git a/src/xsd/sql/SqlDatabase.xsd b/src/xsd/sql/SqlDatabase.xsd
new file mode 100644
index 00000000..b151645b
--- /dev/null
+++ b/src/xsd/sql/SqlDatabase.xsd
@@ -0,0 +1,126 @@
1<element name="SqlDatabase">
2 <annotation>
3 <appinfo>
4 <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Component" />
5 <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Fragment" />
6 <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Module" />
7 <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Package" />
8 <remarks>
9 Nesting SqlDatabase under a Component element will result in a SqlDatabase being installed to the machine as the package is installed.
10
11 Nesting SqlDatabase under Package, Fragment, or Module
12 results in a database "locator" record being created in
13 the SqlDatabase table. This means that the database
14 itself is neither installed nor uninstalled by the MSI
15 package. It does make the database available for referencing
16 from a SqlString or SqlScript record. This allows MSI to install
17 SqlScripts or SqlStrings to already existing databases on the machine.
18 The install will fail if the database does not exist in these cases.
19
20 The User attribute references credentials specified in a User element.
21 If a user is not specified then Windows Authentication will be used by default
22 using the credentials of the user performing the install to execute sql
23 strings, etc.
24 </remarks>
25 <seeAlso namespace="http://wixtoolset.org/schemas/v4/wxs/util" ref="User" />
26 </appinfo>
27 <documentation>SQL Database</documentation>
28 </annotation>
29 <complexType>
30 <choice minOccurs="0" maxOccurs="unbounded">
31 <element ref="SqlFileSpec" />
32 <element ref="SqlLogFileSpec" />
33 <element ref="SqlScript" />
34 <element ref="SqlString" />
35 <any namespace="##other" processContents="lax">
36 <annotation>
37 <documentation>
38 Extensibility point in the WiX XML Schema. Schema extensions can register additional
39 elements at this point in the schema.
40 </documentation>
41 </annotation>
42 </any>
43 </choice>
44 <attribute name="Id" type="xs:string">
45 <annotation>
46 <documentation>Unique identifier in your installation package for this database. If an Id is not provided, one will generated for you.</documentation>
47 </annotation>
48 </attribute>
49 <attribute name="Server" type="xs:string" use="required">
50 <annotation>
51 <documentation>Database server name.</documentation>
52 </annotation>
53 </attribute>
54 <attribute name="Instance" type="xs:string">
55 <annotation>
56 <documentation>Optional database server instance.</documentation>
57 </annotation>
58 </attribute>
59 <attribute name="Database" type="xs:string" use="required">
60 <annotation>
61 <documentation>
62 The name of the database. The value can be a literal value or derived from a
63 Property element using the [Formatted](https://learn.microsoft.com/en-us/windows/win32/msi/formatted)
64 syntax.
65 </documentation>
66 </annotation>
67 </attribute>
68 <attribute name="User" type="xs:string">
69 <annotation>
70 <documentation>Optional user used to connect to database.</documentation>
71 </annotation>
72 </attribute>
73 <attribute name="CreateOnInstall" type="wxs:YesNoTypeUnion">
74 <annotation>
75 <documentation>Create the database during installation.</documentation>
76 </annotation>
77 </attribute>
78 <attribute name="CreateOnReinstall" type="wxs:YesNoTypeUnion">
79 <annotation>
80 <documentation>
81 Specifies whether to create the database when the associated component is reinstalled. Setting CreateOnInstall to yes does <b>not</b> imply CreateOnReinstall is set to yes. CreateOnReinstall must be set in addition to CreateOnInstall for it to be created during both install and reinstall.
82 </documentation>
83 </annotation>
84 </attribute>
85 <attribute name="CreateOnUninstall" type="wxs:YesNoTypeUnion">
86 <annotation>
87 <documentation>Create the database during uninstallation.</documentation>
88 </annotation>
89 </attribute>
90 <attribute name="DropOnInstall" type="wxs:YesNoTypeUnion">
91 <annotation>
92 <documentation>Drop the database during installation.</documentation>
93 </annotation>
94 </attribute>
95 <attribute name="DropOnReinstall" type="wxs:YesNoTypeUnion">
96 <annotation>
97 <documentation>
98 Specifies whether to drop the database when the associated component is reinstalled. Setting DropOnInstall to yes does <b>not</b> imply DropOnReinstall is set to yes. DropOnReinstall must be set in addition to DropOnInstall for it to be dropped during both install and reinstall.
99 </documentation>
100 </annotation>
101 </attribute>
102 <attribute name="DropOnUninstall" type="wxs:YesNoTypeUnion">
103 <annotation>
104 <documentation>Drop the database during uninstallation.</documentation>
105 </annotation>
106 </attribute>
107 <attribute name="ContinueOnError" type="wxs:YesNoTypeUnion">
108 <annotation>
109 <documentation>Continue even if the database operation fails.</documentation>
110 </annotation>
111 </attribute>
112 <attribute name="ConfirmOverwrite" type="wxs:YesNoTypeUnion">
113 <annotation>
114 <documentation>Prompt the user to overwrite the database.</documentation>
115 </annotation>
116 </attribute>
117 <anyAttribute namespace="##other" processContents="lax">
118 <annotation>
119 <documentation>
120 Extensibility point in the WiX XML Schema. Schema extensions can register additional
121 attributes at this point in the schema.
122 </documentation>
123 </annotation>
124 </anyAttribute>
125 </complexType>
126 </element> \ No newline at end of file
diff --git a/src/xsd/sql/SqlFileSpec.xsd b/src/xsd/sql/SqlFileSpec.xsd
new file mode 100644
index 00000000..ad624ea4
--- /dev/null
+++ b/src/xsd/sql/SqlFileSpec.xsd
@@ -0,0 +1,68 @@
1<element name="SqlFileSpec">
2 <annotation>
3 <documentation>File specification for a Sql database.</documentation>
4 </annotation>
5 <complexType>
6 <choice minOccurs="0" maxOccurs="unbounded">
7 <any namespace="##other" processContents="lax">
8 <annotation>
9 <documentation>
10 Extensibility point in the WiX XML Schema. Schema extensions can register additional
11 elements at this point in the schema.
12 </documentation>
13 </annotation>
14 </any>
15 </choice>
16 <attribute name="Id" use="required" type="xs:string">
17 <annotation>
18 <documentation>Unique identifier in your installation package for this file specification. If an Id is not provided, one will generated for you.</documentation>
19 </annotation>
20 </attribute>
21 <attribute name="Name" type="xs:string">
22 <annotation>
23 <documentation>Specifies the logical name for the database file.</documentation>
24 </annotation>
25 </attribute>
26 <attribute name="Filename" use="required" type="xs:string">
27 <annotation>
28 <documentation>Specifies the operating-system file name for the database file.</documentation>
29 </annotation>
30 </attribute>
31 <attribute name="Size" type="xs:string">
32 <annotation>
33 <documentation>
34 Specifies the size of the database file. The GB, MB and KB suffixes can be used to specify gigabytes,
35 megabytes or kilobytes. The default is megabytes if no suffix is specified. When a Size is not
36 supplied for a database file, SQL Server uses the size of the primary file in the model database.
37 </documentation>
38 </annotation>
39 </attribute>
40 <attribute name="MaxSize" type="xs:string">
41 <annotation>
42 <documentation>
43 Specifies the maximum size to which the database file can grow. The GB, MB and KB suffixes can be used to
44 to specify gigabytes, megabytes or kilobytes. The default is megabytes if no suffix is specified. If
45 MaxSize is not specified, the file will grow until the disk is full.
46 </documentation>
47 </annotation>
48 </attribute>
49 <attribute name="GrowthSize" type="xs:string">
50 <annotation>
51 <documentation>
52 Specifies the growth increment of the database file. The GB, MB and KB and % suffixes can be used to
53 specify gigabytes, megabytes, kilobytes or a percentage of the current file size to grow. The default is
54 megabytes if no suffix is specified. The default value is 10% if GrowthSize is not specified, and the
55 minimum value is 64 KB. The GrowthSize setting for a file cannot exceed the MaxSize setting.
56 </documentation>
57 </annotation>
58 </attribute>
59 <anyAttribute namespace="##other" processContents="lax">
60 <annotation>
61 <documentation>
62 Extensibility point in the WiX XML Schema. Schema extensions can register additional
63 attributes at this point in the schema.
64 </documentation>
65 </annotation>
66 </anyAttribute>
67 </complexType>
68 </element> \ No newline at end of file
diff --git a/src/xsd/sql/SqlLogFileSpec.xsd b/src/xsd/sql/SqlLogFileSpec.xsd
new file mode 100644
index 00000000..d1289151
--- /dev/null
+++ b/src/xsd/sql/SqlLogFileSpec.xsd
@@ -0,0 +1,68 @@
1<element name="SqlLogFileSpec">
2 <annotation>
3 <documentation>File specification for a Sql database.</documentation>
4 </annotation>
5 <complexType>
6 <choice minOccurs="0" maxOccurs="unbounded">
7 <any namespace="##other" processContents="lax">
8 <annotation>
9 <documentation>
10 Extensibility point in the WiX XML Schema. Schema extensions can register additional
11 elements at this point in the schema.
12 </documentation>
13 </annotation>
14 </any>
15 </choice>
16 <attribute name="Id" type="xs:string">
17 <annotation>
18 <documentation>Unique identifier in your installation package for this log file specification. If an Id is not provided, one will generated for you.</documentation>
19 </annotation>
20 </attribute>
21 <attribute name="Name" type="xs:string">
22 <annotation>
23 <documentation>Specifies the logical name for the log file.</documentation>
24 </annotation>
25 </attribute>
26 <attribute name="Filename" type="xs:string">
27 <annotation>
28 <documentation>Specifies the operating-system file name for the log file.</documentation>
29 </annotation>
30 </attribute>
31 <attribute name="Size" type="xs:string">
32 <annotation>
33 <documentation>
34 Specifies the size of the log file. The GB, MB and KB suffixes can be used to specify gigabytes,
35 megabytes or kilobytes. The default is megabytes if no suffix is specified. When a Size is not
36 supplied for a log file, SQL Server makes the file 1 MB.
37 </documentation>
38 </annotation>
39 </attribute>
40 <attribute name="MaxSize" type="xs:string">
41 <annotation>
42 <documentation>
43 Specifies the maximum size to which the log file can grow. The GB, MB and KB suffixes can be used to
44 to specify gigabytes, megabytes or kilobytes. The default is megabytes if no suffix is specified. If
45 MaxSize is not specified, the file will grow until the disk is full.
46 </documentation>
47 </annotation>
48 </attribute>
49 <attribute name="GrowthSize" type="xs:string">
50 <annotation>
51 <documentation>
52 Specifies the growth increment of the log file. The GB, MB and KB and % suffixes can be used to
53 specify gigabytes, megabytes, kilobytes or a percentage of the current file size to grow. The default is
54 megabytes if no suffix is specified. The default value is 10% if GrowthSize is not specified, and the
55 minimum value is 64 KB. The GrowthSize setting for a file cannot exceed the MaxSize setting.
56 </documentation>
57 </annotation>
58 </attribute>
59 <anyAttribute namespace="##other" processContents="lax">
60 <annotation>
61 <documentation>
62 Extensibility point in the WiX XML Schema. Schema extensions can register additional
63 attributes at this point in the schema.
64 </documentation>
65 </annotation>
66 </anyAttribute>
67 </complexType>
68 </element> \ No newline at end of file
diff --git a/src/xsd/sql/SqlScript.xsd b/src/xsd/sql/SqlScript.xsd
new file mode 100644
index 00000000..7db3f119
--- /dev/null
+++ b/src/xsd/sql/SqlScript.xsd
@@ -0,0 +1,88 @@
1<element name="SqlScript">
2 <annotation>
3 <appinfo>
4 <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Component" />
5 </appinfo>
6 <documentation>SQL Script</documentation>
7 </annotation>
8 <complexType>
9 <choice minOccurs="0" maxOccurs="unbounded">
10 <any namespace="##other" processContents="lax">
11 <annotation>
12 <documentation>
13 Extensibility point in the WiX XML Schema. Schema extensions can register additional
14 elements at this point in the schema.
15 </documentation>
16 </annotation>
17 </any>
18 </choice>
19 <attribute name="Id" type="xs:string">
20 <annotation>
21 <documentation>Unique identifier in your installation package for this sql script. If an Id is not provided, one will generated for you.</documentation>
22 </annotation>
23 </attribute>
24 <attribute name="SqlDb" type="xs:string">
25 <annotation>
26 <documentation>Id of the SqlDatabase to execute the script against. Required when not child of SqlDatabase.</documentation>
27 </annotation>
28 </attribute>
29 <attribute name="User" type="xs:string">
30 <annotation>
31 <documentation>Optional user used to connect to database.</documentation>
32 </annotation>
33 </attribute>
34 <attribute name="BinaryRef" type="xs:string" use="required">
35 <annotation>
36 <documentation>Reference to Binary stream that contains the SQL script to execute.</documentation>
37 </annotation>
38 </attribute>
39 <attribute name="ExecuteOnInstall" type="wxs:YesNoTypeUnion">
40 <annotation>
41 <documentation>Specifies to execute the script when the associated component is installed. This attribute is mutually exclusive with the RollbackOnInstall, RollbackOnReinstall and RollbackOnUninstall attributes.</documentation>
42 </annotation>
43 </attribute>
44 <attribute name="ExecuteOnReinstall" type="wxs:YesNoTypeUnion">
45 <annotation>
46 <documentation>Specifies whether to execute the script when the associated component is reinstalled. Setting ExecuteOnInstall to yes does <b>not</b> imply ExecuteOnReinstall is set to yes. ExecuteOnReinstall must be set in addition to ExecuteOnInstall for it to be executed during both install and reinstall. This attribute is mutually exclusive with the RollbackOnInstall, RollbackOnReinstall and RollbackOnUninstall attributes.</documentation>
47 </annotation>
48 </attribute>
49 <attribute name="ExecuteOnUninstall" type="wxs:YesNoTypeUnion">
50 <annotation>
51 <documentation>Specifies to execute the script when the associated component is uninstalled. This attribute is mutually exclusive with the RollbackOnInstall, RollbackOnReinstall and RollbackOnUninstall attributes.</documentation>
52 </annotation>
53 </attribute>
54 <attribute name="RollbackOnInstall" type="wxs:YesNoTypeUnion">
55 <annotation>
56 <documentation>Specifies whether to execute the script on rollback if an attempt is made to install the associated component. This attribute is mutually exclusive with the ExecuteOnInstall, ExecuteOnReinstall and ExecuteOnUninstall attributes.</documentation>
57 </annotation>
58 </attribute>
59 <attribute name="RollbackOnReinstall" type="wxs:YesNoTypeUnion">
60 <annotation>
61 <documentation>Specifies whether to execute the script on rollback if an attempt is made to reinstall the associated component. This attribute is mutually exclusive with the ExecuteOnInstall, ExecuteOnReinstall and ExecuteOnUninstall attributes.</documentation>
62 </annotation>
63 </attribute>
64 <attribute name="RollbackOnUninstall" type="wxs:YesNoTypeUnion">
65 <annotation>
66 <documentation>Specifies whether to execute the script on rollback if an attempt is made to uninstall the associated component. This attribute is mutually exclusive with the ExecuteOnInstall, ExecuteOnReinstall and ExecuteOnUninstall attributes.</documentation>
67 </annotation>
68 </attribute>
69 <attribute name="ContinueOnError" type="wxs:YesNoTypeUnion">
70 <annotation>
71 <documentation>Continue executing scripts even if this one fails.</documentation>
72 </annotation>
73 </attribute>
74 <attribute name="Sequence" type="wxs:Integer">
75 <annotation>
76 <documentation>Specifes the order to run the SQL Scripts. It is recommended that rollback scripts be scheduled before their complementary execution script. This order is also relative across the SqlString element.</documentation>
77 </annotation>
78 </attribute>
79 <anyAttribute namespace="##other" processContents="lax">
80 <annotation>
81 <documentation>
82 Extensibility point in the WiX XML Schema. Schema extensions can register additional
83 attributes at this point in the schema.
84 </documentation>
85 </annotation>
86 </anyAttribute>
87 </complexType>
88 </element> \ No newline at end of file
diff --git a/src/xsd/sql/SqlString.xsd b/src/xsd/sql/SqlString.xsd
new file mode 100644
index 00000000..6288bb82
--- /dev/null
+++ b/src/xsd/sql/SqlString.xsd
@@ -0,0 +1,88 @@
1<element name="SqlString">
2 <annotation>
3 <appinfo>
4 <parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Component" />
5 </appinfo>
6 <documentation>SQL String</documentation>
7 </annotation>
8 <complexType>
9 <choice minOccurs="0" maxOccurs="unbounded">
10 <any namespace="##other" processContents="lax">
11 <annotation>
12 <documentation>
13 Extensibility point in the WiX XML Schema. Schema extensions can register additional
14 elements at this point in the schema.
15 </documentation>
16 </annotation>
17 </any>
18 </choice>
19 <attribute name="Id" type="xs:string">
20 <annotation>
21 <documentation>Unique identifier in your installation package for this sql command. If an Id is not provided, one will generated for you.</documentation>
22 </annotation>
23 </attribute>
24 <attribute name="SqlDb" type="xs:string">
25 <annotation>
26 <documentation>Id of the SqlDatabase to execute the script against. Required when not child of SqlDatabase.</documentation>
27 </annotation>
28 </attribute>
29 <attribute name="User" type="xs:string">
30 <annotation>
31 <documentation>Optional user used to connect to database.</documentation>
32 </annotation>
33 </attribute>
34 <attribute name="SQL" type="xs:string" use="required">
35 <annotation>
36 <documentation>SQL command to execute against the database.</documentation>
37 </annotation>
38 </attribute>
39 <attribute name="ExecuteOnInstall" type="wxs:YesNoTypeUnion">
40 <annotation>
41 <documentation>Specifies to execute the string when the associated component is installed. This attribute is mutually exclusive with the RollbackOnInstall, RollbackOnReinstall and RollbackOnUninstall attributes.</documentation>
42 </annotation>
43 </attribute>
44 <attribute name="ExecuteOnReinstall" type="wxs:YesNoTypeUnion">
45 <annotation>
46 <documentation>Specifies whether to execute the string when the associated component is reinstalled. Setting ExecuteOnInstall to yes does <b>not</b> imply ExecuteOnReinstall is set to yes. ExecuteOnReinstall must be set in addition to ExecuteOnInstall for it to be executed during both install and reinstall. This attribute is mutually exclusive with the RollbackOnInstall, RollbackOnReinstall and RollbackOnUninstall attributes.</documentation>
47 </annotation>
48 </attribute>
49 <attribute name="ExecuteOnUninstall" type="wxs:YesNoTypeUnion">
50 <annotation>
51 <documentation>Specifies to execute the string when the associated component is uninstalled. This attribute is mutually exclusive with the RollbackOnInstall, RollbackOnReinstall and RollbackOnUninstall attributes.</documentation>
52 </annotation>
53 </attribute>
54 <attribute name="RollbackOnInstall" type="wxs:YesNoTypeUnion">
55 <annotation>
56 <documentation>Specifies whether to execute the string on rollback if an attempt is made to install the associated component. This attribute is mutually exclusive with the ExecuteOnInstall, ExecuteOnReinstall and ExecuteOnUninstall attributes.</documentation>
57 </annotation>
58 </attribute>
59 <attribute name="RollbackOnReinstall" type="wxs:YesNoTypeUnion">
60 <annotation>
61 <documentation>Specifies whether to execute the string on rollback if an attempt is made to reinstall the associated component. This attribute is mutually exclusive with the ExecuteOnInstall, ExecuteOnReinstall and ExecuteOnUninstall attributes.</documentation>
62 </annotation>
63 </attribute>
64 <attribute name="RollbackOnUninstall" type="wxs:YesNoTypeUnion">
65 <annotation>
66 <documentation>Specifies whether to execute the string on rollback if an attempt is made to uninstall the associated component. This attribute is mutually exclusive with the ExecuteOnInstall, ExecuteOnReinstall and ExecuteOnUninstall attributes.</documentation>
67 </annotation>
68 </attribute>
69 <attribute name="ContinueOnError" type="wxs:YesNoTypeUnion">
70 <annotation>
71 <documentation>Continue executing strings even if this one fails.</documentation>
72 </annotation>
73 </attribute>
74 <attribute name="Sequence" type="wxs:Integer">
75 <annotation>
76 <documentation>Specifes the order to run the SQL Strings. It is recommended that rollback strings be scheduled before their complementary execution string. This order is also relative across the SqlScript element.</documentation>
77 </annotation>
78 </attribute>
79 <anyAttribute namespace="##other" processContents="lax">
80 <annotation>
81 <documentation>
82 Extensibility point in the WiX XML Schema. Schema extensions can register additional
83 attributes at this point in the schema.
84 </documentation>
85 </annotation>
86 </anyAttribute>
87 </complexType>
88 </element> \ No newline at end of file
diff --git a/src/xsd/sql/ns.xsd b/src/xsd/sql/ns.xsd
new file mode 100644
index 00000000..11ada3f6
--- /dev/null
+++ b/src/xsd/sql/ns.xsd
@@ -0,0 +1,7 @@
1<schema targetNamespace="http://wixtoolset.org/schemas/v4/wxs/sql">
2 <annotation>
3 <documentation>
4 The source code schema for the WiX Toolset SQL Server Extension.
5 </documentation>
6 </annotation>
7</schema> \ No newline at end of file
diff --git a/src/xsd/sql/order.txt b/src/xsd/sql/order.txt
new file mode 100644
index 00000000..31d9a459
--- /dev/null
+++ b/src/xsd/sql/order.txt
@@ -0,0 +1,5 @@
1element|SqlDatabase
2element|SqlFileSpec
3element|SqlLogFileSpec
4element|SqlScript
5element|SqlString