Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F26446241
inst-gpgex.nsi
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
4 KB
Subscribers
None
inst-gpgex.nsi
View Options
# inst-gpgex.nsi - Installer snippet for gpgex. -*- coding: latin-1; -*-
# Copyright (C) 2005, 2007, 2008 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
!ifdef
exprefix
!undef
exprefix
!endif
!define
prefix
${ipdir}
/gpgex
-
${gpg4win_pkg_gpgex_version}
!define
exprefix
${exipdir}
/gpgex
-
${gpg4win_pkg_gpgex_version}
Section
"-removegpgee
"
!ifndef
SOURCES
# Uninstall a previous gpgee version, if it exists.
ifFileExists
"
$INSTDIR
\GPGee.dll
"
0 gpgex_no_gpgee
UnRegDLL
"
$INSTDIR
\GPGee.dll
"
Delete
/REBOOTOK
"
$INSTDIR
\bin\GPGee.dll
"
Delete
/REBOOTOK
"
$INSTDIR
\GPGee.DEU
"
Delete
"
$INSTDIR
\GPGee.hlp
"
Delete
"
$INSTDIR
\share\gpgee\gpl.txt
"
RMDir
"
$INSTDIR
\share\gpgee
"
RMDir
"
$INSTDIR
\share
"
RMDir
"
$INSTDIR
"
gpgex_no_gpgee
:
!endif
SectionEnd
${MementoSection}
"GpgEX
"
SEC_gpgex
SetOutPath
"
$INSTDIR
"
!ifdef
SOURCES
File
"${gpg4win_pkg_gpgex}
"
!else
SetOutPath
"
$INSTDIR
\bin
"
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.
ClearErrors
RegDLL
"
$INSTDIR
\bin\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
SetOutPath
"
$INSTDIR
\share\locale\ar\LC_MESSAGES
"
File
${prefix}
/share/locale/ar/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\es\LC_MESSAGES
"
File
${prefix}
/share/locale/es/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\ru\LC_MESSAGES
"
File
${prefix}
/share/locale/ru/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\pt\LC_MESSAGES
"
File
${prefix}
/share/locale/pt/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\pl\LC_MESSAGES
"
File
${prefix}
/share/locale/pl/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\zh_CN\LC_MESSAGES
"
File
${prefix}
/share/locale/zh_CN/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\zh_TW\LC_MESSAGES
"
File
${prefix}
/share/locale/zh_TW/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\fr\LC_MESSAGES
"
File
${prefix}
/share/locale/fr/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\locale\nl\LC_MESSAGES
"
File
${prefix}
/share/locale/nl/LC_MESSAGES/gpgex
.mo
SetOutPath
"
$INSTDIR
\share\doc\gpgex
"
File
${prefix}
/share/doc/gpgex/gpgex
-
en.html
File
${prefix}
/share/doc/gpgex/gpgex
-
de.html
${If}
${RunningX64}
# Install the 64 bit version of the dll.
SetOutPath
"
$INSTDIR
\bin_64
"
ClearErrors
SetOverwrite
try
File
${exprefix}
/bin/gpgex
.dll
SetOverwrite
lastused
ifErrors
0 do_reg64
File
/oname
=gpgex.dll.tmp
${exprefix}
/bin/gpgex
.dll
Rename
/REBOOTOK
gpgex.dll.tmp gpgex.dll
do_reg64
:
# Register the DLL. We need to register both versions. However
# RegDLL can't be used for 64 bit and InstallLib seems to be a
# registry hack.
ClearErrors
ExecWait
'"$SYSDIR\regsvr32" /s "$INSTDIR\bin_64\gpgex.dll"'
ifErrors
0
+
2
MessageBox
MB_OK
"$(T_GpgEX_RegFailed) (64 bit)
"
# Note: There is no need to install the help an mo files because
# they are identical to those installed by the 32 bit version.
${EndIf}
!endif
${MementoSectionEnd}
LangString
T_GpgEX_RegFailed
${LANG_ENGLISH}
\
"Warning: Registration of the GpgEX plugin failed.
"
LangString
DESC_SEC_gpgex
${LANG_ENGLISH}
\
"GnuPG Shell Extension
"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 17, 12:46 AM (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
07/75/05e06edddca296aca5fcf464ca40
Attached To
rW Gpg4win
Event Timeline
Log In to Comment