2007-02-08 21:09:30 +00:00
|
|
|
|
/*
|
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
declaration.nsh
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
Configuration of LyX installer
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
|
*/
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
|
# Location of LyX files and dependencies
|
|
|
|
|
|
|
|
|
|
!ifdef FilesLyX
|
|
|
|
|
!define FILES_LYX "${FilesLyX}"
|
|
|
|
|
!else
|
2011-02-14 14:29:51 +00:00
|
|
|
|
!define FILES_LYX "..\..\..\..\..\lyx-16-install"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!endif
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!ifdef FilesDeps
|
|
|
|
|
!define FILES_DEPS "${FilesDeps}"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
!else
|
2011-02-14 14:29:51 +00:00
|
|
|
|
!define FILES_DEPS "..\..\..\..\..\deps"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
!ifdef FilesBundle
|
|
|
|
|
!define FILES_BUNDLE "${FilesBundle}"
|
|
|
|
|
!else
|
2011-02-14 14:29:51 +00:00
|
|
|
|
!define FILES_BUNDLE "..\..\..\..\..\depsbundle"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
!endif
|
|
|
|
|
|
2011-02-14 14:29:51 +00:00
|
|
|
|
!define FILES_QT "C:\Qt\qt-everywhere-opensource-src-4.7.1"
|
2010-07-16 14:17:03 +00:00
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
|
# File locations
|
|
|
|
|
|
|
|
|
|
!define FILES_LICENSE "license.rtf"
|
|
|
|
|
|
|
|
|
|
!define FILES_ICONS "..\icons"
|
|
|
|
|
!define FILES_LAUNCHER "..\..\launcher"
|
|
|
|
|
!define FILES_PDFVIEW "..\..\pdfview"
|
|
|
|
|
|
2010-07-16 14:17:03 +00:00
|
|
|
|
!define FILES_MSVC "${FILES_DEPS}\bin"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!define FILES_PYTHON "${FILES_DEPS}\python"
|
|
|
|
|
!define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
|
|
|
|
|
!define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
|
|
|
|
|
!define FILES_NETPBM "${FILES_DEPS}\netpbm"
|
|
|
|
|
!define FILES_DTL "${FILES_DEPS}\dtl"
|
|
|
|
|
!define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"
|
|
|
|
|
!define FILES_DVIPOST "${FILES_DEPS}\dvipost"
|
|
|
|
|
!define FILES_DVIPOST_PKG "${FILES_DVIPOST}"
|
|
|
|
|
!define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"
|
|
|
|
|
!define FILES_METAFILE2EPS "${FILES_DEPS}\metafile2eps"
|
|
|
|
|
|
|
|
|
|
!define FILES_ASPELLDATA "${FILES_DEPS}\aspell"
|
|
|
|
|
|
|
|
|
|
!define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"
|
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# Locations of components to download
|
|
|
|
|
|
2008-08-06 21:11:00 +00:00
|
|
|
|
# CTAN and SourceForge select a mirror automatically
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2011-04-14 18:35:43 +00:00
|
|
|
|
!define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
|
# Locations of setup files for components (for bundled setup)
|
|
|
|
|
|
|
|
|
|
!define INSTALL_LATEX "${SETUPFILE_LATEX}"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2007-06-28 07:34:49 +00:00
|
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
|
# Names and version
|
|
|
|
|
|
|
|
|
|
!define APP_NAME "LyX"
|
|
|
|
|
!define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
|
|
|
|
|
!define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
|
|
|
|
|
!define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
|
|
|
|
|
!define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
|
|
|
|
|
!define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
|
|
|
|
|
!define APP_INFO "${APP_NAME} - The Document Processor"
|
2011-02-14 14:29:51 +00:00
|
|
|
|
!define APP_COPYRIGHT "LyX is Copyright <20> 1995 by Matthias Ettrich, 1995-2011 LyX Team"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
|
|
|
|
|
!define APP_RUN "bin\LyXLauncher.exe"
|
|
|
|
|
|
|
|
|
|
!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
|
|
|
|
|
!define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
|
|
|
|
|
!define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
|
2007-06-28 07:34:49 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!define APP_REGNAME_DOC "LyX.Document"
|
|
|
|
|
|
|
|
|
|
!define APP_EXT ".lyx"
|
|
|
|
|
!define APP_MIME_TYPE "application/lyx"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
|
# Setup settings
|
|
|
|
|
|
|
|
|
|
# Output file name can be configured using command line paramaters like
|
|
|
|
|
# /DExeFile=/path/to/installer
|
|
|
|
|
|
|
|
|
|
!ifndef SETUPTYPE
|
|
|
|
|
!define SETUPTYPE STANDARD
|
|
|
|
|
!endif
|
|
|
|
|
|
2010-07-16 14:17:03 +00:00
|
|
|
|
!if ${SETUPTYPE} == STANDARD
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!define SETUP_EXE ${ExeFile}
|
|
|
|
|
|
|
|
|
|
!else if ${SETUPTYPE} == BUNDLE
|
|
|
|
|
|
|
|
|
|
!define SETUP_EXE ${BundleExeFile}
|
|
|
|
|
!define BUNDLESETUP_LATEX
|
|
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
!define SETUP_ICON "${FILES_ICONS}\lyx.ico"
|
|
|
|
|
!define SETUP_HEADERIMAGE "graphics\header.bmp"
|
|
|
|
|
!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
|
|
|
|
|
!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
|
|
|
|
|
!define SETUP_UNINSTALLER_KEY "${APP_NAME}"
|
|
|
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
|
# Names of binaries to identify compontents
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!define BIN_LATEX "tex.exe"
|
2008-05-02 15:53:14 +00:00
|
|
|
|
!define BIN_BIBTEXEDITOR "JabRef.exe"
|
2008-04-05 19:12:37 +00:00
|
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
|
# Custom NSIS plug-ins
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
2008-05-01 18:33:36 +00:00
|
|
|
|
!addplugindir "${FILES_NSISPLUGINS}"
|