summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-02-07 14:04:39 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-02-07 14:04:39 +0000
commitbaf3d2403bb137ec964aeaedfb0f6d0261667d88 (patch)
tree60b1c8a22a00d6e794c54e5c950ca1b467358bfd /packaging
parent620b0619f7f5a7ffe802b79af552e903a2190a5b (diff)
downloadrabbitmq-server-baf3d2403bb137ec964aeaedfb0f6d0261667d88.tar.gz
Check Erlang version.bug17383
Diffstat (limited to 'packaging')
-rw-r--r--packaging/windows-exe/rabbitmq_nsi.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in
index c75ed736..6d79ffd4 100644
--- a/packaging/windows-exe/rabbitmq_nsi.in
+++ b/packaging/windows-exe/rabbitmq_nsi.in
@@ -3,6 +3,7 @@
!include LogicLib.nsh
!include WinMessages.nsh
!include FileFunc.nsh
+!include WordFunc.nsh
!include lib\EnvVarUpdate.nsh
!define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
@@ -214,6 +215,18 @@ Function findErlang
abort:
Abort
${Else}
+ ${VersionCompare} $2 "5.6.3" $0
+ ${VersionCompare} $2 "5.8.1" $1
+
+ ${If} $0 = 2
+ MessageBox MB_OK|MB_ICONEXCLAMATION "Your installed version of Erlang ($2) is too old. Please install a more recent version."
+ Abort
+ ${ElseIf} $1 = 2
+ MessageBox MB_YESNO|MB_ICONEXCLAMATION "Your installed version of Erlang ($2) is comparatively old.$\nFor best results, please install a newer version.$\nDo you wish to continue?" IDYES no_abort
+ Abort
+ no_abort:
+ ${EndIf}
+
ReadRegStr $0 HKLM "Software\Ericsson\Erlang\$2" ""
; See http://nsis.sourceforge.net/Setting_Environment_Variables