aboutsummaryrefslogtreecommitdiff
path: root/src/TestData/MsiTransactionTests
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-01-01 21:35:51 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-01-03 16:20:18 -0600
commit47724ab546a84e77b4699bc28aa4e4ad7901253f (patch)
treee70f7ba0181f3a6d29fe7417b19bd1c830e77527 /src/TestData/MsiTransactionTests
parent73dc2706d9f151554356aaf3e69bfad5b46a21e9 (diff)
downloadwix-47724ab546a84e77b4699bc28aa4e4ad7901253f.tar.gz
wix-47724ab546a84e77b4699bc28aa4e4ad7901253f.tar.bz2
wix-47724ab546a84e77b4699bc28aa4e4ad7901253f.zip
Try to make it easier to add new kinds of tests.
Diffstat (limited to 'src/TestData/MsiTransactionTests')
-rw-r--r--src/TestData/MsiTransactionTests/BundleAv1/BundleA.wxi21
-rw-r--r--src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wixproj15
-rw-r--r--src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wxs14
-rw-r--r--src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wixproj16
-rw-r--r--src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wxs14
-rw-r--r--src/TestData/MsiTransactionTests/BundleBv1/BundleB.wxi17
-rw-r--r--src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wixproj14
-rw-r--r--src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wxs12
-rw-r--r--src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wixproj18
-rw-r--r--src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wxs15
-rw-r--r--src/TestData/MsiTransactionTests/PackageA/PackageA.wixproj10
-rw-r--r--src/TestData/MsiTransactionTests/PackageBv1/PackageB.props9
-rw-r--r--src/TestData/MsiTransactionTests/PackageBv1/PackageBv1.wixproj7
-rw-r--r--src/TestData/MsiTransactionTests/PackageBv2/PackageBv2.wixproj7
-rw-r--r--src/TestData/MsiTransactionTests/PackageCv1/PackageC.props9
-rw-r--r--src/TestData/MsiTransactionTests/PackageCv1/PackageCv1.wixproj7
-rw-r--r--src/TestData/MsiTransactionTests/PackageCv2/PackageCv2.wixproj7
-rw-r--r--src/TestData/MsiTransactionTests/PackageD/PackageD.wixproj9
-rw-r--r--src/TestData/MsiTransactionTests/PackageF/PackageF.wixproj12
19 files changed, 233 insertions, 0 deletions
diff --git a/src/TestData/MsiTransactionTests/BundleAv1/BundleA.wxi b/src/TestData/MsiTransactionTests/BundleAv1/BundleA.wxi
new file mode 100644
index 00000000..ef01c2e9
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleAv1/BundleA.wxi
@@ -0,0 +1,21 @@
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<?ifndef Version?>
4<?define Version = 1.0.0.0?>
5<?endif?>
6
7<Include xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
8 <Bundle Name="~$(var.TestGroupName) - Bundle A" Version="$(var.Version)" UpgradeCode="{90ED10D5-B187-4470-B498-05D80DAB729A}" Compressed="yes">
9 <Log Prefix="~$(var.TestGroupName)_BundleA" />
10
11 <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />
12
13 <BootstrapperApplication>
14 <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" Theme="hyperlinkLicense" />
15 </BootstrapperApplication>
16
17 <Chain>
18 <PackageGroupRef Id="BundlePackages" />
19 </Chain>
20 </Bundle>
21</Include>
diff --git a/src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wixproj b/src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wixproj
new file mode 100644
index 00000000..4e92a102
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wixproj
@@ -0,0 +1,15 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 <SuppressSpecificWarnings>1151</SuppressSpecificWarnings>
6 </PropertyGroup>
7 <ItemGroup>
8 <ProjectReference Include="..\PackageA\PackageA.wixproj" />
9 <ProjectReference Include="..\PackageBv1\PackageBv1.wixproj" />
10 <ProjectReference Include="..\PackageCv1\PackageCv1.wixproj" />
11 </ItemGroup>
12 <ItemGroup>
13 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.77" />
14 </ItemGroup>
15</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wxs b/src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wxs
new file mode 100644
index 00000000..f8355aa6
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleAv1/BundleAv1.wxs
@@ -0,0 +1,14 @@
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">
5 <?include BundleA.wxi ?>
6 <Fragment>
7 <PackageGroup Id="BundlePackages">
8 <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)" />
9 <RollbackBoundary Transaction="yes" />
10 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv1.TargetPath)" />
11 <MsiPackage Id="PackageC" SourceFile="$(var.PackageCv1.TargetPath)" />
12 </PackageGroup>
13 </Fragment>
14</Wix>
diff --git a/src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wixproj b/src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wixproj
new file mode 100644
index 00000000..7d1a42c5
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wixproj
@@ -0,0 +1,16 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 <SuppressSpecificWarnings>1151</SuppressSpecificWarnings>
6 <Version>2.0.0.0</Version>
7 </PropertyGroup>
8 <ItemGroup>
9 <ProjectReference Include="..\PackageBv2\PackageBv2.wixproj" />
10 <ProjectReference Include="..\PackageCv2\PackageCv2.wixproj" />
11 <ProjectReference Include="..\PackageD\PackageD.wixproj" />
12 </ItemGroup>
13 <ItemGroup>
14 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.77" />
15 </ItemGroup>
16</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wxs b/src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wxs
new file mode 100644
index 00000000..11360c22
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleAv2/BundleAv2.wxs
@@ -0,0 +1,14 @@
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">
5 <?include ..\BundleAv1\BundleA.wxi ?>
6 <Fragment>
7 <PackageGroup Id="BundlePackages">
8 <MsiPackage Id="PackageD" SourceFile="$(var.PackageD.TargetPath)" />
9 <RollbackBoundary Transaction="yes" />
10 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv2.TargetPath)" />
11 <MsiPackage Id="PackageC" SourceFile="$(var.PackageCv2.TargetPath)" />
12 </PackageGroup>
13 </Fragment>
14</Wix>
diff --git a/src/TestData/MsiTransactionTests/BundleBv1/BundleB.wxi b/src/TestData/MsiTransactionTests/BundleBv1/BundleB.wxi
new file mode 100644
index 00000000..943b8b48
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleBv1/BundleB.wxi
@@ -0,0 +1,17 @@
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<?ifndef Version?>
4<?define Version = 1.0.0.0?>
5<?endif?>
6
7<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
8 <Bundle Name="~$(var.TestGroupName) - Bundle B" Version="$(var.Version)" UpgradeCode="{552FD011-4DD6-42B2-A4C6-AD1417C829B2}" Compressed="yes">
9 <Log Prefix="~$(var.TestGroupName)_BundleB" />
10
11 <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />
12
13 <Chain>
14 <PackageGroupRef Id="BundlePackages" />
15 </Chain>
16 </Bundle>
17</Include>
diff --git a/src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wixproj b/src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wixproj
new file mode 100644
index 00000000..3cf361d2
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wixproj
@@ -0,0 +1,14 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 </PropertyGroup>
6 <ItemGroup>
7 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
8 <ProjectReference Include="..\PackageBv1\PackageBv1.wixproj" />
9 </ItemGroup>
10 <ItemGroup>
11 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.77" />
12 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.56" />
13 </ItemGroup>
14</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wxs b/src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wxs
new file mode 100644
index 00000000..1a24f53e
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleBv1/BundleBv1.wxs
@@ -0,0 +1,12 @@
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">
5 <?include BundleB.wxi ?>
6 <Fragment>
7 <PackageGroup Id="BundlePackages">
8 <PackageGroupRef Id="TestBA" />
9 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv1.TargetPath)" />
10 </PackageGroup>
11 </Fragment>
12</Wix>
diff --git a/src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wixproj b/src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wixproj
new file mode 100644
index 00000000..7162dea2
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wixproj
@@ -0,0 +1,18 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 <SuppressSpecificWarnings>1151</SuppressSpecificWarnings>
6 <Version>2.0.0.0</Version>
7 </PropertyGroup>
8 <ItemGroup>
9 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
10 <ProjectReference Include="..\PackageA\PackageA.wixproj" />
11 <ProjectReference Include="..\PackageBv2\PackageBv2.wixproj" />
12 <ProjectReference Include="..\PackageF\PackageF.wixproj" />
13 </ItemGroup>
14 <ItemGroup>
15 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.77" />
16 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.56" />
17 </ItemGroup>
18</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wxs b/src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wxs
new file mode 100644
index 00000000..33665860
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/BundleBv2/BundleBv2.wxs
@@ -0,0 +1,15 @@
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">
5 <?include ..\BundleBv1\BundleB.wxi ?>
6 <Fragment>
7 <PackageGroup Id="BundlePackages">
8 <PackageGroupRef Id="TestBAdnc" />
9 <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)" />
10 <RollbackBoundary Transaction="yes" />
11 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv2.TargetPath)" />
12 <MsiPackage Id="PackageF" SourceFile="$(var.PackageF.TargetPath)" />
13 </PackageGroup>
14 </Fragment>
15</Wix>
diff --git a/src/TestData/MsiTransactionTests/PackageA/PackageA.wixproj b/src/TestData/MsiTransactionTests/PackageA/PackageA.wixproj
new file mode 100644
index 00000000..2ef7c05e
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageA/PackageA.wixproj
@@ -0,0 +1,10 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <CabPrefix>a</CabPrefix>
5 <UpgradeCode>{7772FCDF-5FDB-497D-B5DF-C6D17D667976}</UpgradeCode>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Package.wxs" Link="Package.wxs" />
9 </ItemGroup>
10</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageBv1/PackageB.props b/src/TestData/MsiTransactionTests/PackageBv1/PackageB.props
new file mode 100644
index 00000000..decdfb6a
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageBv1/PackageB.props
@@ -0,0 +1,9 @@
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<Project>
3 <PropertyGroup>
4 <UpgradeCode>{EAFC0C6B-626E-415C-8132-536FBD19F49B}</UpgradeCode>
5 </PropertyGroup>
6 <ItemGroup>
7 <Compile Include="..\..\Templates\Package.wxs" Link="Package.wxs" />
8 </ItemGroup>
9</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageBv1/PackageBv1.wixproj b/src/TestData/MsiTransactionTests/PackageBv1/PackageBv1.wixproj
new file mode 100644
index 00000000..6dc1e4d8
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageBv1/PackageBv1.wixproj
@@ -0,0 +1,7 @@
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<Project Sdk="WixToolset.Sdk">
3 <Import Project="PackageB.props" />
4 <PropertyGroup>
5 <CabPrefix>bv1</CabPrefix>
6 </PropertyGroup>
7</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageBv2/PackageBv2.wixproj b/src/TestData/MsiTransactionTests/PackageBv2/PackageBv2.wixproj
new file mode 100644
index 00000000..126d0f53
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageBv2/PackageBv2.wixproj
@@ -0,0 +1,7 @@
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<Project Sdk="WixToolset.Sdk">
3 <Import Project="..\PackageBv1\PackageB.props" />
4 <PropertyGroup>
5 <Version>2.0.0.0</Version>
6 </PropertyGroup>
7</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageCv1/PackageC.props b/src/TestData/MsiTransactionTests/PackageCv1/PackageC.props
new file mode 100644
index 00000000..b3d057bd
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageCv1/PackageC.props
@@ -0,0 +1,9 @@
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<Project>
3 <PropertyGroup>
4 <UpgradeCode>{A18BDC12-DAEC-43EE-87D1-31B2C2BC6269}</UpgradeCode>
5 </PropertyGroup>
6 <ItemGroup>
7 <Compile Include="..\..\Templates\Package.wxs" Link="Package.wxs" />
8 </ItemGroup>
9</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageCv1/PackageCv1.wixproj b/src/TestData/MsiTransactionTests/PackageCv1/PackageCv1.wixproj
new file mode 100644
index 00000000..617e61c3
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageCv1/PackageCv1.wixproj
@@ -0,0 +1,7 @@
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<Project Sdk="WixToolset.Sdk">
3 <Import Project="PackageC.props" />
4 <PropertyGroup>
5 <CabPrefix>cv1</CabPrefix>
6 </PropertyGroup>
7</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageCv2/PackageCv2.wixproj b/src/TestData/MsiTransactionTests/PackageCv2/PackageCv2.wixproj
new file mode 100644
index 00000000..640ad21d
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageCv2/PackageCv2.wixproj
@@ -0,0 +1,7 @@
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<Project Sdk="WixToolset.Sdk">
3 <Import Project="..\PackageCv1\PackageC.props" />
4 <PropertyGroup>
5 <Version>2.0.0.0</Version>
6 </PropertyGroup>
7</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageD/PackageD.wixproj b/src/TestData/MsiTransactionTests/PackageD/PackageD.wixproj
new file mode 100644
index 00000000..1df5da24
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageD/PackageD.wixproj
@@ -0,0 +1,9 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <UpgradeCode>{78B072D5-1C23-4895-9C4C-1B52E3C80621}</UpgradeCode>
5 </PropertyGroup>
6 <ItemGroup>
7 <Compile Include="..\..\Templates\Package.wxs" Link="Package.wxs" />
8 </ItemGroup>
9</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransactionTests/PackageF/PackageF.wixproj b/src/TestData/MsiTransactionTests/PackageF/PackageF.wixproj
new file mode 100644
index 00000000..46def2c5
--- /dev/null
+++ b/src/TestData/MsiTransactionTests/PackageF/PackageF.wixproj
@@ -0,0 +1,12 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <UpgradeCode>{3D59F8F2-8AC5-403E-B6F7-453870DE7063}</UpgradeCode>
5 </PropertyGroup>
6 <ItemGroup>
7 <Compile Include="..\..\Templates\PackageFail.wxs" Link="PackageFail.wxs" />
8 </ItemGroup>
9 <ItemGroup>
10 <PackageReference Include="WixToolset.Util.wixext" Version="4.0.66" />
11 </ItemGroup>
12</Project> \ No newline at end of file