aboutsummaryrefslogtreecommitdiff
path: root/src/test/msi/TestData/UtilExtensionGroupTests/ProductNestedGroups/product.wxs
blob: f513e7c696081e929d762cfaae6323f98d981ea4 (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
<!-- 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. -->


<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
    <Fragment>
        <ComponentGroup Id="ProductComponents">
            <ComponentRef Id="Component1" />
        </ComponentGroup>

        <Property Id="TESTDOMAIN" Secure="yes" />
    </Fragment>

    <Fragment>
        <util:Group Id="DOMAIN_USERS" Name="Domain Users" Domain="[TESTDOMAIN]" >
            <util:GroupRef Id="TEST_GROUP1" />
            <util:GroupRef Id="TEST_GROUP2" />
            <util:GroupRef Id="TEST_GROUP3" />
        </util:Group>
        <util:Group Id="EVERYONE" Name="Everyone" >
            <util:GroupRef Id="TEST_GROUP1" />
        </util:Group>

        <Component Id="Component1" Guid="09624A9A-4BBC-4126-BBF9-0713C5217DB1" Directory="INSTALLFOLDER">
            <File Source="$(sys.SOURCEFILEPATH)" KeyPath="yes" />

            <util:Group Id="TEST_GROUP1" Name="testName1" Comment="Group1" CreateGroup="yes" RemoveOnUninstall="yes" />

            <util:Group Id="TEST_GROUP2" Name="testName2" Comment="Group2" RemoveOnUninstall="no" UpdateIfExists="yes" />
            
            <util:Group Id="TEST_GROUP3" Name="testName3" Domain="[TESTDOMAIN]" Comment="Group3" RemoveOnUninstall="no" UpdateIfExists="yes" />
        </Component>
    </Fragment>
</Wix>