aboutsummaryrefslogtreecommitdiff
path: root/src/TestData
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-01-27 20:16:39 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-01-27 21:01:35 -0600
commit347d22f5d5e17bf020fc0c99f1e121e77fcc805c (patch)
tree754bcd24c7e738e60e9d96e74961166baf2a32d5 /src/TestData
parent41f239fb378f8371e10805c3b186ae79d734e4d4 (diff)
downloadwix-347d22f5d5e17bf020fc0c99f1e121e77fcc805c.tar.gz
wix-347d22f5d5e17bf020fc0c99f1e121e77fcc805c.tar.bz2
wix-347d22f5d5e17bf020fc0c99f1e121e77fcc805c.zip
Port the patch tests from the old repo.
Diffstat (limited to 'src/TestData')
-rw-r--r--src/TestData/PatchTests/BundleA/BundleA.wixproj18
-rw-r--r--src/TestData/PatchTests/BundleA/BundleA.wxs11
-rw-r--r--src/TestData/PatchTests/BundlePatchA/BundlePatchA.wixproj18
-rw-r--r--src/TestData/PatchTests/BundlePatchA/BundlePatchA.wxs11
-rw-r--r--src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wixproj19
-rw-r--r--src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wxs12
-rw-r--r--src/TestData/PatchTests/PackageAv1/PackageA.props12
-rw-r--r--src/TestData/PatchTests/PackageAv1/PackageAv1.wixproj4
-rw-r--r--src/TestData/PatchTests/PackageAv1/ProductComponents.wxs17
-rw-r--r--src/TestData/PatchTests/PackageAv1_0_1/PackageAv1_0_1.wixproj10
-rw-r--r--src/TestData/PatchTests/PatchA/PatchA.wixproj12
-rw-r--r--src/TestData/PatchTests/PatchA/PatchA.wxs24
-rw-r--r--src/TestData/PatchTests/PatchA2/PatchA2.wixproj12
-rw-r--r--src/TestData/PatchTests/PatchA2/PatchA2.wxs23
-rw-r--r--src/TestData/Templates/Package.wxs9
15 files changed, 211 insertions, 1 deletions
diff --git a/src/TestData/PatchTests/BundleA/BundleA.wixproj b/src/TestData/PatchTests/BundleA/BundleA.wixproj
new file mode 100644
index 00000000..bbdace55
--- /dev/null
+++ b/src/TestData/PatchTests/BundleA/BundleA.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 <UpgradeCode>{486FC795-69A5-4130-8727-4068F645A0A1}</UpgradeCode>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" />
9 </ItemGroup>
10 <ItemGroup>
11 <ProjectReference Include="..\PackageAv1\PackageAv1.wixproj" />
12 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
13 </ItemGroup>
14 <ItemGroup>
15 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.81" />
16 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.57" />
17 </ItemGroup>
18</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/BundleA/BundleA.wxs b/src/TestData/PatchTests/BundleA/BundleA.wxs
new file mode 100644
index 00000000..d40351a1
--- /dev/null
+++ b/src/TestData/PatchTests/BundleA/BundleA.wxs
@@ -0,0 +1,11 @@
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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag">
4 <Fragment>
5 <PackageGroup Id="BundlePackages">
6 <MsiPackage Id="PackageA" SourceFile="$(var.PackageAv1.TargetPath)" />
7 </PackageGroup>
8
9 <!--<swid:Tag Regid="regid.1995-08.com.example" />-->
10 </Fragment>
11</Wix>
diff --git a/src/TestData/PatchTests/BundlePatchA/BundlePatchA.wixproj b/src/TestData/PatchTests/BundlePatchA/BundlePatchA.wixproj
new file mode 100644
index 00000000..5846fce5
--- /dev/null
+++ b/src/TestData/PatchTests/BundlePatchA/BundlePatchA.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 <UpgradeCode>{AA083618-6280-44B8-9899-57BCC57906A5}</UpgradeCode>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" />
9 </ItemGroup>
10 <ItemGroup>
11 <ProjectReference Include="..\PatchA\PatchA.wixproj" />
12 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
13 </ItemGroup>
14 <ItemGroup>
15 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.81" />
16 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.57" />
17 </ItemGroup>
18</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/BundlePatchA/BundlePatchA.wxs b/src/TestData/PatchTests/BundlePatchA/BundlePatchA.wxs
new file mode 100644
index 00000000..89f24936
--- /dev/null
+++ b/src/TestData/PatchTests/BundlePatchA/BundlePatchA.wxs
@@ -0,0 +1,11 @@
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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag">
4 <Fragment>
5 <PackageGroup Id="BundlePackages">
6 <MspPackage Id="PatchA" SourceFile="$(var.PatchA.TargetPath)" PerMachine="yes" />
7 </PackageGroup>
8
9 <!--<swid:Tag Regid="regid.1995-08.com.example" Type="patch" />-->
10 </Fragment>
11</Wix>
diff --git a/src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wixproj b/src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wixproj
new file mode 100644
index 00000000..dee4a0f3
--- /dev/null
+++ b/src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wixproj
@@ -0,0 +1,19 @@
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 <UpgradeCode>{1BE09331-2327-4534-9223-59B54EFAE7A5}</UpgradeCode>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" />
9 </ItemGroup>
10 <ItemGroup>
11 <ProjectReference Include="..\PatchA\PatchA.wixproj" />
12 <ProjectReference Include="..\PatchA2\PatchA2.wixproj" />
13 <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" />
14 </ItemGroup>
15 <ItemGroup>
16 <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.81" />
17 <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.57" />
18 </ItemGroup>
19</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wxs b/src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.wxs
new file mode 100644
index 00000000..f2c44ad4
--- /dev/null
+++ b/src/TestData/PatchTests/BundlePatchA2/BundlePatchA2.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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag">
4 <Fragment>
5 <PackageGroup Id="BundlePackages">
6 <MspPackage Id="PatchA" SourceFile="$(var.PatchA.TargetPath)" PerMachine="yes" />
7 <MspPackage Id="PatchA2" SourceFile="$(var.PatchA2.TargetPath)" PerMachine="yes" />
8 </PackageGroup>
9
10 <!--<swid:Tag Regid="regid.1995-08.com.example" Type="patch" />-->
11 </Fragment>
12</Wix>
diff --git a/src/TestData/PatchTests/PackageAv1/PackageA.props b/src/TestData/PatchTests/PackageAv1/PackageA.props
new file mode 100644
index 00000000..1209d09e
--- /dev/null
+++ b/src/TestData/PatchTests/PackageAv1/PackageA.props
@@ -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>
3 <PropertyGroup>
4 <PackageName>PackageA</PackageName>
5 <ProductComponentsRef>true</ProductComponentsRef>
6 <ProductCode>{724F9BA5-DD9D-4851-855E-ECC35B27BF11}</ProductCode>
7 <UpgradeCode>{C56DA396-7A9A-4177-8264-638161CE9EB8}</UpgradeCode>
8 </PropertyGroup>
9 <ItemGroup>
10 <Compile Include="..\..\Templates\Package.wxs" Link="Package.wxs" />
11 </ItemGroup>
12</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/PackageAv1/PackageAv1.wixproj b/src/TestData/PatchTests/PackageAv1/PackageAv1.wixproj
new file mode 100644
index 00000000..45d3b2c8
--- /dev/null
+++ b/src/TestData/PatchTests/PackageAv1/PackageAv1.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="PackageA.props" />
4</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/PackageAv1/ProductComponents.wxs b/src/TestData/PatchTests/PackageAv1/ProductComponents.wxs
new file mode 100644
index 00000000..81c6da0c
--- /dev/null
+++ b/src/TestData/PatchTests/PackageAv1/ProductComponents.wxs
@@ -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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag">
4 <Fragment>
5 <ComponentGroup Id="ProductComponents">
6 <ComponentRef Id="RegistryComponent2" />
7 </ComponentGroup>
8
9 <!-- <swid:Tag Regid="regid.1995-08.com.example" /> -->
10 </Fragment>
11
12 <Fragment>
13 <Component Id="RegistryComponent2" Directory="INSTALLFOLDER">
14 <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)2" Value="!(bind.Property.TestVersion)" Type="string" />
15 </Component>
16 </Fragment>
17</Wix>
diff --git a/src/TestData/PatchTests/PackageAv1_0_1/PackageAv1_0_1.wixproj b/src/TestData/PatchTests/PackageAv1_0_1/PackageAv1_0_1.wixproj
new file mode 100644
index 00000000..9ceda117
--- /dev/null
+++ b/src/TestData/PatchTests/PackageAv1_0_1/PackageAv1_0_1.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 <Import Project="..\PackageAv1\PackageA.props" />
4 <PropertyGroup>
5 <Version>1.0.1.0</Version>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\PackageAv1\ProductComponents.wxs" Link="ProductComponents.wxs" />
9 </ItemGroup>
10</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/PatchA/PatchA.wixproj b/src/TestData/PatchTests/PatchA/PatchA.wixproj
new file mode 100644
index 00000000..da9acb5e
--- /dev/null
+++ b/src/TestData/PatchTests/PatchA/PatchA.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 <OutputType>PatchCreation</OutputType>
5 <TargetExt>.msp</TargetExt>
6 <SuppressSpecificWarnings>1079</SuppressSpecificWarnings>
7 </PropertyGroup>
8 <ItemGroup>
9 <ProjectReference Include="..\PackageAv1\PackageAv1.wixproj" />
10 <ProjectReference Include="..\PackageAv1_0_1\PackageAv1_0_1.wixproj" />
11 </ItemGroup>
12</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/PatchA/PatchA.wxs b/src/TestData/PatchTests/PatchA/PatchA.wxs
new file mode 100644
index 00000000..067f25ca
--- /dev/null
+++ b/src/TestData/PatchTests/PatchA/PatchA.wxs
@@ -0,0 +1,24 @@
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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag">
8 <Patch AllowRemoval="yes" Classification="Update" Description="Patch A in test $(var.TestGroupName)" DisplayName="$(var.TestGroupName) - Patch A" Manufacturer="Example Corporation" MinorUpdateTargetRTM="yes">
9 <Media Id="100" Cabinet="PatchA" EmbedCab="yes">
10 <PatchBaseline
11 Id="PatchA"
12 BaselineFile="$(var.PackageAv1.TargetDir)$(var.PackageAv1.TargetName).wixpdb"
13 UpdateFile="$(var.PackageAv1_0_1.TargetDir)$(var.PackageAv1_0_1.TargetName).wixpdb"
14 />
15 </Media>
16
17 <PatchFamily Id="A" Version="$(var.Version)" Supersede="yes">
18 <!-- <swid:TagRef Regid="regid.1995-08.com.example" /> -->
19
20 <ComponentRef Id="RegistryComponent"/>
21 <PropertyRef Id="TestVersion"/>
22 </PatchFamily>
23 </Patch>
24</Wix>
diff --git a/src/TestData/PatchTests/PatchA2/PatchA2.wixproj b/src/TestData/PatchTests/PatchA2/PatchA2.wixproj
new file mode 100644
index 00000000..da9acb5e
--- /dev/null
+++ b/src/TestData/PatchTests/PatchA2/PatchA2.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 <OutputType>PatchCreation</OutputType>
5 <TargetExt>.msp</TargetExt>
6 <SuppressSpecificWarnings>1079</SuppressSpecificWarnings>
7 </PropertyGroup>
8 <ItemGroup>
9 <ProjectReference Include="..\PackageAv1\PackageAv1.wixproj" />
10 <ProjectReference Include="..\PackageAv1_0_1\PackageAv1_0_1.wixproj" />
11 </ItemGroup>
12</Project> \ No newline at end of file
diff --git a/src/TestData/PatchTests/PatchA2/PatchA2.wxs b/src/TestData/PatchTests/PatchA2/PatchA2.wxs
new file mode 100644
index 00000000..a06401cc
--- /dev/null
+++ b/src/TestData/PatchTests/PatchA2/PatchA2.wxs
@@ -0,0 +1,23 @@
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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag">
8 <Patch AllowRemoval="yes" Classification="Update" Description="Patch A2 in test $(var.TestGroupName)" DisplayName="$(var.TestGroupName) - Patch A2" Manufacturer="Example Corporation" MinorUpdateTargetRTM="yes">
9 <Media Id="100" Cabinet="PatchA2" EmbedCab="yes">
10 <PatchBaseline
11 Id="PatchA2"
12 BaselineFile="$(var.PackageAv1.TargetDir)$(var.PackageAv1.TargetName).wixpdb"
13 UpdateFile="$(var.PackageAv1_0_1.TargetDir)$(var.PackageAv1_0_1.TargetName).wixpdb"
14 />
15 </Media>
16
17 <PatchFamily Id="A2" Version="$(var.Version)" Supersede="yes">
18 <!-- <swid:TagRef Regid="regid.1995-08.com.example" /> -->
19
20 <ComponentRef Id="RegistryComponent2"/>
21 </PatchFamily>
22 </Patch>
23</Wix>
diff --git a/src/TestData/Templates/Package.wxs b/src/TestData/Templates/Package.wxs
index 5522b9a3..4923e1aa 100644
--- a/src/TestData/Templates/Package.wxs
+++ b/src/TestData/Templates/Package.wxs
@@ -6,8 +6,12 @@
6<?define Version = 1.0.0.0?> 6<?define Version = 1.0.0.0?>
7<?endif?> 7<?endif?>
8 8
9<?ifndef ProductCode?>
10<?define ProductCode = *?>
11<?endif?>
12
9<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> 13<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"> 14 <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProductCode="$(var.ProductCode)">
11 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 15 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
12 <?ifndef CabPrefix?> 16 <?ifndef CabPrefix?>
13 <MediaTemplate EmbedCab="yes" /> 17 <MediaTemplate EmbedCab="yes" />
@@ -20,6 +24,9 @@
20 <Feature Id="Complete" Level="1"> 24 <Feature Id="Complete" Level="1">
21 <ComponentRef Id="FileComponent" /> 25 <ComponentRef Id="FileComponent" />
22 <ComponentRef Id="RegistryComponent" /> 26 <ComponentRef Id="RegistryComponent" />
27 <?ifdef var.ProductComponents?>
28 <ComponentGroupRef Id="ProductComponents" />
29 <?endif?>
23 </Feature> 30 </Feature>
24 </Package> 31 </Package>
25 32