aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-04-26 09:30:58 +0200
committerSimon Rozman <simon@rozman.si>2019-04-26 09:38:42 +0200
commit95c5503027cc6c4b432ce83e469093077ddd90e8 (patch)
treeaf042d7abfef40fd23fafc1539d21442f3d92a77
parentREADME: only specify SHA1 in certificate specifier (diff)
downloadwintun-95c5503027cc6c4b432ce83e469093077ddd90e8.tar.xz
wintun-95c5503027cc6c4b432ce83e469093077ddd90e8.zip
Prevent WoW64 installations
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--wintun.wxs13
1 files changed, 13 insertions, 0 deletions
diff --git a/wintun.wxs b/wintun.wxs
index 5e57212..50f37e4 100644
--- a/wintun.wxs
+++ b/wintun.wxs
@@ -86,5 +86,18 @@
<InstallUISequence>
<Custom Action="WintunFolder" Before="CostInitialize"/>
</InstallUISequence>
+
+ <!--
+ Prevent WoW64 installations.
+ -->
+ <?if $(var.Platform) = x86?>
+ <CustomAction Id="WoW64Unsupported" Error="You are attempting to install the 32-bit variant of [ProductName] on a 64-bit operating system. 32-bit variant will not work with your operating system. The installation of the 64-bit variant is recommended."/>
+ <InstallExecuteSequence>
+ <Custom Action="WoW64Unsupported" After="LaunchConditions"><![CDATA[VersionNT64]]></Custom>
+ </InstallExecuteSequence>
+ <InstallUISequence>
+ <Custom Action="WoW64Unsupported" After="LaunchConditions"><![CDATA[VersionNT64]]></Custom>
+ </InstallUISequence>
+ <?endif?>
</Module>
</Wix>