| 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 | <?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.TestVersion)" Manufacturer="WixToolset" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProductCode="$(var.ProductCode)"> |
| 15 | <MediaTemplate EmbedCab="yes" /> |
| 16 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
| 17 | |
| 18 | <PropertyRef Id="TestVersion" /> |
| 19 | |
| 20 | <Feature Id="Complete" Level="1"> |
| 21 | <ComponentRef Id="RegistryComponent"/> |
| 22 | |
| 23 | <!-- Not installed by default. --> |
| 24 | <Feature Id="Test" Level="100"> |
| 25 | <ComponentRef Id="FileComponent"/> |
| 26 | <ComponentRef Id="RegistryComponent2"/> |
| 27 | </Feature> |
| 28 | </Feature> |
| 29 | </Package> |
| 30 | |
| 31 | <Fragment> |
| 32 | <StandardDirectory Id="ProgramFiles6432Folder"> |
| 33 | <Directory Id="WixDir" Name="~Test WiX"> |
| 34 | <Directory Id="TestDir" Name="$(var.TestGroupName)"> |
| 35 | <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" /> |
| 36 | </Directory> |
| 37 | </Directory> |
| 38 | </StandardDirectory> |
| 39 | </Fragment> |
| 40 | |
| 41 | <Fragment> |
| 42 | <Component Id="FileComponent" Guid="{771E78AA-850D-4E08-AA6D-3F31E30ED140}" Directory="INSTALLFOLDER"> |
| 43 | <File Source="$(sys.SOURCEFILEPATH)" /> |
| 44 | <File Name="notkeypath.file" Source="$(sys.SOURCEFILEPATH)" /> |
| 45 | </Component> |
| 46 | </Fragment> |
| 47 | |
| 48 | <Fragment> |
| 49 | <Component Id="RegistryComponent" Directory="INSTALLFOLDER"> |
| 50 | <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" /> |
| 51 | </Component> |
| 52 | </Fragment> |
| 53 | |
| 54 | <Fragment> |
| 55 | <Component Id="RegistryComponent2" Directory="INSTALLFOLDER"> |
| 56 | <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)2" Value="!(bind.Property.TestVersion)" Type="string" /> |
| 57 | </Component> |
| 58 | </Fragment> |
| 59 | |
| 60 | <Fragment> |
| 61 | <Property Id="TestVersion" Value="$(var.TestVersion)" /> |
| 62 | </Fragment> |
| 63 | </Wix> |