From 411a35a56202c7abd26164816e22fa6ee862b5bf Mon Sep 17 00:00:00 2001 From: Rechi Date: Mon, 8 May 2017 21:04:48 +0200 Subject: [windows][installer] error message if x64 runs on win32 --- project/Win32BuildSetup/genNsisInstaller.nsi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'project') 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} -- cgit v1.2.3