X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=contrib%2Fsigrok-gtk.nsi.in;h=c1070809d8d87e0023ff399dcf62579c4310236d;hb=676bf74fb53a0931249719bfa5c4958308f3aa37;hp=ab958e2a99e08c34dd269e0b06328f003238000d;hpb=f25f3989953538e7a96257c5d21f829030f2f3d5;p=sigrok-gtk.git diff --git a/contrib/sigrok-gtk.nsi.in b/contrib/sigrok-gtk.nsi.in index ab958e2..c107080 100644 --- a/contrib/sigrok-gtk.nsi.in +++ b/contrib/sigrok-gtk.nsi.in @@ -36,7 +36,7 @@ Name "@PACKAGE_NAME@" # Filename of the installer executable. -OutFile "@PACKAGE_NAME@-installer-@PACKAGE_VERSION@.exe" +OutFile "@PACKAGE_NAME@-@PACKAGE_VERSION@-installer.exe" # Where to install the application. InstallDir "$PROGRAMFILES\sigrok\@PACKAGE_NAME@" @@ -45,6 +45,9 @@ InstallDir "$PROGRAMFILES\sigrok\@PACKAGE_NAME@" # http://nsis.sourceforge.net/Docs/Chapter4.html RequestExecutionLevel admin +# Local helper definitions. +!define REGSTR "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE_NAME@" + # --- MUI interface configuration --------------------------------------------- @@ -125,6 +128,9 @@ Section "@PACKAGE_NAME@ (required)" Section1 # sigrok-gtk File "c:\MinGW\msys\1.0\local\bin\@PACKAGE_NAME@.exe" + # Icon + File "sigrok-logo-notext.ico" + # MinGW libs File "c:\MinGW\bin\mingwm10.dll" File "c:\MinGW\bin\libgcc_s_dw2-1.dll" @@ -189,6 +195,29 @@ Section "@PACKAGE_NAME@ (required)" Section1 "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 \ SW_SHOWNORMAL "" "Uninstall @PACKAGE_NAME@" + # Create registry keys for "Add/remove programs" in the control panel. + WriteRegStr HKLM "${REGSTR}" "DisplayName" "@PACKAGE_STRING@" + WriteRegStr HKLM "${REGSTR}" "UninstallString" \ + "$\"$INSTDIR\Uninstall.exe$\"" + WriteRegStr HKLM "${REGSTR}" "InstallLocation" "$\"$INSTDIR$\"" + WriteRegStr HKLM "${REGSTR}" "DisplayIcon" \ + "$\"$INSTDIR\sigrok-logo-notext.ico$\"" + WriteRegStr HKLM "${REGSTR}" "Publisher" "sigrok" + WriteRegStr HKLM "${REGSTR}" "HelpLink" \ + "http://sigrok.org/wiki/Sigrok-gtk" + WriteRegStr HKLM "${REGSTR}" "URLUpdateInfo" \ + "http://sigrok.org/wiki/Downloads" + WriteRegStr HKLM "${REGSTR}" "URLInfoAbout" "http://sigrok.org" + WriteRegStr HKLM "${REGSTR}" "DisplayVersion" "@PACKAGE_VERSION@" + WriteRegStr HKLM "${REGSTR}" "Contact" \ + "sigrok-devel@lists.sourceforge.org" + WriteRegStr HKLM "${REGSTR}" "Comments" \ + "This is a GTK+ based sigrok GUI." + + # Display "Remove" instead of "Modify/Remove" in the control panel. + WriteRegDWORD HKLM "${REGSTR}" "NoModify" 1 + WriteRegDWORD HKLM "${REGSTR}" "NoRepair" 1 + SectionEnd @@ -220,15 +249,16 @@ Section "Uninstall" Delete "$INSTDIR\COPYING" Delete "$INSTDIR\libsigrok.a" Delete "$INSTDIR\libsigrokdecode.a" - Delete "$INSTDIR\sigrok-gtk.exe" + Delete "$INSTDIR\@PACKAGE_NAME@.exe" + Delete "$INSTDIR\sigrok-logo-notext.ico" Delete "$INSTDIR\mingwm10.dll" Delete "$INSTDIR\libgcc_s_dw2-1.dll" Delete "$INSTDIR\intl.dll" Delete "$INSTDIR\libiconv-2.dll" Delete "$INSTDIR\libstdc++-6.dll" - Delete "$INSTDIR\libglib-2.0-0.dll" Delete "$INSTDIR\msys-1.0.dll" Delete "$INSTDIR\msys-z.dll" + Delete "$INSTDIR\libglib-2.0-0.dll" Delete "$INSTDIR\libgthread-2.0-0.dll" Delete "$INSTDIR\libusb-1.0.dll" Delete "$INSTDIR\zlib1.dll" @@ -268,6 +298,9 @@ Section "Uninstall" RMDir "$SMPROGRAMS\sigrok\@PACKAGE_NAME@" RMDir "$SMPROGRAMS\sigrok" + # Delete the registry key(s). + DeleteRegKey HKLM "${REGSTR}" + SectionEnd