diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-01-25 11:43:05 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-01-25 11:43:05 +0000 |
| commit | 665231abe63b59caea9c569a5791d9f2160efccf (patch) | |
| tree | 6941aebef8a0401b7570579589bb71241397d615 | |
| parent | 04e88967d09d1fc14a7ec4a4c0dc27387b44f72d (diff) | |
| download | rabbitmq-server-git-665231abe63b59caea9c569a5791d9f2160efccf.tar.gz | |
Add some links to the start menu
| -rw-r--r-- | packaging/windows-exe/rabbitmq_nsi.in | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/packaging/windows-exe/rabbitmq_nsi.in b/packaging/windows-exe/rabbitmq_nsi.in index 6767c027dc..ae87945db3 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? |
