| 1 | <!-- 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. --> |
| 2 | |
| 3 | <?define TestExeRegistryKey = Software\WiX\Tests\$(var.TestGroupName)\ExeA?> |
| 4 | |
| 5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> |
| 6 | <Fragment> |
| 7 | <util:RegistrySearch Root="HKLM" Key="$(var.TestExeRegistryKey)" Value="Version" Variable="ExeA_Version" /> |
| 8 | |
| 9 | <PackageGroup Id="BundlePackages"> |
| 10 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageAv1.TargetPath)" /> |
| 11 | <MsiPackage Id="PackageC" SourceFile="$(var.PackageC.TargetPath)" Vital="no" /> |
| 12 | <ExePackage Id="ExeA" Cache="remove" Vital="no" PerMachine="yes" InstallArguments="/ec 1603" UninstallArguments="" |
| 13 | DetectCondition="ExeA_Version AND ExeA_Version >= v$(var.TestVersion)"> |
| 14 | <Provides Key="$(var.TestGroupName)_ExeA,v1.0" Version="$(var.TestVersion)" /> |
| 15 | <PayloadGroupRef Id="TestExePayloads" /> |
| 16 | </ExePackage> |
| 17 | </PackageGroup> |
| 18 | </Fragment> |
| 19 | </Wix> |