[Gpg4win-commits] r513 - trunk/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Aug 30 15:46:46 CEST 2007


Author: marcus
Date: 2007-08-30 15:46:46 +0200 (Thu, 30 Aug 2007)
New Revision: 513

Added:
   trunk/src/inst-gpgex.nsi
   trunk/src/uninst-gpgex.nsi
Log:
Add missing files.


Added: trunk/src/inst-gpgex.nsi
===================================================================
--- trunk/src/inst-gpgex.nsi	2007-08-30 13:41:20 UTC (rev 512)
+++ trunk/src/inst-gpgex.nsi	2007-08-30 13:46:46 UTC (rev 513)
@@ -0,0 +1,58 @@
+# inst-gpgex.nsi - Installer snippet for gpgex.      -*- coding: latin-1; -*-
+# Copyright (C) 2005, 2007 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}/gpgex-${gpg4win_pkg_gpgex_version}
+
+
+Section "GpgEX" SEC_gpgex
+  SetOutPath "$INSTDIR"
+!ifdef SOURCES
+  File "${gpg4win_pkg_gpgex}"
+!else
+
+  ClearErrors
+  SetOverwrite try
+  File ${prefix}/bin/gpgex.dll
+  SetOverwrite lastused
+  ifErrors 0 do_reg
+      File /oname=gpgex.dll.tmp ${prefix}/bin/gpgex.dll
+      Rename /REBOOTOK gpgex.dll.tmp gpgex.dll
+
+ do_reg:
+  # Register the DLL.
+  RegDLL "$INSTDIR\gpgex.dll"
+  ifErrors 0 +2
+     MessageBox MB_OK "$(T_GpgEX_RegFailed)"
+
+  SetOutPath "$INSTDIR\share\locale\de\LC_MESSAGES"
+  File ${prefix}/share/locale/de/LC_MESSAGES/gpgex.mo
+
+
+!endif
+SectionEnd
+
+
+LangString T_GpgEX_RegFailed ${LANG_ENGLISH} \
+   "Warning: Registration of the GpgEX plugin failed."
+
+LangString DESC_SEC_gpgex ${LANG_ENGLISH} \
+   "GnuPG Shell Extension"

Added: trunk/src/uninst-gpgex.nsi
===================================================================
--- trunk/src/uninst-gpgex.nsi	2007-08-30 13:41:20 UTC (rev 512)
+++ trunk/src/uninst-gpgex.nsi	2007-08-30 13:46:46 UTC (rev 513)
@@ -0,0 +1,41 @@
+# uninst-gpgex.nsi - Installer snippet for gpgex.    -*- coding: latin-1; -*-
+# Copyright (C) 2005, 2007 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}/gpgex-${gpg4win_pkg_gpgex_version}
+
+
+; Uninstaller section.
+Section "-un.gpgex"
+!ifdef SOURCES
+  Push "${gpg4win_pkg_gpgex}"
+  Call un.SourceDelete
+!else
+
+  Delete "$INSTDIR\share\locale\de\LC_MESSAGES\gpgex.mo"
+  RMDir "$INSTDIR\share\locale\de\LC_MESSAGES"
+
+  UnRegDLL "$INSTDIR\gpgex.dll"
+
+  Delete /REBOOTOK "$INSTDIR\gpgex.dll"
+  RMDir "$INSTDIR"
+!endif
+SectionEnd



More information about the Gpg4win-commits mailing list