aboutsummaryrefslogtreecommitdiffstats
path: root/installer/installer.wxs
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-07-24 09:39:02 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:50:59 +0100
commit5925f914e4c8a41acbae5b347afea7b47da0f87c (patch)
tree7ff255977b7b176d78bc2bfc4cfe510faa389ab2 /installer/installer.wxs
parentapi: tighten source code annotation (diff)
downloadwintun-5925f914e4c8a41acbae5b347afea7b47da0f87c.tar.xz
wintun-5925f914e4c8a41acbae5b347afea7b47da0f87c.zip
api: add support for WoW64
Some functions of SetupAPI only work when invoked from a native process. Registry and filesystem reflection makes them fail on WoW64. For WoW64 processes, a minimum set of rundll32 functions are provided. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'installer/installer.wxs')
-rw-r--r--installer/installer.wxs20
1 files changed, 14 insertions, 6 deletions
diff --git a/installer/installer.wxs b/installer/installer.wxs
index 281b397..b9f5c1a 100644
--- a/installer/installer.wxs
+++ b/installer/installer.wxs
@@ -5,11 +5,6 @@
Copyright (C) 2018-2019 WireGuard LLC. All Rights Reserved.
-->
-<?if $(var.WINTUN_PLATFORM) = "x86"?>
- <?define PlatformSystemFolder = "SystemFolder"?>
-<?else?>
- <?define PlatformSystemFolder = "System64Folder"?>
-<?endif?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Module Id="wintun" Language="0" Version="$(var.WINTUN_VERSION)">
<Package
@@ -31,11 +26,24 @@
KeyPath="yes" />
</Component>
- <Directory Id="$(var.PlatformSystemFolder)">
+ <?if $(var.WINTUN_PLATFORM) = "x86"?>
+ <Directory Id="SystemFolder">
<Component Guid="5dd2a342-6a4c-4af6-8ebc-b05411644b1c">
<File Id="wintun.dll" Name="wintun.dll" Source="!(bindpath.output_dir)wintun.dll" KeyPath="yes" />
</Component>
</Directory>
+ <?else?>
+ <Directory Id="SystemFolder">
+ <Component Guid="493548d6-12f6-4286-8fff-4efa77317a8f">
+ <File Id="wintun.dll-wow64" Name="wintun.dll" Source="!(bindpath.output_dir_wow64)wintun.dll" KeyPath="yes" />
+ </Component>
+ </Directory>
+ <Directory Id="System64Folder">
+ <Component Guid="5dd2a342-6a4c-4af6-8ebc-b05411644b1c">
+ <File Id="wintun.dll" Name="wintun.dll" Source="!(bindpath.output_dir)wintun.dll" KeyPath="yes" />
+ </Component>
+ </Directory>
+ <?endif?>
</Directory>
<Property Id="WintunInstallerHash" Value="$(var.INSTALLER_LIBRARY_HASH)" SuppressModularization="yes" />