2018-02-18 14:45:08 +00:00
|
|
|
/*
|
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
|
|
|
|
2007-02-26 16:03:30 +00:00
|
|
|
#--------------------------------
|
2008-05-01 18:33:36 +00:00
|
|
|
# File locations
|
|
|
|
|
2020-04-04 23:16:29 +00:00
|
|
|
!define FILES_LICENSE "${FILES_GIT}\installer\license.rtf"
|
2018-09-29 02:19:39 +00:00
|
|
|
!define FILES_ICONS "${FILES_GIT}\icons"
|
2011-02-17 19:14:18 +00:00
|
|
|
!define FILES_PDFVIEW "${FILES_DEPS}\bin"
|
2011-02-17 17:02:10 +00:00
|
|
|
!define FILES_MSVC "${FILES_DEPS}\bin"
|
2014-03-09 17:19:58 +00:00
|
|
|
!define FILES_PERL "${FILES_DEPS}\Perl"
|
2012-03-10 10:46:14 +00:00
|
|
|
!define FILES_PYTHON "${FILES_DEPS}\Python"
|
2012-03-07 00:56:12 +00:00
|
|
|
!define FILES_UNOCONV "${FILES_DEPS}\bin"
|
2008-05-01 18:33:36 +00:00
|
|
|
!define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
|
|
|
|
!define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
|
2011-02-17 19:14:18 +00:00
|
|
|
!define FILES_NETPBM "${FILES_DEPS}\bin"
|
2015-06-01 22:25:59 +00:00
|
|
|
!define FILES_RSVG "${FILES_DEPS}\bin"
|
2011-02-17 19:14:18 +00:00
|
|
|
!define FILES_DTL "${FILES_DEPS}\bin"
|
|
|
|
!define FILES_PDFTOOLS "${FILES_DEPS}\bin"
|
|
|
|
!define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
|
|
|
#--------------------------------
|
|
|
|
# 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-03-24 22:41:58 +00:00
|
|
|
!define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${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"
|
2019-10-20 21:26:08 +00:00
|
|
|
!define APP_NAME_SMALL "lyx"
|
2008-05-01 18:33:36 +00:00
|
|
|
!define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
|
2017-12-06 14:28:22 +00:00
|
|
|
# for the proposed install folder we use the scheme "LyX 2.2" while we need for the registry the scheme "LyX 2.1.4"
|
2012-07-08 13:48:26 +00:00
|
|
|
# to check if it is exactly this version (to support side by side installations)
|
|
|
|
!define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
|
2013-01-03 01:46:48 +00:00
|
|
|
!define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}"
|
|
|
|
!define APP_SERIES_KEY2 "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}"
|
2011-05-23 04:12:10 +00:00
|
|
|
!define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
|
2011-06-08 16:41:48 +00:00
|
|
|
!define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
|
2012-02-29 22:40:03 +00:00
|
|
|
!define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
|
2008-05-01 18:33:36 +00:00
|
|
|
!define APP_INFO "${APP_NAME} - The Document Processor"
|
2017-12-06 14:28:22 +00:00
|
|
|
!define APP_WEBPAGE "https://www.lyx.org/"
|
2012-07-08 13:48:26 +00:00
|
|
|
!define APP_WEBPAGE_INFO "${APP_NAME} Website"
|
2017-12-06 14:28:22 +00:00
|
|
|
!define APP_WIKI "https://wiki.lyx.org"
|
2012-07-08 13:48:26 +00:00
|
|
|
!define APP_WIKI_INFO "${APP_NAME} Wiki"
|
2017-12-06 14:28:22 +00:00
|
|
|
!define APP_COPYRIGHT "${APP_NAME} is Copyright © 1995 by Matthias Ettrich, 1995-${COPYRIGHT_YEAR} by the ${APP_NAME} Team"
|
2018-09-29 02:19:39 +00:00
|
|
|
|
2017-11-18 15:49:26 +00:00
|
|
|
!if ${SETUPTYPE} == STANDARD
|
|
|
|
!define APP_SETUPTYPE "Standard"
|
|
|
|
!endif
|
2008-05-01 18:33:36 +00:00
|
|
|
|
2019-10-20 21:26:08 +00:00
|
|
|
!define BIN_LYX "${APP_NAME}.exe"
|
2018-09-29 02:19:39 +00:00
|
|
|
!define APP_RUN "bin\${BIN_LYX}"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
2020-04-04 23:18:23 +00:00
|
|
|
!define APP_REGFOLDER "Software\${APP_NAME}"
|
|
|
|
!define APP_REGKEY "${APP_REGFOLDER}\${APP_SERIES_KEY}" # like "LyX\220"
|
2012-06-26 23:58:04 +00:00
|
|
|
!define APP_REGKEY_SETUP "${APP_REGKEY}\Setup"
|
|
|
|
!define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings"
|
2007-06-28 07:34:49 +00:00
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
!define APP_REGNAME_DOC "${APP_NAME}.Document"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
2019-10-20 21:26:08 +00:00
|
|
|
!define APP_EXT ".${APP_NAME_SMALL}"
|
|
|
|
!define APP_MIME_TYPE "application/${APP_NAME_SMALL}"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
!define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
|
|
|
|
|
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
|
|
|
|
|
2011-02-17 17:02:10 +00:00
|
|
|
!if ${SETUPTYPE} == STANDARD
|
2008-05-01 18:33:36 +00:00
|
|
|
!define SETUP_EXE ${ExeFile}
|
|
|
|
!endif
|
|
|
|
|
2019-10-20 21:26:08 +00:00
|
|
|
!define SETUP_ICON "${FILES_ICONS}\${APP_NAME_SMALL}.ico"
|
2008-05-01 18:33:36 +00:00
|
|
|
!define SETUP_HEADERIMAGE "graphics\header.bmp"
|
|
|
|
!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
|
|
|
|
!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
|
2011-04-14 18:07:57 +00:00
|
|
|
!define SETUP_UNINSTALLER_KEY "${APP_NAME}${APP_SERIES_KEY}"
|
2008-05-01 18:33:36 +00:00
|
|
|
|
|
|
|
#--------------------------------
|
2014-03-30 03:33:55 +00:00
|
|
|
# Names of binaries to identify components
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2011-05-23 04:12:10 +00:00
|
|
|
!define BIN_LATEX "latex.exe"
|
2008-05-02 15:53:14 +00:00
|
|
|
!define BIN_BIBTEXEDITOR "JabRef.exe"
|