From 48619ee84d39f483288727588afaf2d6b5872006 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Tue, 5 May 2020 22:20:49 +0200 Subject: [PATCH] Add startmenu folder with several items Added a startmenu folder with the following items: * Dino launcher * License * Link to Dino website * Uninstaller --- windows-installer/dino.nsi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/windows-installer/dino.nsi b/windows-installer/dino.nsi index bb2afc94..5ffafdfc 100644 --- a/windows-installer/dino.nsi +++ b/windows-installer/dino.nsi @@ -40,14 +40,21 @@ File input/plugins/* WriteUninstaller $INSTDIR\uninstaller.exe # Create a shortcut for startmenu -CreateShortcut "$SMPROGRAMS\dino.lnk" "$INSTDIR\bin\dino.exe" "" "$INSTDIR\logo.ico" +CreateDirectory "$SMPROGRAMS\Dino" +CreateShortcut "$SMPROGRAMS\Dino\Dino.lnk" "$INSTDIR\bin\dino.exe" "" "$INSTDIR\logo.ico" +CreateShortcut "$SMPROGRAMS\Dino\Uninstaller.lnk" "$INSTDIR\uninstaller.exe" +CreateShortcut "$SMPROGRAMS\Dino\License.lnk" "$INSTDIR\LICENSE" "" "notepad.exe" 0 +CreateShortcut "$SMPROGRAMS\Dino\Dino website.lnk" "https://dino.im" "" "$INSTDIR\logo.ico" # default section end SectionEnd # Uninsaller section Section "Uninstall" - + +# Delete startmenu folder +RMDir /r "$SMPROGRAMS\Dino" + # Always delete uninstaller first Delete $INSTDIR\uninstaller.exe