; Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation ; Written by Simon Josefsson ; This file is part of GNUTLS. ; GNUTLS is free software; you can redistribute it and/or modify it ; under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2 of the License, or ; (at your option) any later version. ; GNUTLS is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ; General Public License for more details. ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ; 02110-1301, USA !include "MUI.nsh" !include "AddToPath.nsh" ; The name of the installer Name "GnuTLS ${GNUTLS_VERSION}" ; The file to write OutFile "gnutls-${GNUTLS_VERSION}.exe" ; The default installation directory InstallDir "$PROGRAMFILES\GnuTLS-${GNUTLS_VERSION}" ; Registry key to check for directory (so if you install again, it will ; overwrite the old one automatically) InstallDirRegKey HKLM "Software\GnuTLS-${GNUTLS_VERSION}" "Install_Dir" ;SetCompressor lzma ShowInstDetails show Var MUI_TEMP Var STARTMENU_FOLDER Function .onInit # Display splash image. InitPluginsDir File /oname=$PLUGINSDIR\splash.bmp "gnutls-logo.bmp" advsplash::show 1000 600 400 0x04025C $PLUGINSDIR\splash Pop $0 Delete $PLUGINSDIR\splash.bmp FunctionEnd ;Interface Settings !define MUI_ABORTWARNING ;-------------------------------- ; Pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_LICENSE "COPYING" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY ;Start Menu Folder Page Configuration !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\GnuTLS-${GNUTLS_VERSION}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES ;Languages !insertmacro MUI_LANGUAGE "English" ;-------------------------------- Section "DLL Runtime Library" SecLibrary SetOutPath $INSTDIR\bin FILE inst/bin/libgpg-error-${LIBGPGERROR_DLL_VERSION}.dll FILE inst/bin/libgcrypt-${LIBGCRYPT_DLL_VERSION}.dll FILE inst/bin/libtasn1-${LIBTASN1_DLL_VERSION}.dll FILE inst/bin/libgnutls-${GNUTLS_DLL_VERSION}.dll FILE inst/bin/libgnutls-extra-${GNUTLS_DLL_VERSION}.dll FILE inst/bin/libgnutls-openssl-${GNUTLS_DLL_VERSION}.dll ; FILE inst/bin/libgnutlsxx-${GNUTLS_DLL_VERSION}.dll FILE inst/bin/libgnutls-${GNUTLS_DLL_VERSION}.def FILE inst/bin/libgnutls-extra-${GNUTLS_DLL_VERSION}.def FILE inst/bin/libgnutls-openssl-${GNUTLS_DLL_VERSION}.def SectionEnd Section "Command Line Tools" SecTools SetOutPath $INSTDIR\bin FILE inst/bin/gnutls-cli.exe FILE inst/bin/gnutls-cli-debug.exe FILE inst/bin/gnutls-serv.exe FILE inst/bin/gnutls-cli.exe FILE inst/bin/psktool.exe FILE inst/bin/srptool.exe FILE inst/bin/certtool.exe SectionEnd Section "Developer Libraries" SecDeveloper SetOutPath $INSTDIR\bin FILE inst/bin/gpg-error-config FILE inst/bin/gpg-error.exe FILE inst/bin/dumpsexp.exe FILE inst/bin/asn1Coding.exe FILE inst/bin/asn1Decoding.exe FILE inst/bin/asn1Parser.exe FILE inst/bin/libgcrypt-config SetOutPath $INSTDIR\lib FILE inst/lib/libgpg-error.la FILE inst/lib/libgpg-error.a FILE inst/lib/libgpg-error.dll.a FILE inst/lib/libgcrypt.la FILE inst/lib/libgcrypt.a FILE inst/lib/libgcrypt.dll.a FILE inst/lib/libtasn1.la FILE inst/lib/libtasn1.a FILE inst/lib/libtasn1.dll.a FILE inst/lib/libgnutls-extra.la FILE inst/lib/libgnutls-extra.a FILE inst/lib/libgnutls-extra.dll.a FILE inst/lib/libgnutls-openssl.la FILE inst/lib/libgnutls-openssl.a FILE inst/lib/libgnutls-openssl.dll.a FILE inst/lib/libgnutls.la FILE inst/lib/libgnutls.a FILE inst/lib/libgnutls.dll.a ; FILE inst/lib/libgnutlsxx.la ; FILE inst/lib/libgnutlsxx.a ; FILE inst/lib/libgnutlsxx.dll.a SetOutPath $INSTDIR\lib\pkgconfig FILE inst/lib/pkgconfig/gnutls.pc FILE inst/lib/pkgconfig/gnutls-extra.pc FILE inst/lib/pkgconfig/libtasn1.pc SetOutPath $INSTDIR\share\aclocal FILE inst/share/aclocal/gpg-error.m4 FILE inst/share/aclocal/libgcrypt.m4 SetOutPath $INSTDIR\include FILE inst/include/gcrypt.h FILE inst/include/gcrypt-module.h FILE inst/include/gpg-error.h FILE inst/include/libtasn1.h SetOutPath $INSTDIR\include\gnutls FILE inst/include/gnutls/compat.h FILE inst/include/gnutls/extra.h FILE inst/include/gnutls/gnutls.h FILE inst/include/gnutls/openpgp.h FILE inst/include/gnutls/openssl.h FILE inst/include/gnutls/pkcs12.h FILE inst/include/gnutls/x509.h ; FILE inst/include/gnutls/gnutlsxx.h SectionEnd Section "API Manual" SecAPIDoc SetOutPath $INSTDIR\api-reference FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls.devhelp FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls.devhelp2 FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/api-index-2-10-0.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/api-index-2-4-0.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/api-index-2-6-0.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/api-index-2-8-0.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/api-index-deprecated.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/api-index-full.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-crypto.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-extra.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-gnutls.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-openpgp.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-openssl.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-pkcs12.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/gnutls-x509.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/index.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/intro.html FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/index.sgml FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/index.sgml FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/home.png FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/left.png FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/right.png FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/up.png FILE src/gnutls-${GNUTLS_VERSION}/doc/reference/html/style.css SectionEnd Section "Manual" SecManual SetOutPath $INSTDIR\doc FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls.pdf FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls.html FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls-logo.png FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls-pgp.png FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls-internals.png FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls-x509.png FILE src/gnutls-${GNUTLS_VERSION}/doc/gnutls-layers.png SectionEnd Section "Examples" SecExamples SetOutPath $INSTDIR\examples FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-alert.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-cert-select.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-client1.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-client2.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-client-resume.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-client-srp.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-client-tlsia.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-crq.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-pkcs12.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-rfc2818.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-serv1.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-serv-anon.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-serv-export.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-serv-srp.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-serv-pgp.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-session-info.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-verify.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/ex-x509-info.c FILE src/gnutls-${GNUTLS_VERSION}/doc/examples/tcp.c SetOutPath $INSTDIR\bin FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-cert-select.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-client1.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-client2.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-client-resume.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-client-srp.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-client-tlsia.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-crq.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-serv1.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-serv-anon.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-serv-export.exe FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-serv-srp.exe ; FILE build/gnutls-${GNUTLS_VERSION}/doc/examples/.libs/ex-serv-pgp.exe SectionEnd Section /o "Source Code" SecSource SetOutPath $INSTDIR\src FILE AddToPath.nsh FILE COPYING FILE gnutls4win.jpg FILE gnutls-logo.bmp FILE gnutls.nsi FILE Makefile FILE PGP-KEYS FILE README FILE README.html FILE dist/gnutls-${GNUTLS_VERSION}.tar.bz2 FILE dist/libgpg-error-${LIBGPGERROR_VERSION}.tar.bz2 FILE dist/libgcrypt-${LIBGCRYPT_VERSION}.tar.bz2 FILE dist/libtasn1-${LIBTASN1_VERSION}.tar.gz SectionEnd Var MYTMP # Last section is a hidden one. Section WriteUninstaller "$INSTDIR\uninstall.exe" ; Write the installation path into the registry WriteRegStr HKLM "Software\GnuTLS-${GNUTLS_VERSION}" "Install_Dir" "$INSTDIR" # Windows Add/Remove Programs support StrCpy $MYTMP "Software\Microsoft\Windows\CurrentVersion\Uninstall\GnuTLS-${GNUTLS_VERSION}" WriteRegStr HKLM $MYTMP "DisplayName" "GnuTLS ${GNUTLS_VERSION}" WriteRegExpandStr HKLM $MYTMP "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegExpandStr HKLM $MYTMP "InstallLocation" "$INSTDIR" WriteRegStr HKLM $MYTMP "DisplayVersion" "${GNUTLS_VERSION}" WriteRegStr HKLM $MYTMP "Publisher" "Simon Josefsson Datakonsult" WriteRegStr HKLM $MYTMP "URLInfoAbout" "http://josefsson.org/" WriteRegStr HKLM $MYTMP "HelpLink" "http://www.gnutls.org/commercial.html" WriteRegStr HKLM $MYTMP "URLUpdateInfo" "http://www.gnutls.org/news.html" WriteRegDWORD HKLM $MYTMP "NoModify" "1" WriteRegDWORD HKLM $MYTMP "NoRepair" "1" !insertmacro MUI_STARTMENU_WRITE_BEGIN Application ;Create shortcuts CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GnuTLS ${GNUTLS_VERSION} Manual.lnk" "$INSTDIR\doc\gnutls.html" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GnuTLS ${GNUTLS_VERSION} PDF Manual.lnk" "$INSTDIR\doc\gnutls.pdf" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\GnuTLS ${GNUTLS_VERSION} API Manual.lnk" "$INSTDIR\api-reference\index.html" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 WriteINIStr "$SMPROGRAMS\$STARTMENU_FOLDER\GnuTLS Web page.url" \ "InternetShortcut" "URL" "http://www.gnutls.org/" !insertmacro MUI_STARTMENU_WRITE_END ; Add bin directory to the path Push $INSTDIR\bin Call AddToPath SectionEnd ;Descriptions LangString DESC_SecLibrary ${LANG_ENGLISH} "The GnuTLS library DLL. Required to run any program that uses GnuTLS." LangString DESC_SecTools ${LANG_ENGLISH} "Tools that can be used to test the library by connecting to a server." LangString DESC_SecDeveloper ${LANG_ENGLISH} "Import DLL library, static library, libtool file, and C header files. Required to develop programs using GnuTLS" LangString DESC_SecAPIDoc ${LANG_ENGLISH} "GnuTLS Developers API Reference Manual. Useful for developers." LangString DESC_SecManual ${LANG_ENGLISH} "GnuTLS Manual. Useful for both end users and developers." LangString DESC_SecExamples ${LANG_ENGLISH} "Example source code and binaries. Useful for developers." LangString DESC_SecSource ${LANG_ENGLISH} "Source code for the libgpg-error, libgcrypt, libtasn1 and gnutls packages. Normally not required." !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SecLibrary} $(DESC_SecLibrary) !insertmacro MUI_DESCRIPTION_TEXT ${SecTools} $(DESC_SecTools) !insertmacro MUI_DESCRIPTION_TEXT ${SecDeveloper} $(DESC_SecDeveloper) !insertmacro MUI_DESCRIPTION_TEXT ${SecAPIDoc} $(DESC_SecAPIDoc) !insertmacro MUI_DESCRIPTION_TEXT ${SecManual} $(DESC_SecManual) !insertmacro MUI_DESCRIPTION_TEXT ${SecExamples} $(DESC_SecExamples) !insertmacro MUI_DESCRIPTION_TEXT ${SecSource} $(DESC_SecSource) !insertmacro MUI_FUNCTION_DESCRIPTION_END ;-------------------------------- ; Uninstaller Section "Uninstall" ; Remove registry keys DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\GnuTLS-${GNUTLS_VERSION}" DeleteRegKey HKLM "Software\GnuTLS-${GNUTLS_VERSION}" ; Remove files Delete $INSTDIR\bin\libgpg-error-${LIBGPGERROR_DLL_VERSION}.dll Delete $INSTDIR\bin\libgcrypt-${LIBGCRYPT_DLL_VERSION}.dll Delete $INSTDIR\bin\libtasn1-${LIBTASN1_DLL_VERSION}.dll Delete $INSTDIR\bin\libgnutls-${GNUTLS_DLL_VERSION}.dll Delete $INSTDIR\bin\libgnutls-extra-${GNUTLS_DLL_VERSION}.dll Delete $INSTDIR\bin\libgnutls-openssl-${GNUTLS_DLL_VERSION}.dll ; Delete $INSTDIR\bin\libgnutlsxx-${GNUTLS_DLL_VERSION}.dll Delete $INSTDIR\bin\libgnutls-${GNUTLS_DLL_VERSION}.def Delete $INSTDIR\bin\libgnutls-extra-${GNUTLS_DLL_VERSION}.def Delete $INSTDIR\bin\libgnutls-openssl-${GNUTLS_DLL_VERSION}.def Delete $INSTDIR\bin\gnutls-cli.exe Delete $INSTDIR\bin\gnutls-cli-debug.exe Delete $INSTDIR\bin\gnutls-serv.exe Delete $INSTDIR\bin\gnutls-cli.exe Delete $INSTDIR\bin\psktool.exe Delete $INSTDIR\bin\srptool.exe Delete $INSTDIR\bin\certtool.exe Delete $INSTDIR\bin\gpg-error-config Delete $INSTDIR\bin\gpg-error.exe Delete $INSTDIR\bin\dumpsexp.exe Delete $INSTDIR\bin\asn1Coding.exe Delete $INSTDIR\bin\asn1Decoding.exe Delete $INSTDIR\bin\asn1Parser.exe Delete $INSTDIR\bin\libgcrypt-config Delete $INSTDIR\lib\libgpg-error.la Delete $INSTDIR\lib\libgpg-error.a Delete $INSTDIR\lib\libgpg-error.dll.a Delete $INSTDIR\lib\libgcrypt.la Delete $INSTDIR\lib\libgcrypt.a Delete $INSTDIR\lib\libgcrypt.dll.a Delete $INSTDIR\lib\libtasn1.la Delete $INSTDIR\lib\libtasn1.a Delete $INSTDIR\lib\libtasn1.dll.a Delete $INSTDIR\lib\libgnutls-extra.la Delete $INSTDIR\lib\libgnutls-extra.a Delete $INSTDIR\lib\libgnutls-extra.dll.a Delete $INSTDIR\lib\libgnutls-openssl.la Delete $INSTDIR\lib\libgnutls-openssl.a Delete $INSTDIR\lib\libgnutls-openssl.dll.a Delete $INSTDIR\lib\libgnutls.la Delete $INSTDIR\lib\libgnutls.a Delete $INSTDIR\lib\libgnutls.dll.a ; Delete $INSTDIR\lib\libgnutlsxx.la ; Delete $INSTDIR\lib\libgnutlsxx.a ; Delete $INSTDIR\lib\libgnutlsxx.dll.a Delete $INSTDIR\lib\pkgconfig\gnutls.pc Delete $INSTDIR\lib\pkgconfig\gnutls-extra.pc Delete $INSTDIR\lib\pkgconfig\libtasn1.pc Delete $INSTDIR\share\aclocal\gpg-error.m4 Delete $INSTDIR\share\aclocal\libgcrypt.m4 Delete $INSTDIR\include\gpg-error.h Delete $INSTDIR\include\gcrypt.h Delete $INSTDIR\include\gcrypt-module.h Delete $INSTDIR\include\libtasn1.h Delete $INSTDIR\include\gnutls\compat.h Delete $INSTDIR\include\gnutls\extra.h Delete $INSTDIR\include\gnutls\gnutls.h Delete $INSTDIR\include\gnutls\openpgp.h Delete $INSTDIR\include\gnutls\openssl.h Delete $INSTDIR\include\gnutls\pkcs12.h Delete $INSTDIR\include\gnutls\x509.h ; Delete $INSTDIR\include\gnutls\gnutlsxx.h Delete $INSTDIR\api-reference\gnutls.devhelp Delete $INSTDIR\api-reference\gnutls.devhelp2 Delete $INSTDIR\api-reference\api-index-2-10-0.html Delete $INSTDIR\api-reference\api-index-2-4-0.html Delete $INSTDIR\api-reference\api-index-2-6-0.html Delete $INSTDIR\api-reference\api-index-2-8-0.html Delete $INSTDIR\api-reference\api-index-deprecated.html Delete $INSTDIR\api-reference\api-index-full.html Delete $INSTDIR\api-reference\gnutls-crypto.html Delete $INSTDIR\api-reference\gnutls-extra.html Delete $INSTDIR\api-reference\gnutls-gnutls.html Delete $INSTDIR\api-reference\gnutls-openpgp.html Delete $INSTDIR\api-reference\gnutls-openssl.html Delete $INSTDIR\api-reference\gnutls-pkcs12.html Delete $INSTDIR\api-reference\gnutls-x509.html Delete $INSTDIR\api-reference\index.html Delete $INSTDIR\api-reference\intro.html Delete $INSTDIR\api-reference\index.sgml Delete $INSTDIR\api-reference\index.sgml Delete $INSTDIR\api-reference\home.png Delete $INSTDIR\api-reference\left.png Delete $INSTDIR\api-reference\right.png Delete $INSTDIR\api-reference\up.png Delete $INSTDIR\api-reference\style.css Delete $INSTDIR\doc\gnutls.pdf Delete $INSTDIR\doc\gnutls.html Delete $INSTDIR\doc\gnutls-logo.png Delete $INSTDIR\doc\gnutls-pgp.png Delete $INSTDIR\doc\gnutls-internals.png Delete $INSTDIR\doc\gnutls-x509.png Delete $INSTDIR\doc\gnutls-layers.png Delete $INSTDIR\examples\ex-alert.c Delete $INSTDIR\examples\ex-cert-select.c Delete $INSTDIR\examples\ex-client1.c Delete $INSTDIR\examples\ex-client2.c Delete $INSTDIR\examples\ex-client-resume.c Delete $INSTDIR\examples\ex-client-srp.c Delete $INSTDIR\examples\ex-client-tlsia.c Delete $INSTDIR\examples\ex-crq.c Delete $INSTDIR\examples\ex-pkcs12.c Delete $INSTDIR\examples\ex-rfc2818.c Delete $INSTDIR\examples\ex-serv1.c Delete $INSTDIR\examples\ex-serv-anon.c Delete $INSTDIR\examples\ex-serv-export.c Delete $INSTDIR\examples\ex-serv-srp.c Delete $INSTDIR\examples\ex-serv-pgp.c Delete $INSTDIR\examples\ex-session-info.c Delete $INSTDIR\examples\ex-verify.c Delete $INSTDIR\examples\ex-x509-info.c Delete $INSTDIR\examples\tcp.c Delete $INSTDIR\bin\ex-cert-select.exe Delete $INSTDIR\bin\ex-client1.exe Delete $INSTDIR\bin\ex-client2.exe Delete $INSTDIR\bin\ex-client-resume.exe Delete $INSTDIR\bin\ex-client-srp.exe Delete $INSTDIR\bin\ex-client-tlsia.exe Delete $INSTDIR\bin\ex-crq.exe Delete $INSTDIR\bin\ex-serv1.exe Delete $INSTDIR\bin\ex-serv-anon.exe Delete $INSTDIR\bin\ex-serv-export.exe Delete $INSTDIR\bin\ex-serv-srp.exe ; Delete $INSTDIR\bin\ex-serv-pgp.exe Delete $INSTDIR\src\AddToPath.nsh Delete $INSTDIR\src\COPYING Delete $INSTDIR\src\gnutls4win.jpg Delete $INSTDIR\src\gnutls-logo.bmp Delete $INSTDIR\src\gnutls.nsi Delete $INSTDIR\src\Makefile Delete $INSTDIR\src\PGP-KEYS Delete $INSTDIR\src\README Delete $INSTDIR\src\README.html Delete $INSTDIR\src\gnutls-${GNUTLS_VERSION}.tar.bz2 Delete $INSTDIR\src\libgpg-error-${LIBGPGERROR_VERSION}.tar.bz2 Delete $INSTDIR\src\libgcrypt-${LIBGCRYPT_VERSION}.tar.bz2 Delete $INSTDIR\src\libtasn1-${LIBTASN1_VERSION}.tar.gz RMDir "$INSTDIR\bin" RMDir "$INSTDIR\examples" RMDir "$INSTDIR\lib\pkgconfig" RMDir "$INSTDIR\lib" RMDir "$INSTDIR\share\aclocal" RMDir "$INSTDIR\share" RMDir "$INSTDIR\include\gnutls" RMDir "$INSTDIR\include" RMDir "$INSTDIR\api-reference" RMDir "$INSTDIR\doc" RMDir "$INSTDIR\src" ; Remove uninstaller Delete $INSTDIR\uninstall.exe ; Remove shortcuts, if any !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP Delete "$SMPROGRAMS\$MUI_TEMP\GnuTLS ${GNUTLS_VERSION} Manual.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\GnuTLS ${GNUTLS_VERSION} PDF Manual.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\GnuTLS ${GNUTLS_VERSION} API Manual.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\GnuTLS Web page.url" ;Delete empty start menu parent diretories StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP" startMenuDeleteLoop: ClearErrors RMDir $MUI_TEMP GetFullPathName $MUI_TEMP "$MUI_TEMP\.." IfErrors startMenuDeleteLoopDone StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop startMenuDeleteLoopDone: DeleteRegKey /ifempty HKCU "Software\GnuTLS-${GNUTLS_VERSION}" ; Remove directories used RMDir "$INSTDIR" Push $INSTDIR\bin Call un.RemoveFromPath SectionEnd