aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.Util/TestData/XmlConfigModule/Module.wxs
blob: 93f5eeb1cd9cc2d6a19738ab4b9d206bef9c4ab0 (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
34
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
    <Module Id="XmlConfigModule" Language="1033" Version="1.0.0.0" Guid="047730a5-30fe-4a62-a520-da9381b8226a">

        <Component Id="Parent" Directory="INSTALLFOLDER">
            <File Id="my.xml" Source="my.xml" />
            <util:XmlConfig
                Id="AddElement"
                File="[my.xml]"
                Action="create"
                Node="element"
                VerifyPath="xxx"
                ElementPath="//root/sub"
                On="install"
                Sequence="1" />
        </Component>

        <Component Id="Child" Directory="INSTALLFOLDER" Guid="4613414c-11f5-40fa-a1f1-a0ba722a6895">
            <util:XmlConfig
                Id="ChildElement"
                File="[my.xml]"
                VerifyPath="xxx"
                ElementId="AddElement"
                Sequence="1" />
        </Component>
    </Module>

    <Fragment>
        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLFOLDER" Name="MsiPackage" />
            </Directory>
        </Directory>
    </Fragment>
</Wix>