diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-02-07 14:04:39 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-02-07 14:04:39 +0000 |
| commit | 9aa8ea2cb1f0b4a74c624ffa777b592300fdfef4 (patch) | |
| tree | 60b1c8a22a00d6e794c54e5c950ca1b467358bfd /packaging | |
| parent | 443fa7f8bb386ef50606030b65ac44807968375e (diff) | |
| download | rabbitmq-server-git-9aa8ea2cb1f0b4a74c624ffa777b592300fdfef4.tar.gz | |
Check Erlang version.
Diffstat (limited to 'packaging')
| -rw-r--r-- | packaging/windows-exe/rabbitmq_nsi.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in index c75ed736ef..6d79ffd4fc 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 |
