2019-07-22 09:36:21 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-License-Identifier: GPL-2.0
Copyright (C) 2018-2019 WireGuard LLC. All Rights Reserved.
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Module Id="wintun" Language="0" Version="$(var.WINTUN_VERSION)">
<Package
Id="c28309d9-1954-4f2d-a7d1-228850092460"
Description="Wintun Userspace Tunnel"
Manufacturer="WireGuard LLC"
InstallerVersion="200"
InstallPrivileges="elevated"
InstallScope="perMachine"
2019-08-02 13:21:15 +02:00
ReadOnly="yes" />
2019-07-22 09:36:21 +02:00
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Guid="b668d4c7-abb3-485a-b8df-d34200489a43">
<RegistryValue
Root="HKLM"
Key="SOFTWARE\Wintun"
Type="integer"
Value="1"
2019-08-02 13:21:15 +02:00
KeyPath="yes" />
2019-07-22 09:36:21 +02:00
</Component>
</Directory>
2019-08-02 13:21:15 +02:00
<Property Id="WintunInstallerHash" Value="$(var.INSTALLER_LIBRARY_HASH)" SuppressModularization="yes" />
<Property Id="WintunInstallerBuildtime" Value="$(var.INSTALLER_LIBRARY_TIME)" SuppressModularization="yes" />
<Property Id="WintunVersion" Value="$(var.WINTUN_VERSION)" SuppressModularization="yes" />
2019-07-22 09:36:21 +02:00
2019-08-02 13:21:15 +02:00
<Binary Id="installer.dll" SourceFile="!(bindpath.output_dir)installer.dll" />
2019-07-22 09:36:21 +02:00
<CustomAction Id="EvaluateWintun" SuppressModularization="yes" BinaryKey="installer.dll" DllEntry="MsiEvaluate" Execute="immediate" />
<CustomAction Id="ProcessWintun" SuppressModularization="yes" BinaryKey="installer.dll" DllEntry="MsiProcess" Execute="deferred" Impersonate="no" />
<InstallExecuteSequence>
2020-02-27 14:56:44 +01:00
<Custom Action="EvaluateWintun" Before="ProcessWintun" />
2019-08-02 13:21:15 +02:00
<Custom Action="ProcessWintun" After="InstallFiles" />
2019-07-22 09:36:21 +02:00
</InstallExecuteSequence>
2019-08-05 13:32:03 +02:00
<?if $(var.WINTUN_PLATFORM) = "x86"?>
2019-08-02 13:21:15 +02:00
<CustomAction Id="WoW64Unsupported" Error="You are attempting to install the 32-bit variant of [ProductName] on a 64-bit operating system, which is not supported. Please install the 64-bit variant instead." />
2019-07-22 09:36:21 +02:00
<InstallExecuteSequence>
<Custom Action="WoW64Unsupported" After="LaunchConditions"><![CDATA[VersionNT64]]></Custom>
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="WoW64Unsupported" After="LaunchConditions"><![CDATA[VersionNT64]]></Custom>
</InstallUISequence>
<?endif?>
</Module>
</Wix>