| 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 | |
| 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> |
| 5 | <Fragment> |
| 6 | <BootstrapperApplication Id="BrokenDnc" SourceFile="!(bindpath.dncx86)\TestBA.exe" Secondary="yes"> |
| 7 | <Payload SourceFile="!(bindpath.dncx86)\TestBA.deps.json" /> |
| 8 | <Payload SourceFile="!(bindpath.dncx86)\TestBA.dll" /> |
| 9 | <Payload Name="good.runtimeconfig.json" SourceFile="!(bindpath.dncx86)\TestBA.runtimeconfig.json" /> |
| 10 | <Payload Name="TestBA.runtimeconfig.json" SourceFile="bad.runtimeconfig.json" /> |
| 11 | <Payload SourceFile="!(bindpath.dncx86)\mbanative.dll" /> |
| 12 | <Payload SourceFile="!(bindpath.dncx86)\WixToolset.BootstrapperApplicationApi.dll" /> |
| 13 | <Payload SourceFile="$(var.PrereqBaf.TargetPath)" bal:BAFunctions="yes" /> |
| 14 | |
| 15 | <bal:WixPrerequisiteBootstrapperApplication /> |
| 16 | </BootstrapperApplication> |
| 17 | </Fragment> |
| 18 | |
| 19 | <Fragment> |
| 20 | <util:FileSearch Variable="GoodConfigPresent" Path="[BARuntimeDirectory]\good.runtimeconfig.json" Result="exists" /> |
| 21 | <Variable Name="CAUSEINFINITELOOP" bal:Overridable="yes" /> |
| 22 | |
| 23 | <PackageGroup Id="BundlePackages"> |
| 24 | <ExePackage SourceFile="$(var.ReplaceConfig.TargetPath)" bal:PrereqPackage="yes" |
| 25 | Permanent="yes" DetectCondition="NOT GoodConfigPresent OR CAUSEINFINITELOOP = 1" |
| 26 | InstallArguments=""[BARuntimeDirectory]TestBA.runtimeconfig.json" "[BARuntimeDirectory]good.runtimeconfig.json" "[BARuntimeDirectory]bad.runtimeconfig.json"" /> |
| 27 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)" bal:PrereqPackage="yes" Permanent="yes" /> |
| 28 | <MsiPackage Id="PackageC" SourceFile="$(var.PackageC.TargetPath)" Cache="force" /> |
| 29 | </PackageGroup> |
| 30 | </Fragment> |
| 31 | </Wix> |