aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/TestData/Templates/Bundle.wxs
blob: 439745242265f10d75965b15b9f82bc165a753eb (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
53
54
55
56
57
58
59
60
61
62
<!-- 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?>
<?ifndef BundleLogDirectory?>
<?define BundleLogDirectory = .?>
<?endif?>

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
  <Bundle Name="~$(var.TestGroupName) - $(var.BundleName)" Version="$(var.Version)" UpgradeCode="$(var.UpgradeCode)" Compressed="yes">
    <Log Prefix="$(var.BundleLogDirectory)\~$(var.TestGroupName)_$(var.BundleName)" />

    <Variable Name="TestGroupName" Value="$(var.TestGroupName)" />

    <?ifdef SoftwareTag?>
    <SoftwareTag Regid="regid.1995-08.com.example" InstallPath="[CommonAppDataFolder]TestingSwidTags" />
    <?endif?>

    <?ifndef BA?>
      <!-- pulled in through the PackageGroupRef below -->
    <?elseif $(var.BA) = "TestBAdnc"?>
      <!-- pulled in through the PackageGroupRef below -->
    <?elseif $(var.BA) = "TestBA_x64"?>
      <!-- pulled in through the PackageGroupRef below -->
    <?elseif $(var.BA) = "TestBAdnc_x64"?>
      <!-- pulled in through the PackageGroupRef below -->
    <?elseif $(var.BA) = "WixBA"?>
      <!-- pulled in through the PackageGroupRef below -->
    <?elseif $(var.BA) = "WixBAdnc_x64"?>
      <!-- pulled in through the PackageGroupRef below -->
    <?elseif $(var.BA) = "hyperlinkLicense"?>
      <BootstrapperApplication>
        <bal:WixStandardBootstrapperApplication LicenseUrl="" Theme="hyperlinkLicense" />
      </BootstrapperApplication>
    <?elseif $(var.BA) = "iui"?>
      <BootstrapperApplication>
        <bal:WixInternalUIBootstrapperApplication />
      </BootstrapperApplication>
    <?else?>
      <BootstrapperApplicationRef Id="$(var.BA)" />
    <?endif?>

    <Chain>
      <?ifndef BA?>
        <PackageGroupRef Id="TestBA" />
      <?elseif $(var.BA) = "TestBAdnc"?>
        <PackageGroupRef Id="TestBAdnc" />
      <?elseif $(var.BA) = "TestBA_x64"?>
        <PackageGroupRef Id="TestBA_x64" />
      <?elseif $(var.BA) = "TestBAdnc_x64"?>
        <PackageGroupRef Id="TestBAdnc_x64" />
      <?elseif $(var.BA) = "WixBA"?>
        <PackageGroupRef Id="WixBA" />
      <?elseif $(var.BA) = "WixBAdnc_x64"?>
        <PackageGroupRef Id="WixBAdnc_x64" />
      <?endif?>

      <PackageGroupRef Id="BundlePackages" />
    </Chain>
  </Bundle>
</Wix>