-# gpg4win.nsi - Installer for GnuPG 4 Windows.
-# Copyright (C) 2005 g10 Code GmbH
+# gpg4win.nsi - Installer for GnuPG 4 Windows. -*- coding: latin-1; -*-
+# Copyright (C) 2005, 2007, 2008 g10 Code GmbH
#
# This file is part of GPG4Win.
#
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+!cd "${BUILD_DIR}"
+!addincludedir "${TOP_SRCDIR}"
+!addincludedir "${TOP_SRCDIR}/po"
+!addincludedir "${SRCDIR}"
+!addplugindir "${BUILD_DIR}"
!include "../include/config.nsi"
+# For the "light" version of the package, we explicitely disable some
+# of the packages right after including config.nsi.
+!ifdef GPG4WIN_LIGHT
+!ifdef HAVE_PKG_COMPENDIUM_DE
+!undef HAVE_PKG_COMPENDIUM_DE
+!endif
+!ifdef HAVE_PKG_MAN_NOVICE_EN
+!undef HAVE_PKG_MAN_NOVICE_EN
+!endif
+!ifdef HAVE_PKG_KLEOPATRA
+!undef HAVE_PKG_KLEOPATRA
+!endif
+!ifdef HAVE_PKG_KDELIBS
+!undef HAVE_PKG_KDELIBS
+!endif
+!ifdef HAVE_PKG_OXYGEN_ICONS
+!undef HAVE_PKG_OXYGEN_ICONS
+!endif
+!ifdef HAVE_PKG_QT
+!undef HAVE_PKG_QT
+!endif
+!endif
+
+
# The package name and version. PRETTY_PACKAGE is a user visible name
# only while PACKAGE is useful for filenames etc. PROD_VERSION is the
# product version and needs to be in the format "MAJ.MIN.MIC.BUILDNR".
+# NOTE: Please keep the capitalization of PRETTY_PACKAGE_SHORT as it is
+# used as registry key.
!define PACKAGE "${_PACKAGE}"
-!define PRETTY_PACKAGE "GnuPG For Windows"
+!define PRETTY_PACKAGE "Gpg4win"
!define PRETTY_PACKAGE_SHORT "GPG4Win"
!define VERSION "${_VERSION}"
-# FIXME
-!define PROD_VERSION "0.0.0.1"
+!define PROD_VERSION "${_BUILD_FILEVERSION}"
!define COMPANY "g10 Code GmbH"
-!define COPYRIGHT "Copyright (C) 2005 g10 Code GmbH"
-!define DESCRIPTION "GPG4Win: The GNU Privacy Guard and tools for Windows"
+!define COPYRIGHT "Copyright (C) 2008 g10 Code GmbH"
+!define DESCRIPTION "Gpg4win: The GNU Privacy Guard and Tools for Windows"
!define INSTALL_DIR "GnuPG"
-!define ABOUT_ENGLISH \
- "GnuPG is GNU's tool for secure communication and data storage. \
- It can be used to encrypt data and to create digital signatures. \
- It includes an advanced key management facility and is compliant \
- with the proposed OpenPGP Internet standard as described in RFC2440. \
- \r\n\r\n$_CLICK \
- \r\n\r\n\r\n\r\n\r\nThis is GnuPG version ${VERSION}\r\n\
- file version ${PROD_VERSION}"
-!define ABOUT_GERMAN \
- "GnuPG is das Werkzeug aus dem GNU Projekt zur sicheren Kommunikation \
- sowie zum sicheren Speichern von Daten. \
- \r\n\r\n$_CLICK \
- \r\n\r\n\r\n\r\n\r\nDies ist GnuPG Version ${VERSION}\r\n\
- Dateiversion ${PROD_VERSION}"
+!define WELCOME_TITLE_STR "$(T_WelcomeTitleGpg4win)"
+!define ABOUT_STR "$(T_AboutGpg4win) \
+ \r\n\r\n$_CLICK \r\n\r\n\r\n\r\n\r\n \
+ $(T_AboutGpg4winVersion) \r\n \
+ $(T_AboutGpg4winFileVersion) \r\n\r\n \
+ $(T_AboutGpg4winReleaseDate)"
# The copyright license of the package. Define only one of these.
!define LICENSE_GPL
# Define if in debug mode.
-#!define DEBUG
+!ifdef GPG4WIN_DEBUG
+!define DEBUG
+!endif
# The installation directory.
!define ipdir "playground/install/pkgs"
+!define bpdir "playground/build"
+# Select the best compression algorithm available. The dictionary
+# size is the default (8 MB).
+!ifndef DISABLE_LZMA
+!ifndef SOURCES
+SetCompressor lzma
+# SetCompressorDictSize 8
+!endif
+!endif
# Now include the generic parts.
+!define HAVE_STARTMENU
!include "installer.nsi"
!include "inst-sections.nsi"
+# The WelcomeTitle is displayed on the first page.
+LangString T_WelcomeTitleGpg4win ${LANG_ENGLISH} \
+ "Welcome to the installation of Gpg4win"
+
+# The About string as displayed on the first page.
+LangString T_AboutGpg4win ${LANG_ENGLISH} \
+ "Gpg4win is a installer package for Windows for EMail and \
+ file encryption using the core componenent GnuPG for Windows. \
+ Both relevant cryptography standards are supported, OpenPGP \
+ and S/MIME. Gpg4win and the software included with Gpg4win \
+ are Free Software."
+
+LangString T_AboutGpg4winVersion ${LANG_ENGLISH} \
+ "This is Gpg4win version ${VERSION}"
+
+LangString T_AboutGpg4winFileVersion ${LANG_ENGLISH} \
+ "file version ${PROD_VERSION}"
+
+LangString T_AboutGpg4winReleaseDate ${LANG_ENGLISH} \
+ "release date ${_BUILD_ISODATE}"
+
+# At long last, include all the translations.
+!include "../po/catalogs.nsi"
+
# Now include the generic parts to end the installation.
!include "installer-finish.nsi"