summaryrefslogtreecommitdiff
path: root/packaging/windows-exe
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
commit3967ae179ff45c87df34fdcdeca8f33fdc633fbd (patch)
treef5fdd3a655eed7873a34065d8966926792c34b52 /packaging/windows-exe
parent32b8611ce6529fb79acef8c1f781006fcbaff076 (diff)
downloadrabbitmq-server-git-3967ae179ff45c87df34fdcdeca8f33fdc633fbd.tar.gz
Be a bit smarter about what we remove.
Diffstat (limited to 'packaging/windows-exe')
-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 e03a91cbe2..ab744e7bdb 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?