aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/Templates
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-04-22 17:12:34 -0700
committerRob Mensching <rob@firegiant.com>2021-05-05 11:18:35 -0700
commitd8e47230e094a506406a83eb78916abf2668b29c (patch)
tree2213ee3ed1a19fd5cd19a5914a23b7f7a57318ff /src/test/burn/TestData/Templates
parent2cbe83832cc76aa379b29665de5523e82c543acf (diff)
downloadwix-d8e47230e094a506406a83eb78916abf2668b29c.tar.gz
wix-d8e47230e094a506406a83eb78916abf2668b29c.tar.bz2
wix-d8e47230e094a506406a83eb78916abf2668b29c.zip
Move Integration into test
Diffstat (limited to 'src/test/burn/TestData/Templates')
-rw-r--r--src/test/burn/TestData/Templates/Bundle.wxs47
-rw-r--r--src/test/burn/TestData/Templates/Package.wxs62
-rw-r--r--src/test/burn/TestData/Templates/PackageFail.wxs50
-rw-r--r--src/test/burn/TestData/Templates/PackagePerUser.wxs62
4 files changed, 221 insertions, 0 deletions
diff --git a/src/test/burn/TestData/Templates/Bundle.wxs b/src/test/burn/TestData/Templates/Bundle.wxs
new file mode 100644
index 00000000..06409504
--- /dev/null
+++ b/src/test/burn/TestData/Templates/Bundle.wxs
@@ -0,0 +1,47 @@
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:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
8 <Bundle Name="~$(var.TestGroupName) - $(var.BundleName)" Version="$(var.Version)" UpgradeCode="$(var.UpgradeCode)" Compressed="yes">
9 <Log Prefix="~$(var.TestGroupName)_$(var.BundleName)" />
10
11 <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />
12
13 <?ifdef SoftwareTag?>
14 <SoftwareTag Regid="regid.1995-08.com.example" InstallPath="[CommonAppDataFolder]regid.1995-08.com.example" />
15 <?endif?>
16
17 <?ifndef BA?>
18 <!-- pulled in through the PackageGroupRef below -->
19 <?elseif $(var.BA) = "TestBAdnc"?>
20 <!-- pulled in through the PackageGroupRef below -->
21 <?elseif $(var.BA) = "TestBA_x64"?>
22 <!-- pulled in through the PackageGroupRef below -->
23 <?elseif $(var.BA) = "TestBAdnc_x64"?>
24 <!-- pulled in through the PackageGroupRef below -->
25 <?elseif $(var.BA) = "hyperlinkLicense"?>
26 <BootstrapperApplication>
27 <bal:WixStandardBootstrapperApplication LicenseUrl="" Theme="hyperlinkLicense" />
28 </BootstrapperApplication>
29 <?else?>
30 <BootstrapperApplicationRef Id="$(var.BA)" />
31 <?endif?>
32
33 <Chain>
34 <?ifndef BA?>
35 <PackageGroupRef Id="TestBA" />
36 <?elseif $(var.BA) = "TestBAdnc"?>
37 <PackageGroupRef Id="TestBAdnc" />
38 <?elseif $(var.BA) = "TestBA_x64"?>
39 <PackageGroupRef Id="TestBA_x64" />
40 <?elseif $(var.BA) = "TestBAdnc_x64"?>
41 <PackageGroupRef Id="TestBAdnc_x64" />
42 <?endif?>
43
44 <PackageGroupRef Id="BundlePackages" />
45 </Chain>
46 </Bundle>
47</Wix>
diff --git a/src/test/burn/TestData/Templates/Package.wxs b/src/test/burn/TestData/Templates/Package.wxs
new file mode 100644
index 00000000..48ed5e02
--- /dev/null
+++ b/src/test/burn/TestData/Templates/Package.wxs
@@ -0,0 +1,62 @@
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<?ifndef ProductCode?>
10<?define ProductCode = *?>
11<?endif?>
12
13<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
14 <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProductCode="$(var.ProductCode)">
15 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
16 <?ifndef CabPrefix?>
17 <MediaTemplate EmbedCab="yes" />
18 <?else?>
19 <MediaTemplate CabinetTemplate="{0}$(var.CabPrefix).cab" />
20 <?endif?>
21
22 <?ifdef SoftwareTag?>
23 <SoftwareTag Regid="regid.1995-08.com.example" InstallDirectory="CommonAppDataFolder" />
24 <?endif?>
25
26 <PropertyRef Id="TestVersion" />
27
28 <Feature Id="Complete" Level="1">
29 <ComponentRef Id="FileComponent" />
30 <ComponentRef Id="RegistryComponent" />
31 <?ifdef var.ProductComponents?>
32 <ComponentGroupRef Id="ProductComponents" />
33 <?endif?>
34 </Feature>
35 </Package>
36
37 <Fragment>
38 <StandardDirectory Id="ProgramFiles6432Folder">
39 <Directory Id="WixDir" Name="~Test WiX">
40 <Directory Id="TestDir" Name="$(var.TestGroupName)">
41 <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" />
42 </Directory>
43 </Directory>
44 </StandardDirectory>
45 </Fragment>
46
47 <Fragment>
48 <Component Id="FileComponent" Directory="INSTALLFOLDER">
49 <File Source="$(sys.SOURCEFILEPATH)" />
50 </Component>
51 </Fragment>
52
53 <Fragment>
54 <Component Id="RegistryComponent" Directory="INSTALLFOLDER">
55 <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" />
56 </Component>
57 </Fragment>
58
59 <Fragment>
60 <Property Id="TestVersion" Value="$(var.Version)" />
61 </Fragment>
62</Wix>
diff --git a/src/test/burn/TestData/Templates/PackageFail.wxs b/src/test/burn/TestData/Templates/PackageFail.wxs
new file mode 100644
index 00000000..0139c22b
--- /dev/null
+++ b/src/test/burn/TestData/Templates/PackageFail.wxs
@@ -0,0 +1,50 @@
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 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
12 <MediaTemplate EmbedCab="yes" />
13
14 <PropertyRef Id="TestVersion" />
15
16 <Feature Id="Complete" Level="1">
17 <ComponentRef Id="FileComponent" />
18 <ComponentRef Id="RegistryComponent" />
19 </Feature>
20
21 <util:FailWhenDeferred />
22 <Property Id="WIXFAILWHENDEFERRED" Secure="yes" Value="1" />
23 </Package>
24
25 <Fragment>
26 <StandardDirectory Id="ProgramFilesFolder">
27 <Directory Id="WixDir" Name="~Test WiX">
28 <Directory Id="TestDir" Name="$(var.TestGroupName)">
29 <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" />
30 </Directory>
31 </Directory>
32 </StandardDirectory>
33 </Fragment>
34
35 <Fragment>
36 <Component Id="FileComponent" Directory="INSTALLFOLDER">
37 <File Source="$(sys.SOURCEFILEPATH)" />
38 </Component>
39 </Fragment>
40
41 <Fragment>
42 <Component Id="RegistryComponent" Directory="INSTALLFOLDER">
43 <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" />
44 </Component>
45 </Fragment>
46
47 <Fragment>
48 <Property Id="TestVersion" Value="$(var.Version)" />
49 </Fragment>
50</Wix>
diff --git a/src/test/burn/TestData/Templates/PackagePerUser.wxs b/src/test/burn/TestData/Templates/PackagePerUser.wxs
new file mode 100644
index 00000000..5e18fefd
--- /dev/null
+++ b/src/test/burn/TestData/Templates/PackagePerUser.wxs
@@ -0,0 +1,62 @@
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<?ifndef ProductCode?>
10<?define ProductCode = *?>
11<?endif?>
12
13<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
14 <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProductCode="$(var.ProductCode)" Scope="perUser">
15 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
16 <?ifndef CabPrefix?>
17 <MediaTemplate EmbedCab="yes" />
18 <?else?>
19 <MediaTemplate CabinetTemplate="{0}$(var.CabPrefix).cab" />
20 <?endif?>
21
22 <?ifdef SoftwareTag?>
23 <SoftwareTag Regid="regid.1995-08.com.example" InstallDirectory="LocalAppDataFolder" />
24 <?endif?>
25
26 <PropertyRef Id="TestVersion" />
27
28 <Feature Id="Complete" Level="1">
29 <ComponentRef Id="FileComponent" />
30 <ComponentRef Id="RegistryComponent" />
31 <?ifdef var.ProductComponents?>
32 <ComponentGroupRef Id="ProductComponents" />
33 <?endif?>
34 </Feature>
35 </Package>
36
37 <Fragment>
38 <StandardDirectory Id="LocalAppDataFolder">
39 <Directory Id="WixDir" Name="~Test WiX">
40 <Directory Id="TestDir" Name="$(var.TestGroupName)">
41 <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" />
42 </Directory>
43 </Directory>
44 </StandardDirectory>
45 </Fragment>
46
47 <Fragment>
48 <Component Id="FileComponent" Directory="INSTALLFOLDER">
49 <File Source="$(sys.SOURCEFILEPATH)" />
50 </Component>
51 </Fragment>
52
53 <Fragment>
54 <Component Id="RegistryComponent" Directory="INSTALLFOLDER">
55 <RegistryValue Root="HKCU" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" />
56 </Component>
57 </Fragment>
58
59 <Fragment>
60 <Property Id="TestVersion" Value="$(var.Version)" />
61 </Fragment>
62</Wix>