summaryrefslogtreecommitdiff
path: root/buildscripts/packaging/msi/wxs/LicensingFragment.wxs
blob: 00600663a97d7f567849925018930adc49eadc76 (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
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Fragment>
    
    <DirectoryRef Id="INSTALLLOCATION">
      <?if $(var.Edition) = Enterprise ?>
        <Component Id="c_EnterpriseLicense" Guid="C0EF85E2-95F8-468B-BA95-2F739C63D2D7">
          <File Id="f_EnterpriseLicense" Name="LICENSE.txt" Source="$(var.EnterpriseBase)\distsrc\LICENSE.txt"
                DiskId ="1" KeyPath="yes" />
        </Component>
      <?else?>
        <Component Id="c_License" Guid="54C0700D-A294-4F40-A396-04CC606A7299">
          <File Id="f_GnuLicense" Name="GNU-AGPL-3.0" Source="$(var.LicenseSource)\GNU-AGPL-3.0"
                DiskId ="1" KeyPath="yes" />
        </Component>
      <?endif?>
      <Component Id="c_Readme" Guid="12C17EA1-075C-4A1D-9554-F3B5A2A94874">
        <File Id="f_Readme" Name="README" Source="$(var.LicenseSource)\README"
              DiskId ="1" />
      </Component>
        <Component Id="c_Thirdparty" Guid="D6098364-6DE8-48EA-A955-7D1060752132">
        <File Id="f_Thirdparty" Name="THIRD-PARTY-NOTICES" Source="$(var.LicenseSource)\THIRD-PARTY-NOTICES"
              DiskId ="1" />
      </Component>
    </DirectoryRef>

    <ComponentGroup Id="cg_License">
      <ComponentRef Id="c_Readme"/>
      <ComponentRef Id="c_Thirdparty"/>
      <?if $(var.Edition) = Enterprise ?>
        <ComponentRef Id="c_EnterpriseLicense"/>
      <?else?>
        <ComponentRef Id="c_License"/>
      <?endif?>
    </ComponentGroup>

    <?if $(var.Edition) = Enterprise ?>
      <WixVariable Id="WixUILicenseRtf" Value="$(var.EnterpriseBase)\distsrc\LICENSE.rtf" />
    <?else ?>
      <WixVariable Id="WixUILicenseRtf" Value=".\GNU-AGPL-3.0.rtf" />
    <?endif ?>

  </Fragment>
</Wix>