/* declaration.nsh Configuration of LyX installer */ #-------------------------------- # File locations !define FILES_LICENSE "license.rtf" !define FILES_ICONS "icons" !define FILES_PDFVIEW "${FILES_DEPS}\bin" !define FILES_MSVC "${FILES_DEPS}\bin" !define FILES_PYTHON "${FILES_DEPS}\Python" !define FILES_ELYXER "${FILES_DEPS}\bin" !define FILES_UNOCONV "${FILES_DEPS}\bin" !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick" !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript" !define FILES_MIKTEX "${FILES_DEPS}\miktex" !define FILES_NETPBM "${FILES_DEPS}\bin" !define FILES_DTL "${FILES_DEPS}\bin" !define FILES_DVIPOST "${FILES_DEPS}\bin" !define FILES_DVIPOST_PKG "${FILES_DEPS}\tex" !define FILES_PDFTOOLS "${FILES_DEPS}\bin" !define FILES_METAFILE2EPS "${FILES_DEPS}\bin" #-------------------------------- # Locations of components to download # CTAN and SourceForge select a mirror automatically !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}" #-------------------------------- # Locations of setup files for components (for bundled setup) !define INSTALL_LATEX "${SETUPFILE_LATEX}" #-------------------------------- # Names and version !define APP_NAME "LyX" !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}" # for the proposed install folder we use the scheme "LyX 2.0" while we need for the registry the scheme "LyX 2.0.4" # to check if it is exactly this version (to support side by side installations) !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}" !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}" !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe" !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}" !define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}" !define APP_INFO "${APP_NAME} - The Document Processor" !define APP_WEBPAGE "http://www.lyx.org/" !define APP_WEBPAGE_INFO "${APP_NAME} Website" !define APP_WIKI "http://wiki.lyx.org" !define APP_WIKI_INFO "${APP_NAME} Wiki" !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team" !define APP_RUN "bin\lyx.exe" !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200" !define APP_REGKEY_SETUP "${APP_REGKEY}\Setup" !define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings" !define APP_REGNAME_DOC "${APP_NAME}.Document" !define APP_EXT ".lyx" !define APP_MIME_TYPE "application/lyx" !define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}" #-------------------------------- # Setup settings # Output file name can be configured using command line paramaters like # /DExeFile=/path/to/installer !if ${SETUPTYPE} == STANDARD !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}${APP_SERIES_KEY}" #-------------------------------- # Names of binaries to identify compontents !define BIN_LATEX "latex.exe" !define BIN_BIBTEXEDITOR "JabRef.exe" #-------------------------------- # Custom NSIS plug-ins !addplugindir "${FILES_NSISPLUGINS}"