summaryrefslogtreecommitdiff
path: root/packaging/windows-exe
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-01-27 13:36:32 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-01-27 13:36:32 +0000
commitcd2d66b99ce6031d776989d1a12314af0b719781 (patch)
tree49154261475659b9b1a609ce9eca7abf13a9c919 /packaging/windows-exe
parent8d5bdd249ab6f98bf9dd04777afc64e521909ebf (diff)
downloadrabbitmq-server-git-cd2d66b99ce6031d776989d1a12314af0b719781.tar.gz
Close the installer after starting the uninstaller, to prevent people accidentally bringing the installer to the front and continuing.
Diffstat (limited to 'packaging/windows-exe')
-rw-r--r--packaging/windows-exe/rabbitmq_nsi.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in
index 0cdb13f047..2a261e01cf 100644
--- a/packaging/windows-exe/rabbitmq_nsi.in
+++ b/packaging/windows-exe/rabbitmq_nsi.in
@@ -178,14 +178,14 @@ Function .onInit
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
-
- Abort
+ MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "RabbitMQ is already installed. $\n$\nClick 'OK' to remove the previous version or 'Cancel' to cancel this installation." IDCANCEL norun
;Run the uninstaller
- uninst:
- ClearErrors
- Exec $INSTDIR\uninstall.exe
+ ClearErrors
+ ExecWait $INSTDIR\uninstall.exe
+
+ norun:
+ Abort
${EndIf}
FunctionEnd