aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/PrereqBaTests/BundleE/BundleE.wxs
blob: b994847e3e6943c8b184ab82e9950360929ab6c2 (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
<!-- 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. -->


<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">
  <Fragment>
    <BootstrapperApplication Id="DncAlwaysPrereq" SourceFile="!(bindpath.dncx86)\TestBA.exe">
      <Payload SourceFile="!(bindpath.dncx86)\TestBA.deps.json" />
      <Payload SourceFile="!(bindpath.dncx86)\TestBA.dll" />
      <Payload SourceFile="!(bindpath.dncx86)\TestBA.runtimeconfig.json" />
      <Payload SourceFile="!(bindpath.dncx86)\mbanative.dll" />
      <Payload SourceFile="!(bindpath.dncx86)\WixToolset.BootstrapperApplicationApi.dll" />
      <Payload SourceFile="$(var.PrereqBaf.TargetPath)" bal:BAFunctions="yes" />
    </BootstrapperApplication>
  </Fragment>

  <Fragment>
    <util:FileSearch Variable="TestBAConfigPresent" Path="[BARuntimeDirectory]\good.runtimeconfig.json" Result="exists" />

    <PackageGroup Id="BundlePackages">
      <ExePackage SourceFile="$(var.ReplaceConfig.TargetPath)" bal:PrereqPackage="yes"
                  Permanent="yes" DetectCondition="NOT TestBAConfigPresent"
                  InstallArguments="&quot;[BARuntimeDirectory]TestBA.runtimeconfig.json&quot; &quot;[BARuntimeDirectory]good.runtimeconfig.json&quot; &quot;[BARuntimeDirectory]bad.runtimeconfig.json&quot;" />
    </PackageGroup>
  </Fragment>
</Wix>