summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-01-25 17:33:46 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-01-25 17:33:46 +0000
commit4952f14eefc6225affadea6f7cd5f949878fa7fa (patch)
treedbd53756cd28c12579a8a8576b04f9761737b2eb /packaging
parentc1738454714aa5dc09cce97b0b32f16bd6749c5c (diff)
downloadrabbitmq-server-git-4952f14eefc6225affadea6f7cd5f949878fa7fa.tar.gz
Check for Erlang as soon as we start, and offer to help the user download it.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/windows-exe/rabbitmq_nsi.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in
index 5b3f65e50d..ab95827c65 100644
--- a/packaging/windows-exe/rabbitmq_nsi.in
+++ b/packaging/windows-exe/rabbitmq_nsi.in
@@ -70,8 +70,6 @@ Section "RabbitMQ (required)" Rabbit
; Set output path to the installation directory.
SetOutPath $INSTDIR
- Call findErlang
-
; Put files there
File /r "rabbitmq_server-%%VERSION%%"
File "rabbitmq.ico"
@@ -168,6 +166,8 @@ SectionEnd
; Functions
Function .onInit
+ Call findErlang
+
ReadRegStr $0 HKLM ${uninstall} "UninstallString"
${If} $0 != ""
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "RabbitMQ is already installed. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this installation." IDOK uninst
@@ -198,7 +198,9 @@ Function findErlang
${Loop}
${If} $2 = "not-found"
- MessageBox MB_OK "Erlang could not be detected. Please install it."
+ MessageBox MB_YESNO|MB_ICONEXCLAMATION "Erlang could not be detected.$\nYou must install Erlang before installing RabbitMQ. Would you like the installer to open a browser window to the Erlang download site?" IDNO abort
+ ExecShell "open" "http://www.erlang.org/download.html"
+ abort:
Abort
${Else}
ReadRegStr $0 HKLM "Software\Ericsson\Erlang\$2" ""