summaryrefslogtreecommitdiffstats
path: root/packaging/windows/subsurface.nsi.in
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-29 11:24:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-29 13:01:19 -0700
commit0e0d6135afb626480f85135cf1c16c1701105088 (patch)
tree47f4db1e37f244cff91abed48d83b1b27ca97bb4 /packaging/windows/subsurface.nsi.in
parentd5f19c43c925468f363f0e509816df724f930db9 (diff)
downloadsubsurface-0e0d6135afb626480f85135cf1c16c1701105088.tar.gz
Don't install Windows 64bit binaries on 32bit system
Also warn people installing 32bit binaries on a 64bit system Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/windows/subsurface.nsi.in')
-rw-r--r--packaging/windows/subsurface.nsi.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in
index f1af9e9e5..58b59a66b 100644
--- a/packaging/windows/subsurface.nsi.in
+++ b/packaging/windows/subsurface.nsi.in
@@ -84,6 +84,19 @@
# Default installer section
Section
+ !include x64.nsh
+ ${If} 64BITBUILDTOKEN
+ ${IfNot} ${RunningX64}
+ Abort "You cannot install the 64bit version of Subsurface on a 32bit version of Windows"
+ ${EndIf}
+ ${Else}
+ ${If} ${RunningX64}
+ MessageBox MB_YESNO "Do you really want to install the 32bit version of Subsurface on your 64bit version of Windows?" IDYES goforit
+ Abort "Please download the 64bit version of the Subsurface installer"
+ goforit:
+ ${EndIf}
+ ${Endif}
+
SetShellVarContext all
# Installation path