| 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 | <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="SwidTagBaseFolder" /> |
| 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 | <?ifdef SoftwareTag?> |
| 39 | <StandardDirectory Id="CommonAppDataFolder"> |
| 40 | <Directory Id="SwidTagBaseFolder" Name="TestingSwidTags" /> |
| 41 | </StandardDirectory> |
| 42 | <?endif?> |
| 43 | |
| 44 | <StandardDirectory Id="ProgramFiles6432Folder"> |
| 45 | <Directory Id="WixDir" Name="~Test WiX"> |
| 46 | <Directory Id="TestDir" Name="$(var.TestGroupName)"> |
| 47 | <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" /> |
| 48 | </Directory> |
| 49 | </Directory> |
| 50 | </StandardDirectory> |
| 51 | </Fragment> |
| 52 | |
| 53 | <Fragment> |
| 54 | <Component Id="FileComponent" Directory="INSTALLFOLDER"> |
| 55 | <File Source="$(sys.SOURCEFILEPATH)" /> |
| 56 | </Component> |
| 57 | </Fragment> |
| 58 | |
| 59 | <Fragment> |
| 60 | <Component Id="RegistryComponent" Directory="INSTALLFOLDER"> |
| 61 | <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" /> |
| 62 | </Component> |
| 63 | </Fragment> |
| 64 | |
| 65 | <Fragment> |
| 66 | <Property Id="TestVersion" Value="$(var.TestVersion)" /> |
| 67 | </Fragment> |
| 68 | </Wix> |