diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-12-01 23:02:05 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-12-01 23:02:05 -0600 |
commit | 5d0434843c6f307a46fa95139c1e754221cc13af (patch) | |
tree | 559f1714b14c08fa09449b62770c9107fae968c3 /src/TestData | |
parent | 86456524fe4640053616f6fc18311159e6fafea5 (diff) | |
download | wix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.gz wix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.bz2 wix-5d0434843c6f307a46fa95139c1e754221cc13af.zip |
Add MSI transaction tests.
Diffstat (limited to 'src/TestData')
24 files changed, 385 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 | ||
diff --git a/src/TestData/Templates/Package.wxs b/src/TestData/Templates/Package.wxs new file mode 100644 index 00000000..813e03d0 --- /dev/null +++ b/src/TestData/Templates/Package.wxs | |||
@@ -0,0 +1,52 @@ | |||
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 | |||
5 | <?ifndef Version?> | ||
6 | <?define Version = 1.0.0.0?> | ||
7 | <?endif?> | ||
8 | |||
9 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
10 | <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)" Compressed="yes"> | ||
11 | |||
12 | |||
13 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
14 | <MediaTemplate EmbedCab="yes" /> | ||
15 | |||
16 | <Property Id="MsiLogging" Value="voicewarmup" /> | ||
17 | <PropertyRef Id="TestVersion" /> | ||
18 | |||
19 | <Feature Id="Complete" Level="1"> | ||
20 | <ComponentRef Id="FileComponent" /> | ||
21 | <ComponentRef Id="RegistryComponent" /> | ||
22 | </Feature> | ||
23 | </Package> | ||
24 | |||
25 | <Fragment> | ||
26 | <Directory Id="TARGETDIR" Name="SourceDir"> | ||
27 | <Directory Id="ProgramFilesFolder"> | ||
28 | <Directory Id="WixDir" Name="~Test WiX"> | ||
29 | <Directory Id="TestDir" Name="$(var.TestGroupName)"> | ||
30 | <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" /> | ||
31 | </Directory> | ||
32 | </Directory> | ||
33 | </Directory> | ||
34 | </Directory> | ||
35 | </Fragment> | ||
36 | |||
37 | <Fragment> | ||
38 | <Component Id="FileComponent" Directory="INSTALLFOLDER"> | ||
39 | <File Source="$(sys.SOURCEFILEPATH)" /> | ||
40 | </Component> | ||
41 | </Fragment> | ||
42 | |||
43 | <Fragment> | ||
44 | <Component Id="RegistryComponent" Directory="INSTALLFOLDER"> | ||
45 | <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" /> | ||
46 | </Component> | ||
47 | </Fragment> | ||
48 | |||
49 | <Fragment> | ||
50 | <Property Id="TestVersion" Value="$(var.Version)" /> | ||
51 | </Fragment> | ||
52 | </Wix> | ||
diff --git a/src/TestData/Templates/PackageFail.wxs b/src/TestData/Templates/PackageFail.wxs new file mode 100644 index 00000000..8754d3f6 --- /dev/null +++ b/src/TestData/Templates/PackageFail.wxs | |||
@@ -0,0 +1,55 @@ | |||
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 | |||
5 | <?ifndef Version?> | ||
6 | <?define Version = 1.0.0.0?> | ||
7 | <?endif?> | ||
8 | |||
9 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
10 | <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)" Compressed="yes"> | ||
11 | |||
12 | |||
13 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
14 | <MediaTemplate EmbedCab="yes" /> | ||
15 | |||
16 | <Property Id="MsiLogging" Value="voicewarmup" /> | ||
17 | <PropertyRef Id="TestVersion" /> | ||
18 | |||
19 | <Feature Id="Complete" Level="1"> | ||
20 | <ComponentRef Id="FileComponent" /> | ||
21 | <ComponentRef Id="RegistryComponent" /> | ||
22 | </Feature> | ||
23 | |||
24 | <util:FailWhenDeferred /> | ||
25 | <Property Id="WIXFAILWHENDEFERRED" Value="1" /> | ||
26 | </Package> | ||
27 | |||
28 | <Fragment> | ||
29 | <Directory Id="TARGETDIR" Name="SourceDir"> | ||
30 | <Directory Id="ProgramFilesFolder"> | ||
31 | <Directory Id="WixDir" Name="~Test WiX"> | ||
32 | <Directory Id="TestDir" Name="$(var.TestGroupName)"> | ||
33 | <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" /> | ||
34 | </Directory> | ||
35 | </Directory> | ||
36 | </Directory> | ||
37 | </Directory> | ||
38 | </Fragment> | ||
39 | |||
40 | <Fragment> | ||
41 | <Component Id="FileComponent" Directory="INSTALLFOLDER"> | ||
42 | <File Source="$(sys.SOURCEFILEPATH)" /> | ||
43 | </Component> | ||
44 | </Fragment> | ||
45 | |||
46 | <Fragment> | ||
47 | <Component Id="RegistryComponent" Directory="INSTALLFOLDER"> | ||
48 | <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" /> | ||
49 | </Component> | ||
50 | </Fragment> | ||
51 | |||
52 | <Fragment> | ||
53 | <Property Id="TestVersion" Value="$(var.Version)" /> | ||
54 | </Fragment> | ||
55 | </Wix> | ||
diff --git a/src/TestData/TestBA/TestBAWixlib/TestBA.wxs b/src/TestData/TestBA/TestBAWixlib/TestBA.wxs new file mode 100644 index 00000000..c16da2e5 --- /dev/null +++ b/src/TestData/TestBA/TestBAWixlib/TestBA.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 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
3 | <Fragment> | ||
4 | <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'> | ||
5 | <Payload Name='WixToolset.Mba.Host.config' SourceFile='!(bindpath.x86)\TestBA.BootstrapperCore.config' /> | ||
6 | <Payload SourceFile='!(bindpath.x86)\TestBA.dll' /> | ||
7 | <Payload SourceFile="!(bindpath.x86)\mbanative.dll" /> | ||
8 | <Payload SourceFile="!(bindpath.x86)\WixToolset.Mba.Core.dll" /> | ||
9 | </BootstrapperApplicationRef> | ||
10 | |||
11 | <PackageGroup Id="TestBA"> | ||
12 | <PackageGroupRef Id="NetFx48WebAsPrereq" /> | ||
13 | </PackageGroup> | ||
14 | </Fragment> | ||
15 | </Wix> | ||
diff --git a/src/TestData/TestBA/TestBAWixlib/testbawixlib.wixproj b/src/TestData/TestBA/TestBAWixlib/testbawixlib.wixproj new file mode 100644 index 00000000..4875bebf --- /dev/null +++ b/src/TestData/TestBA/TestBAWixlib/testbawixlib.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>Library</OutputType> | ||
5 | <BindFiles>true</BindFiles> | ||
6 | <Cultures>en-us</Cultures> | ||
7 | </PropertyGroup> | ||
8 | <ItemGroup> | ||
9 | <BindInputPaths Include="$(OutputPath)..\net35\win-x86" BindName="x86" /> | ||
10 | </ItemGroup> | ||
11 | <ItemGroup> | ||
12 | <ProjectReference Include="..\..\..\Utilities\TestBA\TestBA.csproj" /> | ||
13 | </ItemGroup> | ||
14 | <ItemGroup> | ||
15 | <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.63" /> | ||
16 | </ItemGroup> | ||
17 | </Project> \ No newline at end of file | ||
diff --git a/src/TestData/TestData.proj b/src/TestData/TestData.proj new file mode 100644 index 00000000..e8e61a94 --- /dev/null +++ b/src/TestData/TestData.proj | |||
@@ -0,0 +1,17 @@ | |||
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 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
6 | <ItemGroup> | ||
7 | <TestDataProject Include="**\*.wixproj" /> | ||
8 | </ItemGroup> | ||
9 | |||
10 | <Target Name="Build"> | ||
11 | <MSBuild Projects="%(TestDataProject.Identity)" /> | ||
12 | </Target> | ||
13 | |||
14 | <Target Name="Restore"> | ||
15 | <MSBuild Projects="%(TestDataProject.Identity)" Targets="Restore" /> | ||
16 | </Target> | ||
17 | </Project> \ No newline at end of file | ||