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