aboutsummaryrefslogtreecommitdiff
path: root/src/TestData/Templates/Package.wxs
blob: 813e03d0d09ea54fe53e2deddd59548b03f98e64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!-- 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. -->



<?ifndef Version?>
<?define Version = 1.0.0.0?>
<?endif?>

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
  <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)" Compressed="yes">
    

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate EmbedCab="yes" />

    <Property Id="MsiLogging" Value="voicewarmup" />
    <PropertyRef Id="TestVersion" />

    <Feature Id="Complete" Level="1">
      <ComponentRef Id="FileComponent" />
      <ComponentRef Id="RegistryComponent" />
    </Feature>
  </Package>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="WixDir" Name="~Test WiX">
          <Directory Id="TestDir" Name="$(var.TestGroupName)">
            <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" />
          </Directory>
        </Directory>
      </Directory>
    </Directory>
  </Fragment>

  <Fragment>
    <Component Id="FileComponent" Directory="INSTALLFOLDER">
      <File Source="$(sys.SOURCEFILEPATH)" />
    </Component>
  </Fragment>

  <Fragment>
    <Component Id="RegistryComponent" Directory="INSTALLFOLDER">
      <RegistryValue Root="HKLM" Key="Software\WiX\Tests\$(var.TestGroupName)" Name="$(var.PackageName)" Value="!(bind.Property.TestVersion)" Type="string" />
    </Component>
  </Fragment>

  <Fragment>
    <Property Id="TestVersion" Value="$(var.Version)" />
  </Fragment>
</Wix>