# inst-gpgol.nsi - Installer snippet for gpgol. -*- coding: latin-1; -*- # Copyright (C) 2005 g10 Code GmbH # # This file is part of GPG4Win. # # GPG4Win 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. # # GPG4Win 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA !ifdef prefix !undef prefix !endif !define prefix ${ipdir}/gpgol-${gpg4win_pkg_gpgol_version} Section "GPGol" SEC_gpgol SetOutPath "$INSTDIR" !ifdef SOURCES File "${gpg4win_pkg_gpgol}" !else ClearErrors SetOverwrite try File ${prefix}/bin/gpgol.dll SetOverwrite lastused ifErrors 0 do_reg File /oname=gpgol.dll.tmp ${prefix}/bin/gpgol.dll Rename /REBOOTOK gpgol.dll.tmp gpgol.dll do_reg: # Register the DLL. RegDLL "$INSTDIR\gpgol.dll" ifErrors 0 +2 MessageBox MB_OK "$(T_GPGol_RegFailed)" SetOutPath "$INSTDIR\share\locale\de\LC_MESSAGES" File ${prefix}/share/locale/de/LC_MESSAGES/gpgol.mo !endif SectionEnd LangString T_GPGol_RegFailed ${LANG_ENGLISH} \ "Warning: Registration of the GPGol Outlook pluginfailed." LangString DESC_SEC_gpgol ${LANG_ENGLISH} \ "GnuPG for Outlook"