| 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 TestVersion?> |
| 6 | <?define TestVersion = 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.TestVersion)" Manufacturer="WixToolset" 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.TestVersion)" /> |
| 49 | </Fragment> |
| 50 | </Wix> |