Skip to content

Commit ed19d16

Browse files
bevanweissrobmen
authored andcommitted
XSD changes to account for create Group modifications
Signed-off-by: Bevan Weiss <[email protected]>
1 parent cf0727c commit ed19d16

File tree

1 file changed

+43
-9
lines changed

1 file changed

+43
-9
lines changed

src/xsd/util.xsd

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -701,19 +701,18 @@
701701

702702
<xs:element name="Group">
703703
<xs:annotation>
704+
<xs:documentation>Group for all kinds of (usergroup) things. When it is not nested under a component it is included in the MSI so it can be referenced by other elements such as the GroupRef element under a User element (to add the User to the Group). When it is nested under a Component element, the Group will be created on install and can also be used for reference.</xs:documentation>
704705
<xs:appinfo>
706+
<xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Component" />
705707
<xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Fragment" />
706708
<xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Module" />
707709
<xse:parent namespace="http://wixtoolset.org/schemas/v4/wxs" ref="Package" />
710+
<xse:seeAlso ref="GroupRef" />
708711
</xs:appinfo>
709-
<xs:documentation>
710-
Finds user groups on the local machine or specified Active Directory domain. The local machine will be
711-
searched for the group first then fallback to looking in Active Directory. This element is not capable
712-
of creating new groups but can be used to add new or existing users to an existing group.
713-
</xs:documentation>
714712
</xs:annotation>
715713
<xs:complexType>
716714
<xs:choice minOccurs="0" maxOccurs="unbounded">
715+
<xs:element ref="GroupRef" minOccurs="0" maxOccurs="unbounded" />
717716
<xs:any namespace="##other" processContents="lax">
718717
<xs:annotation>
719718
<xs:documentation>
@@ -730,14 +729,49 @@
730729
</xs:attribute>
731730
<xs:attribute name="Name" type="xs:string" use="required">
732731
<xs:annotation>
733-
<xs:documentation>A [Formatted](https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that contains the name of the group to be found.</xs:documentation>
732+
<xs:documentation>A [Formatted](https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that contains the name of the group.</xs:documentation>
734733
</xs:annotation>
735734
</xs:attribute>
736735
<xs:attribute name="Domain" type="xs:string">
737736
<xs:annotation>
738737
<xs:documentation>An optional [Formatted](https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that specifies the domain for the group.</xs:documentation>
739738
</xs:annotation>
740739
</xs:attribute>
740+
<xs:attribute name="RemoveOnUninstall" type="wxs:YesNoTypeUnion">
741+
<xs:annotation>
742+
<xs:documentation>Indicates whether the group should be removed or left behind on uninstall.</xs:documentation>
743+
</xs:annotation>
744+
</xs:attribute>
745+
<xs:attribute name="FailIfExists" type="wxs:YesNoTypeUnion">
746+
<xs:annotation>
747+
<xs:documentation>Indicates if the install should fail if the group already exists.</xs:documentation>
748+
</xs:annotation>
749+
</xs:attribute>
750+
<xs:attribute name="UpdateIfExists" type="wxs:YesNoTypeUnion">
751+
<xs:annotation>
752+
<xs:documentation>Indicates if the group properties should be updated if the group already exists.</xs:documentation>
753+
</xs:annotation>
754+
</xs:attribute>
755+
<xs:attribute name="CreateGroup" type="wxs:YesNoTypeUnion">
756+
<xs:annotation>
757+
<xs:documentation>Indicates whether or not to create the group. Group creation can be skipped if all that is desired is to add group memberships.</xs:documentation>
758+
</xs:annotation>
759+
</xs:attribute>
760+
<xs:attribute name="Vital" type="wxs:YesNoTypeUnion">
761+
<xs:annotation>
762+
<xs:documentation>Indicates whether failure to create the group or add the group to another group fails the installation. The default value is "yes".</xs:documentation>
763+
</xs:annotation>
764+
</xs:attribute>
765+
<xs:attribute name="Comment" type="xs:string">
766+
<xs:annotation>
767+
<xs:documentation>Optional comment to set on the group.</xs:documentation>
768+
</xs:annotation>
769+
</xs:attribute>
770+
<xs:attribute name="RemoveComment" type="wxs:YesNoTypeUnion">
771+
<xs:annotation>
772+
<xs:documentation>Indicates whether remove the comment from the group. The default value is "no".</xs:documentation>
773+
</xs:annotation>
774+
</xs:attribute>
741775
<xs:anyAttribute namespace="##other" processContents="lax">
742776
<xs:annotation>
743777
<xs:documentation>
@@ -751,7 +785,7 @@
751785

752786
<xs:element name="GroupRef">
753787
<xs:annotation>
754-
<xs:documentation>Used to join a user to a group</xs:documentation>
788+
<xs:documentation>Used to join a user / group to a group</xs:documentation>
755789
</xs:annotation>
756790
<xs:complexType>
757791
<xs:choice minOccurs="0" maxOccurs="unbounded">
@@ -1853,12 +1887,12 @@
18531887
<xs:attribute name="Id" type="xs:string" />
18541888
<xs:attribute name="Name" type="xs:string" use="required">
18551889
<xs:annotation>
1856-
<xs:documentation>A [Formatted])(https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that contains the name of the user account.</xs:documentation>
1890+
<xs:documentation>A [Formatted](https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that contains the name of the user account.</xs:documentation>
18571891
</xs:annotation>
18581892
</xs:attribute>
18591893
<xs:attribute name="Domain" type="xs:string">
18601894
<xs:annotation>
1861-
<xs:documentation>A [Formatted])(https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that contains the local machine or Active Directory domain for the user.</xs:documentation>
1895+
<xs:documentation>A [Formatted](https://learn.microsoft.com/en-us/windows/win32/msi/formatted) string that contains the local machine or Active Directory domain for the user.</xs:documentation>
18621896
</xs:annotation>
18631897
</xs:attribute>
18641898
<xs:attribute name="Password" type="xs:string">

0 commit comments

Comments
 (0)