aboutsummaryrefslogtreecommitdiff
path: root/project/Win32BuildSetup
diff options
context:
space:
mode:
Diffstat (limited to 'project/Win32BuildSetup')
-rw-r--r--project/Win32BuildSetup/genNsisInstaller.nsi8
1 files changed, 8 insertions, 0 deletions
diff --git a/project/Win32BuildSetup/genNsisInstaller.nsi b/project/Win32BuildSetup/genNsisInstaller.nsi
index 0373722cf2..0e5452a811 100644
--- a/project/Win32BuildSetup/genNsisInstaller.nsi
+++ b/project/Win32BuildSetup/genNsisInstaller.nsi
@@ -9,6 +9,7 @@
!include "nsDialogs.nsh"
!include "LogicLib.nsh"
!include "WinVer.nsh"
+ !include "x64.nsh"
;--------------------------------
;General
@@ -331,6 +332,13 @@ SectionEnd
SectionGroupEnd
Function .onInit
+ !ifdef x64
+ ${IfNot} ${RunningX64}
+ MessageBox MB_OK|MB_ICONSTOP 'This is the 64-bit ${APP_NAME} installer.$\nPlease download the 32-bit version from ${WEBSITE}.$\n$\nClick Ok to quit Setup.'
+ Quit
+ ${Endif}
+ !endif
+
; Win7 SP1 is minimum requirement
${IfNot} ${AtLeastWin7}
${OrIf} ${IsWin7}