summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-01-25 17:57:33 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-01-25 17:57:33 +0000
commitc3becaada04e0596685d65e0f31bf72c8c5f9334 (patch)
treef5fdd3a655eed7873a34065d8966926792c34b52 /packaging
parent9faee7dc6cb256ae89ff148d15139d9bffa5bfbb (diff)
downloadrabbitmq-server-c3becaada04e0596685d65e0f31bf72c8c5f9334.tar.gz
Be a bit smarter about what we remove.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/windows-exe/rabbitmq_nsi.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in
index e03a91cb..ab744e7b 100644
--- a/packaging/windows-exe/rabbitmq_nsi.in
+++ b/packaging/windows-exe/rabbitmq_nsi.in
@@ -149,13 +149,12 @@ Section "Uninstall"
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\rabbitmq_server-%%VERSION%%\sbin"
; Remove files and uninstaller
- RMDir /r "$INSTDIR"
+ RMDir /r "$INSTDIR\rabbitmq_server-%%VERSION%%"
+ Delete "$INSTDIR\rabbitmq.ico"
+ Delete "$INSTDIR\uninstall.exe"
- ; Remove shortcuts
- Delete "$SMPROGRAMS\RabbitMQ\*.*"
-
- ; Remove directories used
- RMDir "$SMPROGRAMS\RabbitMQ"
+ ; Remove start menu items
+ RMDir /r "$SMPROGRAMS\RabbitMQ"
; TODO: unset ERLANG_HOME?