X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=contrib%2Fsigrok-cli_cross.nsi.in;h=ba895a94fb4cc71b3d57d92ffcd6cd7a10c82893;hp=d4311a43da126150ec9141b1b6c77223cccd97d7;hb=4c6bfc08f6951ff8a7d0b4b4420de00d1c6fd193;hpb=5b1a6c2a18c7ed5359c372275013873d35c395c0 diff --git a/contrib/sigrok-cli_cross.nsi.in b/contrib/sigrok-cli_cross.nsi.in index d4311a4..ba895a9 100644 --- a/contrib/sigrok-cli_cross.nsi.in +++ b/contrib/sigrok-cli_cross.nsi.in @@ -54,7 +54,7 @@ RequestExecutionLevel admin # --- MUI interface configuration --------------------------------------------- # Use the following icon for the installer EXE file. -!define MUI_ICON "sigrok-logo-notext.ico" +!define MUI_ICON "@top_srcdir@/contrib/sigrok-logo-notext.ico" # Show a nice image at the top of each installer page. !define MUI_HEADERIMAGE @@ -72,11 +72,7 @@ RequestExecutionLevel admin # Path where the cross-compiled sigrok tools and libraries are located. # Change this to where-ever you installed libsigrok.a and so on. -!define CROSS "$%HOME%/sr_mingw" - -# Path where the cross-compiled MXE tools and libraries are located. -# Change this to where-ever you installed MXE (and the files it built). -!define MXE "$%HOME%/mxe-git/usr/i686-pc-mingw32" +!define CROSS "@prefix@" # --- MUI pages --------------------------------------------------------------- @@ -85,7 +81,7 @@ RequestExecutionLevel admin !insertmacro MUI_PAGE_WELCOME # Show the license of the project. -!insertmacro MUI_PAGE_LICENSE "../COPYING" +!insertmacro MUI_PAGE_LICENSE "@top_srcdir@/COPYING" # Show a screen which allows the user to select which components to install. !insertmacro MUI_PAGE_COMPONENTS @@ -123,7 +119,7 @@ Section "@PACKAGE_NAME@ (required)" Section1 SetOutPath "$INSTDIR" # License file. - File "../COPYING" + File "@top_srcdir@/COPYING" # sigrok-cli.exe. File "${CROSS}/bin/@PACKAGE_NAME@.exe" @@ -170,6 +166,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 +238,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@"