aboutsummaryrefslogtreecommitdiff
path: root/src/TestData/MsiTransaction
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-12-01 23:02:05 -0600
committerSean Hall <r.sean.hall@gmail.com>2020-12-01 23:02:05 -0600
commit5d0434843c6f307a46fa95139c1e754221cc13af (patch)
tree559f1714b14c08fa09449b62770c9107fae968c3 /src/TestData/MsiTransaction
parent86456524fe4640053616f6fc18311159e6fafea5 (diff)
downloadwix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.gz
wix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.bz2
wix-5d0434843c6f307a46fa95139c1e754221cc13af.zip
Add MSI transaction tests.
Diffstat (limited to 'src/TestData/MsiTransaction')
-rw-r--r--src/TestData/MsiTransaction/BundleAv1/BundleA.wxi19
-rw-r--r--src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj16
-rw-r--r--src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs15
-rw-r--r--src/TestData/MsiTransaction/BundleAv2/BundleAv2.wixproj17
-rw-r--r--src/TestData/MsiTransaction/BundleAv2/BundleAv2.wxs15
-rw-r--r--src/TestData/MsiTransaction/BundleBv1/BundleB.wxi19
-rw-r--r--src/TestData/MsiTransaction/BundleBv1/BundleBv1.wixproj14
-rw-r--r--src/TestData/MsiTransaction/BundleBv1/BundleBv1.wxs12
-rw-r--r--src/TestData/MsiTransaction/BundleBv2/BundleBv2.wixproj17
-rw-r--r--src/TestData/MsiTransaction/BundleBv2/BundleBv2.wxs15
-rw-r--r--src/TestData/MsiTransaction/PackageA/PackageA.wixproj9
-rw-r--r--src/TestData/MsiTransaction/PackageBv1/PackageB.props9
-rw-r--r--src/TestData/MsiTransaction/PackageBv1/PackageBv1.wixproj4
-rw-r--r--src/TestData/MsiTransaction/PackageBv2/PackageBv2.wixproj7
-rw-r--r--src/TestData/MsiTransaction/PackageCv1/PackageC.props9
-rw-r--r--src/TestData/MsiTransaction/PackageCv1/PackageCv1.wixproj4
-rw-r--r--src/TestData/MsiTransaction/PackageCv2/PackageCv2.wixproj7
-rw-r--r--src/TestData/MsiTransaction/PackageD/PackageD.wixproj9
-rw-r--r--src/TestData/MsiTransaction/PackageF/PackageF.wixproj12
19 files changed, 229 insertions, 0 deletions
diff --git a/src/TestData/MsiTransaction/BundleAv1/BundleA.wxi b/src/TestData/MsiTransaction/BundleAv1/BundleA.wxi
new file mode 100644
index 00000000..83b901cb
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleAv1/BundleA.wxi
@@ -0,0 +1,19 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- 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. -->
3
4<?ifndef Version?>
5<?define Version = 1.0.0.0?>
6<?endif?>
7
8<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
9 <Bundle Name="~$(var.TestGroupName) - Bundle A" Version="$(var.Version)" UpgradeCode="{90ED10D5-B187-4470-B498-05D80DAB729A}" Compressed="yes">
10 <Log Prefix="~$(var.TestGroupName)_BundleA"/>
11
12 <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />
13
14 <Chain>
15 <PackageGroupRef Id="TestBA" />
16 <PackageGroupRef Id="BundlePackages" />
17 </Chain>
18 </Bundle>
19</Include>
diff --git a/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj
new file mode 100644
index 00000000..d5845bbe
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.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 </PropertyGroup>
6 <ItemGroup>
7 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
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.63" />
14 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.51" />
15 </ItemGroup>
16</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs
new file mode 100644
index 00000000..24ef3273
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs
@@ -0,0 +1,15 @@
1<?xml version='1.0' encoding='utf-8'?>
2<!-- 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. -->
3
4
5<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>
6 <?include BundleA.wxi ?>
7 <Fragment>
8 <PackageGroup Id="BundlePackages">
9 <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)" />
10 <RollbackBoundary Transaction='yes' />
11 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv1.TargetPath)" />
12 <MsiPackage Id="PackageC" SourceFile="$(var.PackageCv1.TargetPath)" />
13 </PackageGroup>
14 </Fragment>
15</Wix>
diff --git a/src/TestData/MsiTransaction/BundleAv2/BundleAv2.wixproj b/src/TestData/MsiTransaction/BundleAv2/BundleAv2.wixproj
new file mode 100644
index 00000000..2dbb9539
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleAv2/BundleAv2.wixproj
@@ -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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 <Version>2.0.0.0</Version>
6 </PropertyGroup>
7 <ItemGroup>
8 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
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.63" />
15 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.51" />
16 </ItemGroup>
17</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransaction/BundleAv2/BundleAv2.wxs b/src/TestData/MsiTransaction/BundleAv2/BundleAv2.wxs
new file mode 100644
index 00000000..7feab97b
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleAv2/BundleAv2.wxs
@@ -0,0 +1,15 @@
1<?xml version='1.0' encoding='utf-8'?>
2<!-- 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. -->
3
4
5<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>
6 <?include ..\BundleAv1\BundleA.wxi ?>
7 <Fragment>
8 <PackageGroup Id="BundlePackages">
9 <MsiPackage Id="PackageD" SourceFile="$(var.PackageD.TargetPath)" />
10 <RollbackBoundary Transaction='yes' />
11 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv2.TargetPath)" />
12 <MsiPackage Id="PackageC" SourceFile="$(var.PackageCv2.TargetPath)" />
13 </PackageGroup>
14 </Fragment>
15</Wix>
diff --git a/src/TestData/MsiTransaction/BundleBv1/BundleB.wxi b/src/TestData/MsiTransaction/BundleBv1/BundleB.wxi
new file mode 100644
index 00000000..5eeaa6d7
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleBv1/BundleB.wxi
@@ -0,0 +1,19 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- 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. -->
3
4<?ifndef Version?>
5<?define Version = 1.0.0.0?>
6<?endif?>
7
8<Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
9 <Bundle Name="~$(var.TestGroupName) - Bundle B" Version="$(var.Version)" UpgradeCode="{552FD011-4DD6-42B2-A4C6-AD1417C829B2}" Compressed="yes">
10 <Log Prefix="~$(var.TestGroupName)_BundleB"/>
11
12 <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />
13
14 <Chain>
15 <PackageGroupRef Id="TestBA" />
16 <PackageGroupRef Id="BundlePackages" />
17 </Chain>
18 </Bundle>
19</Include>
diff --git a/src/TestData/MsiTransaction/BundleBv1/BundleBv1.wixproj b/src/TestData/MsiTransaction/BundleBv1/BundleBv1.wixproj
new file mode 100644
index 00000000..c4704cbd
--- /dev/null
+++ b/src/TestData/MsiTransaction/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.63" />
12 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.51" />
13 </ItemGroup>
14</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransaction/BundleBv1/BundleBv1.wxs b/src/TestData/MsiTransaction/BundleBv1/BundleBv1.wxs
new file mode 100644
index 00000000..3efe2f5d
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleBv1/BundleBv1.wxs
@@ -0,0 +1,12 @@
1<?xml version='1.0' encoding='utf-8'?>
2<!-- 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. -->
3
4
5<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>
6 <?include BundleB.wxi ?>
7 <Fragment>
8 <PackageGroup Id="BundlePackages">
9 <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv1.TargetPath)" />
10 </PackageGroup>
11 </Fragment>
12</Wix>
diff --git a/src/TestData/MsiTransaction/BundleBv2/BundleBv2.wixproj b/src/TestData/MsiTransaction/BundleBv2/BundleBv2.wixproj
new file mode 100644
index 00000000..9a7f890d
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleBv2/BundleBv2.wixproj
@@ -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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <OutputType>Bundle</OutputType>
5 <Version>2.0.0.0</Version>
6 </PropertyGroup>
7 <ItemGroup>
8 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
9 <ProjectReference Include="..\PackageA\PackageA.wixproj" />
10 <ProjectReference Include="..\PackageBv2\PackageBv2.wixproj" />
11 <ProjectReference Include="..\PackageF\PackageF.wixproj" />
12 </ItemGroup>
13 <ItemGroup>
14 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.63" />
15 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.51" />
16 </ItemGroup>
17</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransaction/BundleBv2/BundleBv2.wxs b/src/TestData/MsiTransaction/BundleBv2/BundleBv2.wxs
new file mode 100644
index 00000000..d5b88b40
--- /dev/null
+++ b/src/TestData/MsiTransaction/BundleBv2/BundleBv2.wxs
@@ -0,0 +1,15 @@
1<?xml version='1.0' encoding='utf-8'?>
2<!-- 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. -->
3
4
5<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>
6 <?include ..\BundleBv1\BundleB.wxi ?>
7 <Fragment>
8 <PackageGroup Id="BundlePackages">
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/MsiTransaction/PackageA/PackageA.wixproj b/src/TestData/MsiTransaction/PackageA/PackageA.wixproj
new file mode 100644
index 00000000..bc18cd44
--- /dev/null
+++ b/src/TestData/MsiTransaction/PackageA/PackageA.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>{7772FCDF-5FDB-497D-B5DF-C6D17D667976}</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/MsiTransaction/PackageBv1/PackageB.props b/src/TestData/MsiTransaction/PackageBv1/PackageB.props
new file mode 100644
index 00000000..decdfb6a
--- /dev/null
+++ b/src/TestData/MsiTransaction/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/MsiTransaction/PackageBv1/PackageBv1.wixproj b/src/TestData/MsiTransaction/PackageBv1/PackageBv1.wixproj
new file mode 100644
index 00000000..7b6f83a3
--- /dev/null
+++ b/src/TestData/MsiTransaction/PackageBv1/PackageBv1.wixproj
@@ -0,0 +1,4 @@
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</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransaction/PackageBv2/PackageBv2.wixproj b/src/TestData/MsiTransaction/PackageBv2/PackageBv2.wixproj
new file mode 100644
index 00000000..126d0f53
--- /dev/null
+++ b/src/TestData/MsiTransaction/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/MsiTransaction/PackageCv1/PackageC.props b/src/TestData/MsiTransaction/PackageCv1/PackageC.props
new file mode 100644
index 00000000..b3d057bd
--- /dev/null
+++ b/src/TestData/MsiTransaction/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/MsiTransaction/PackageCv1/PackageCv1.wixproj b/src/TestData/MsiTransaction/PackageCv1/PackageCv1.wixproj
new file mode 100644
index 00000000..45615706
--- /dev/null
+++ b/src/TestData/MsiTransaction/PackageCv1/PackageCv1.wixproj
@@ -0,0 +1,4 @@
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</Project> \ No newline at end of file
diff --git a/src/TestData/MsiTransaction/PackageCv2/PackageCv2.wixproj b/src/TestData/MsiTransaction/PackageCv2/PackageCv2.wixproj
new file mode 100644
index 00000000..640ad21d
--- /dev/null
+++ b/src/TestData/MsiTransaction/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/MsiTransaction/PackageD/PackageD.wixproj b/src/TestData/MsiTransaction/PackageD/PackageD.wixproj
new file mode 100644
index 00000000..1df5da24
--- /dev/null
+++ b/src/TestData/MsiTransaction/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/MsiTransaction/PackageF/PackageF.wixproj b/src/TestData/MsiTransaction/PackageF/PackageF.wixproj
new file mode 100644
index 00000000..e83006ac
--- /dev/null
+++ b/src/TestData/MsiTransaction/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.65" />
11 </ItemGroup>
12</Project> \ No newline at end of file