From: Uwe Hermann Date: Sun, 9 Aug 2015 15:27:18 +0000 (+0200) Subject: nsis: Add start menu entries for Zadig. X-Git-Tag: sigrok-cli-0.6.0~24 X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=6ffb657795f2c4115a7483580c80f27f8d60d4ec;hp=5899178d2d92d12bb8bed7e6b874ea778b7329c2 nsis: Add start menu entries for Zadig. This fixes bug #543. --- diff --git a/contrib/sigrok-cli_cross.nsi.in b/contrib/sigrok-cli_cross.nsi.in index d4311a4..7a9ec7e 100644 --- a/contrib/sigrok-cli_cross.nsi.in +++ b/contrib/sigrok-cli_cross.nsi.in @@ -170,6 +170,16 @@ Section "@PACKAGE_NAME@ (required)" Section1 "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 \ SW_SHOWNORMAL "" "Uninstall @PACKAGE_NAME@" + # Create a shortcut for the Zadig executable. + CreateShortCut "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\Zadig.lnk" \ + "$INSTDIR\zadig.exe" "" "$INSTDIR\zadig.exe" 0 \ + SW_SHOWNORMAL "" "Zadig" + + # Create a shortcut for the Zadig executable (for Win XP). + CreateShortCut "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\Zadig (Win XP).lnk" \ + "$INSTDIR\zadig_xp.exe" "" "$INSTDIR\zadig_xp.exe" 0 \ + SW_SHOWNORMAL "" "Zadig (Win XP)" + # Create registry keys for "Add/remove programs" in the control panel. WriteRegStr HKLM "${REGSTR}" "DisplayName" "@PACKAGE_STRING@" WriteRegStr HKLM "${REGSTR}" "UninstallString" \ @@ -232,6 +242,8 @@ Section "Uninstall" # Delete the links from the start menu. Delete "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\sigrok command-line tool.lnk" Delete "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\Uninstall.lnk" + Delete "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\Zadig.lnk" + Delete "$SMPROGRAMS\sigrok\@PACKAGE_NAME@\Zadig (Win XP).lnk" # Delete the sub-directory in the start menu. RMDir "$SMPROGRAMS\sigrok\@PACKAGE_NAME@"