aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/Templates/PackageFail.wxs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/burn/TestData/Templates/PackageFail.wxs')
-rw-r--r--src/test/burn/TestData/Templates/PackageFail.wxs50
1 files changed, 50 insertions, 0 deletions
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>