summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-01-25 11:43:05 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-01-25 11:43:05 +0000
commit1058dd60a35f9b937eba02d61998cebae085c2dc (patch)
tree6941aebef8a0401b7570579589bb71241397d615
parent8db11261bc4581c741c5198b0feb65583b52633d (diff)
downloadrabbitmq-server-1058dd60a35f9b937eba02d61998cebae085c2dc.tar.gz
Add some links to the start menu
-rw-r--r--packaging/windows-exe/rabbitmq_nsi.in19
1 files changed, 14 insertions, 5 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in
index 6767c027..ae87945d 100644
--- a/packaging/windows-exe/rabbitmq_nsi.in
+++ b/packaging/windows-exe/rabbitmq_nsi.in
@@ -81,6 +81,14 @@ Section "RabbitMQ Service" RabbitService
CopyFiles "$WINDIR\.erlang.cookie" "$APPDATA\.erlang.cookie"
SectionEnd
+;--------------------------------
+
+Section "Start Menu" RabbitStartMenu
+ CreateDirectory "$SMPROGRAMS\RabbitMQ"
+ CreateShortCut "$SMPROGRAMS\RabbitMQ\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
+ CreateShortCut "$SMPROGRAMS\RabbitMQ\Plugins Directory.lnk" "$INSTDIR\rabbitmq_server-%%VERSION%%\plugins"
+ CreateShortCut "$SMPROGRAMS\RabbitMQ\Database and Log Directory.lnk" "$APPDATA\RabbitMQ"
+SectionEnd
;--------------------------------
@@ -88,10 +96,12 @@ SectionEnd
LangString DESC_Rabbit ${LANG_ENGLISH} "The RabbitMQ Server."
LangString DESC_RabbitService ${LANG_ENGLISH} "Set up RabbitMQ as a Windows Service."
+LangString DESC_RabbitStartMenu ${LANG_ENGLISH} "Add some useful links to the start menu."
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${Rabbit} $(DESC_Rabbit)
!insertmacro MUI_DESCRIPTION_TEXT ${RabbitService} $(DESC_RabbitService)
+ !insertmacro MUI_DESCRIPTION_TEXT ${RabbitStartMenu} $(DESC_RabbitStartMenu)
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;--------------------------------
@@ -109,14 +119,13 @@ Section "Uninstall"
ExecWait "$INSTDIR\rabbitmq_server-%%VERSION%%\sbin\rabbitmq-service.bat remove"
; Remove files and uninstaller
- RMDir /r $INSTDIR
+ RMDir /r "$INSTDIR"
- ; Remove shortcuts, if any
- ;Delete "$SMPROGRAMS\RabbitMQ\*.*"
+ ; Remove shortcuts
+ Delete "$SMPROGRAMS\RabbitMQ\*.*"
; Remove directories used
- ;RMDir "$SMPROGRAMS\RabbitMQ"
- ;RMDir "$INSTDIR"
+ RMDir "$SMPROGRAMS\RabbitMQ"
; TODO: unset ERLANG_HOME?