This updates all projects to target .NET Framework 4.7.1. The TencentCOS and Tardigrade backends depend on .NET Standard 2.0. When a .NET Framework prior to 4.7.1 is targeted, the system cannot be sure that all the dependencies exist, so it copies all dependent assemblies to the output directory. This causes many assemblies from the System namespace to become bundled in the release. https://stackoverflow.com/a/48875007 We had previously attempted to make individual projects target 4.7.1 (see pull request #4242), but this can cause compatibility issues when 4.6.2 projects depend on 4.7.1. projects. This will require Mono 5.10.0 or greater (previously, we required 5.0.0 or greater). https://www.mono-project.com/docs/about-mono/releases/5.10.0/#class-libraries This fixes issue #4234.
101 lines
4.7 KiB
XML
101 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?include UpgradeData.wxi ?>
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
|
|
<!-- Various nice-to-have shorthands for x64/x32 -->
|
|
<?if $(var.Platform) = "x64" ?>
|
|
<?define SystemFolder = "System64Folder" ?>
|
|
<?define SystemFolderX86 = "SystemFolder" ?>
|
|
<?define SoftwareKey = "Software" ?>
|
|
<?define SoftwareKeyX86 = "Software\Wow6432Node" ?>
|
|
<?define ProgramFilesFolder = "ProgramFiles64Folder" ?>
|
|
<?define ProgramFilesFolderX86 = "ProgramFilesFolder" ?>
|
|
<?else?>
|
|
<?define SystemFolder = "SystemFolder" ?>
|
|
<?define SystemFolderX86 = "SystemFolder" ?>
|
|
<?define SoftwareKey = "Software" ?>
|
|
<?define SoftwareKeyX86 = "Software" ?>
|
|
<?define ProgramFilesFolder = "ProgramFilesFolder" ?>
|
|
<?endif?>
|
|
|
|
<?define DisplayName = "Duplicati 2" ?>
|
|
|
|
<Product Id="$(var.ProductCode)" Name="$(var.DisplayName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
|
|
<Package InstallerVersion="405" Compressed="yes" Id="$(var.PackageCode)" Platform="$(var.Platform)" InstallScope="perMachine" />
|
|
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
|
|
|
|
<PropertyRef Id="WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED"/>
|
|
<Condition Message="The .NET Framework 4.7.1 must be installed">
|
|
<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED]]>
|
|
</Condition>
|
|
|
|
<WixVariable Id="WixUILicenseRtf" Value="Resources/LGPL21.rtf" />
|
|
<WixVariable Id="WixUIBannerBmp" Value="Resources/InstallerSmall.bmp" />
|
|
<WixVariable Id="WixUIDialogBmp" Value="Resources/InstallerLarge.bmp" />
|
|
|
|
<UI>
|
|
<UIRef Id="WixUI_FeatureTree"/>
|
|
|
|
<Publish Dialog="ExitDialog"
|
|
Control="Finish"
|
|
Event="DoAction"
|
|
Value="LaunchApplication">
|
|
<![CDATA[WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and FORSERVICE = "false" and NOT Installed]]>
|
|
</Publish>
|
|
</UI>
|
|
|
|
<Property Id="FORSERVICE" Value="false" />
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
<Directory Id="ProgramMenuFolder" Name="Programs"/>
|
|
<Directory Id="DesktopFolder" Name="Desktop"/>
|
|
|
|
<Directory Id="$(var.ProgramFilesFolder)">
|
|
<Directory Id="INSTALLLOCATION" Name="Duplicati 2" />
|
|
</Directory>
|
|
</Directory>
|
|
|
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" />
|
|
|
|
<!-- TODO: Make expanded -->
|
|
<Feature Id="DuplicatiCore" Title="Duplicati core files" Level="1" Description="Installs the required files for Duplicati." AllowAdvertise="no" TypicalDefault="install" InstallDefault="local" Absent="disallow" ConfigurableDirectory="INSTALLLOCATION" >
|
|
<Feature Id="DuplicatiDesktopShortCutFeature" Title="Desktop Shortcut" Level="1" Description ="Installs a shortcut to Duplicati on the desktop" Absent="allow" AllowAdvertise="no" TypicalDefault="install" InstallDefault="local">
|
|
<ComponentRef Id="DuplicatiDesktopShortcutComponent"/>
|
|
<Condition Level="0">FORSERVICE = "true"</Condition>
|
|
</Feature>
|
|
|
|
<Feature Id="DuplicatiProgramMenuShortCutFeature" Title="Program Menu Shortcut" Level="1" Description ="Installs a shortcut to Duplicati in the Program menu" Absent="allow" AllowAdvertise="no" TypicalDefault="install" InstallDefault="local">
|
|
<ComponentRef Id="DuplicatiProgramMenuShortcutComponent"/>
|
|
<Condition Level="0">FORSERVICE = "true"</Condition>
|
|
</Feature>
|
|
<ComponentGroupRef Id="DUPLICATIBIN" />
|
|
</Feature>
|
|
|
|
<Feature Id="DuplicatiStartupShortCutFeature" Title="Launch Duplicati at startup" Level="1" Description ="Automatically launches Duplicati when you log on to the computer" Absent="allow" AllowAdvertise="no" TypicalDefault="install" InstallDefault="local">
|
|
<ComponentRef Id="StartupMenuItem"/>
|
|
<Condition Level="0">FORSERVICE = "true"</Condition>
|
|
</Feature>
|
|
|
|
<!-- Launch duplicati setup -->
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Duplicati now" />
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
|
|
<CustomAction Id="LaunchApplication" FileKey="Duplicati.GUI.TrayIcon.exe" Impersonate="yes" ExeCommand="" Return="asyncNoWait" />
|
|
|
|
<!-- Set the Add/Remove icon -->
|
|
<Property Id="ARPPRODUCTICON" Value="DuplicatiIcon.exe" />
|
|
|
|
<!-- Remove old versions -->
|
|
<InstallExecuteSequence>
|
|
<RemoveExistingProducts After="InstallInitialize" />
|
|
</InstallExecuteSequence>
|
|
|
|
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
|
|
<Upgrade Id="$(var.UpgradeCode)">
|
|
<UpgradeVersion Minimum="2.0.0.0" Property="PREVIOUSVERSIONSINSTALLED" Maximum="99.0.0.0" IncludeMinimum="yes" IncludeMaximum="no" />
|
|
</Upgrade>
|
|
|
|
</Product>
|
|
</Wix>
|