5 Configuration of LyX installer
9 SetCompressor /SOLID lzma
11 #--------------------------------
14 !define FILES_LICENSE "license.rtf"
15 !define FILES_ICONS "..\icons"
16 !define FILES_PDFVIEW "${FILES_DEPS}\bin"
17 !define FILES_MSVC "${FILES_DEPS}\bin"
18 !define FILES_PYTHON "${FILES_DEPS}\python"
19 !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
20 !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
21 !define FILES_NETPBM "${FILES_DEPS}\bin"
22 !define FILES_DTL "${FILES_DEPS}\bin"
23 !define FILES_DVIPOST "${FILES_DEPS}\bin"
24 !define FILES_DVIPOST_PKG "${FILES_DEPS}\tex"
25 !define FILES_PDFTOOLS "${FILES_DEPS}\bin"
26 !define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
28 #--------------------------------
29 # Locations of components to download
31 # CTAN and SourceForge select a mirror automatically
33 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
35 #--------------------------------
36 # Locations of setup files for components (for bundled setup)
38 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
40 #--------------------------------
43 !define APP_NAME "LyX"
44 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
45 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
46 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
47 !define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
48 !define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
49 !define APP_INFO "${APP_NAME} - The Document Processor"
50 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2011 LyX Team"
52 !define APP_RUN "bin\LyX.exe"
54 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
55 !define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
56 !define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
58 !define APP_REGNAME_DOC "LyX.Document"
60 !define APP_EXT ".lyx"
61 !define APP_MIME_TYPE "application/lyx"
63 #--------------------------------
66 # Output file name can be configured using command line paramaters like
67 # /DExeFile=/path/to/installer
70 !define SETUPTYPE STANDARD
73 !if ${SETUPTYPE} == STANDARD
75 !define SETUP_EXE ${ExeFile}
77 !else if ${SETUPTYPE} == BUNDLE
79 !define SETUP_EXE ${BundleExeFile}
80 !define BUNDLESETUP_LATEX
84 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
85 !define SETUP_HEADERIMAGE "graphics\header.bmp"
86 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
87 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
88 !define SETUP_UNINSTALLER_KEY "${APP_NAME}"
90 #--------------------------------
91 # Names of binaries to identify compontents
93 !define BIN_LATEX "tex.exe"
94 !define BIN_BIBTEXEDITOR "JabRef.exe"
96 #--------------------------------
97 # Custom NSIS plug-ins
99 !addplugindir "${FILES_NSISPLUGINS}"