aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/FailureTests/BundleD/BundleD.wxs
blob: 28614b90e13e84eba516f86810694b3628652ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!-- 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. -->

<?define TestExeRegistryKey = Software\WiX\Tests\$(var.TestGroupName)\ExeA?>

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
  <Fragment>
    <util:RegistrySearch Root="HKLM" Key="$(var.TestExeRegistryKey)" Value="Version" Variable="ExeA_Version" />

    <PackageGroup Id="BundlePackages">
      <ExePackage Id="ExeA" Cache="remove" PerMachine="yes"
                  DetectCondition="ExeA_Version AND ExeA_Version &gt;= v$(var.TestVersion)"
                  InstallArguments="/s 5000 /regw &quot;HKLM\$(var.TestExeRegistryKey),Version,String,$(var.TestVersion)&quot;"
                  RepairArguments="/regw &quot;HKLM\$(var.TestExeRegistryKey),Version,String,$(var.TestVersion)&quot;"
                  UninstallArguments="/regd &quot;HKLM\$(var.TestExeRegistryKey),Version&quot;">
        <PayloadGroupRef Id="TestExePayloads" />
      </ExePackage>
    </PackageGroup>
  </Fragment>
</Wix>