blob: b77425826d670216fc844bca2f19a37032704b4a (
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
26
27
28
29
|
<!-- 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="BrokenMba">
<Payload Name="good.config" SourceFile="!(bindpath.net2x86)\TestBA.BootstrapperCore.config" />
<Payload Name="WixToolset.Mba.Host.config" SourceFile="bad.config" />
<Payload SourceFile="!(bindpath.net2x86)\TestBA.dll" />
<Payload SourceFile="!(bindpath.net2x86)\mbanative.dll" />
<Payload SourceFile="!(bindpath.net2x86)\WixToolset.Mba.Core.dll" />
<Payload SourceFile="$(var.PrereqBaf.TargetPath)" bal:BAFunctions="yes" />
<bal:WixManagedBootstrapperApplicationHost />
</BootstrapperApplication>
</Fragment>
<Fragment>
<util:FileSearch Variable="GoodConfigPresent" Path="[BARuntimeDirectory]\good.config" Result="exists" />
<Variable Name="CAUSEINFINITELOOP" bal:Overridable="yes" />
<PackageGroup Id="BundlePackages">
<ExePackage SourceFile="$(var.ReplaceConfig.TargetPath)" bal:PrereqPackage="yes"
Permanent="yes" DetectCondition="NOT GoodConfigPresent OR CAUSEINFINITELOOP = 1"
InstallArguments=""[BARuntimeDirectory]WixToolset.Mba.Host.config" "[BARuntimeDirectory]good.config" "[BARuntimeDirectory]bad.config"" />
<MsiPackage Id="PackageB" SourceFile="$(var.PackageB.TargetPath)" bal:PrereqPackage="yes" Permanent="yes" />
<MsiPackage Id="PackageC" SourceFile="$(var.PackageC.TargetPath)" />
</PackageGroup>
</Fragment>
</Wix>
|