From c12c3c071fcf9ad8630f3c6173ec0226d2d027c5 Mon Sep 17 00:00:00 2001 From: tooomm Date: Tue, 17 Jul 2018 07:40:45 +0200 Subject: [PATCH] NSIS: Show hint when user installs 32bit Cockatrice on 64bit Windows (#3331) * hint for 32bit * final wording --- cmake/NSIS.template.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cmake/NSIS.template.in b/cmake/NSIS.template.in index 4e81b7df..9373c6cd 100644 --- a/cmake/NSIS.template.in +++ b/cmake/NSIS.template.in @@ -45,14 +45,20 @@ Page Custom PortableModePageCreate PortableModePageLeave Function .onInit -${If} ${NSIS_IS_64_BIT} == 1 +${If} ${NSIS_IS_64_BIT} == 1 #NSIS 64bit ${IfNot} ${RunningX64} - MessageBox MB_OK|MB_ICONEXCLAMATION "This version of Cockatrice requires a 64-bit Windows system." + MessageBox MB_OK|MB_ICONSTOP "This version of Cockatrice requires a 64-bit Windows system." Abort ${EndIf} StrCpy $NormalDestDir "$ProgramFiles64\Cockatrice" SetRegView 64 -${Else} +${Else} #NSIS 32bit + ${If} ${RunningX64} + MessageBox MB_OK|MB_ICONEXCLAMATION \ + "You are about to install a 32-bit version of Cockatrice on a 64-bit Windows system.$\n\ + We advise you to use the correct 64-bit installer instead to get around potential issues.$\n$\n\ + Download from our webpage: https://cockatrice.github.io" + ${EndIf} StrCpy $NormalDestDir "$ProgramFiles\Cockatrice" ${EndIf}