aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Util/test/WixToolsetTest.Util/TestData/BundleWithSearches/BundleUsingBuiltinVariableNames.wxs
blob: cc7162d7fb78fb2c20983bc5772dfa507ce938c0 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
    <Bundle Name="!(loc.BundleName)" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a">
        <BootstrapperApplication>
            <BootstrapperApplicationDll SourceFile="fakeba.dll" />
        </BootstrapperApplication>

        <util:RegistrySearchRef Id="RegistrySearchId" />
        <util:RegistrySearchRef Id="RegistrySearchId64" />
        <util:ProductSearchRef Id="ProductSearchId" />
        <util:DirectorySearchRef Id="DirectorySearchId" />
        <util:FileSearchRef Id="FileSearchId" />
        <util:WindowsFeatureSearchRef Id="DetectSHA2SupportId" />

        <Chain>
            <MsiPackage SourceFile="test.msi">
                <MsiProperty Name="TEST" Value="1" />
            </MsiPackage>
        </Chain>
    </Bundle>

    <Fragment>
        <util:RegistrySearch
            Id="RegistrySearchId"
            Variable="VersionNT64"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
            Value="Release"
            Result="value" />
    </Fragment>

    <Fragment>
        <util:RegistrySearch
            Id="RegistrySearchId64"
            Variable="WixBundleAction"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
            Value="Release"
            Result="value"
            Bitness="always64" />

        <util:RegistrySearch
            Variable="WixCustomVariable"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Custom"
            Value="Release"
            Result="value"
            Bitness="always64" />
    </Fragment>

    <Fragment>
        <util:ProductSearch Id="ProductSearchId" Variable="Date" UpgradeCode="738D02BF-E231-4370-8209-E9FD4E1BE2A1" Condition="1 &amp; 2 &lt; 3" Result="version" />
    </Fragment>

    <Fragment>
        <util:DirectorySearch Id="DirectorySearchId" Variable="InstallerName" Path="%windir%\System32" Result="exists" DisableFileRedirection="yes" />
    </Fragment>

    <Fragment>
        <util:FileSearch Id="FileSearchId" Variable="NativeMachine" Path="%windir%\System32\mscoree.dll" Result="exists" />
    </Fragment>

    <Fragment>
        <util:WindowsFeatureSearch Id="DetectSHA2SupportId" Variable="NTProductType" Feature="sha2CodeSigning" />
    </Fragment>
</Wix>