aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/PrereqBaTests/BundleB
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-05-13 15:39:40 -0500
committerSean Hall <r.sean.hall@gmail.com>2022-05-14 11:12:31 -0500
commitd5985a1688bc878e42ffd3ce3939fa52303cab16 (patch)
tree0c283fe5454659c569317b37840a040474cfa032 /src/test/burn/TestData/PrereqBaTests/BundleB
parent6a6974a15deb6edf593736cdb8043bfb93064782 (diff)
downloadwix-d5985a1688bc878e42ffd3ce3939fa52303cab16.tar.gz
wix-d5985a1688bc878e42ffd3ce3939fa52303cab16.tar.bz2
wix-d5985a1688bc878e42ffd3ce3939fa52303cab16.zip
Add option to hosts to always install prereqs.
Add PrereqPackage to BundlePackage Implements 4718
Diffstat (limited to 'src/test/burn/TestData/PrereqBaTests/BundleB')
-rw-r--r--src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wixproj5
-rw-r--r--src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wxs12
2 files changed, 14 insertions, 3 deletions
diff --git a/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wixproj b/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wixproj
index d4288d4b..843b382a 100644
--- a/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wixproj
+++ b/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wixproj
@@ -13,9 +13,12 @@
13 </ItemGroup> 13 </ItemGroup>
14 <ItemGroup> 14 <ItemGroup>
15 <ProjectReference Include="..\PackageB\PackageB.wixproj" /> 15 <ProjectReference Include="..\PackageB\PackageB.wixproj" />
16 <ProjectReference Include="..\PackageF\PackageF.wixproj" /> 16 <ProjectReference Include="..\PackageC\PackageC.wixproj" />
17 <ProjectReference Include="..\PrereqBaf\PrereqBaf.vcxproj" />
18 <ProjectReference Include="..\ReplaceConfig\ReplaceConfig.vcxproj" />
17 </ItemGroup> 19 </ItemGroup>
18 <ItemGroup> 20 <ItemGroup>
19 <PackageReference Include="WixToolset.Bal.wixext" /> 21 <PackageReference Include="WixToolset.Bal.wixext" />
22 <PackageReference Include="WixToolset.Util.wixext" />
20 </ItemGroup> 23 </ItemGroup>
21</Project> \ No newline at end of file 24</Project> \ No newline at end of file
diff --git a/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wxs b/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wxs
index 603c3aee..b7742582 100644
--- a/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wxs
+++ b/src/test/burn/TestData/PrereqBaTests/BundleB/BundleB.wxs
@@ -1,21 +1,29 @@
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. --> 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 2
3 3
4<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> 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> 5 <Fragment>
6 <BootstrapperApplication Id="BrokenMba"> 6 <BootstrapperApplication Id="BrokenMba">
7 <Payload Name="good.config" SourceFile="!(bindpath.net2x86)\TestBA.BootstrapperCore.config" />
7 <Payload Name="WixToolset.Mba.Host.config" SourceFile="bad.config" /> 8 <Payload Name="WixToolset.Mba.Host.config" SourceFile="bad.config" />
8 <Payload SourceFile="!(bindpath.net2x86)\TestBA.dll" /> 9 <Payload SourceFile="!(bindpath.net2x86)\TestBA.dll" />
9 <Payload SourceFile="!(bindpath.net2x86)\mbanative.dll" /> 10 <Payload SourceFile="!(bindpath.net2x86)\mbanative.dll" />
10 <Payload SourceFile="!(bindpath.net2x86)\WixToolset.Mba.Core.dll" /> 11 <Payload SourceFile="!(bindpath.net2x86)\WixToolset.Mba.Core.dll" />
12 <Payload SourceFile="$(var.PrereqBaf.TargetPath)" bal:BAFunctions="yes" />
11 <bal:WixManagedBootstrapperApplicationHost /> 13 <bal:WixManagedBootstrapperApplicationHost />
12 </BootstrapperApplication> 14 </BootstrapperApplication>
13 </Fragment> 15 </Fragment>
14 16
15 <Fragment> 17 <Fragment>
18 <util:FileSearch Variable="GoodConfigPresent" Path="[BARuntimeDirectory]\good.config" Result="exists" />
19 <Variable Name="CAUSEINFINITELOOP" bal:Overridable="yes" />
20
16 <PackageGroup Id="BundlePackages"> 21 <PackageGroup Id="BundlePackages">
22 <ExePackage SourceFile="$(var.ReplaceConfig.TargetPath)" bal:PrereqPackage="yes"
23 Permanent="yes" DetectCondition="NOT GoodConfigPresent OR CAUSEINFINITELOOP = 1"
24 InstallArguments="&quot;[BARuntimeDirectory]WixToolset.Mba.Host.config&quot; &quot;[BARuntimeDirectory]good.config&quot; &quot;[BARuntimeDirectory]bad.config&quot;" />
17 <MsiPackage Id="PackageB" SourceFile="$(var.PackageB.TargetPath)" bal:PrereqPackage="yes" Permanent="yes" /> 25 <MsiPackage Id="PackageB" SourceFile="$(var.PackageB.TargetPath)" bal:PrereqPackage="yes" Permanent="yes" />
18 <MsiPackage Id="PackageF" SourceFile="$(var.PackageF.TargetPath)" /> 26 <MsiPackage Id="PackageC" SourceFile="$(var.PackageC.TargetPath)" />
19 </PackageGroup> 27 </PackageGroup>
20 </Fragment> 28 </Fragment>
21</Wix> 29</Wix>