aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/DependencyTests/BundleAv2/BundleAv2.wxs
blob: 570f633f924860b0b0d7d61734453252aa526ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!-- 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">
      <MsiPackage Id="PackageA" SourceFile="$(var.PackageAv2.TargetPath)" />
      <ExePackage Id="ExeA" Cache="remove" PerMachine="yes"
                  DetectCondition="ExeA_Version AND ExeA_Version &gt;= v$(var.Version)"
                  InstallArguments="/regw &quot;HKLM\$(var.TestExeRegistryKey),Version,String,$(var.Version)&quot;"
                  RepairArguments="/regw &quot;HKLM\$(var.TestExeRegistryKey),Version,String,$(var.Version)&quot;"
                  UninstallArguments="/regd &quot;HKLM\$(var.TestExeRegistryKey),Version&quot;">
        <Provides Key="$(var.TestGroupName)_ExeA,v1.0" Version="$(var.Version)" />
        <PayloadGroupRef Id="TestExePayloads" />
      </ExePackage>
    </PackageGroup>
  </Fragment>
</Wix>