]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/declarations.nsh
9c01f218034dd87ed12e81ea77e725ccae5c4e9a
[features.git] / development / Win32 / packaging / installer / include / declarations.nsh
1 /*
2
3 declaration.nsh
4
5 Configuration of LyX installer
6
7 */
8
9 #--------------------------------
10 # File locations
11
12 !define FILES_LICENSE "license.rtf"
13 !define FILES_ICONS "icons"
14 !define FILES_PDFVIEW "${FILES_DEPS}\bin"
15 !define FILES_MSVC "${FILES_DEPS}\bin"
16 !define FILES_PYTHON "${FILES_DEPS}\python"
17 !define FILES_ELYXER "${FILES_DEPS}\bin"
18 !define FILES_UNOCONV "${FILES_DEPS}\bin"
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"
27
28 #--------------------------------
29 # Locations of components to download
30
31 # CTAN and SourceForge select a mirror automatically
32
33 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
34
35 #--------------------------------
36 # Locations of setup files for components (for bundled setup)
37
38 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
39
40 #--------------------------------
41 # Names and version
42
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}.${APP_VERSION_REVISION}"
46 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}"
47 !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
48 !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
49 !define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
50 !define APP_INFO "${APP_NAME} - The Document Processor"
51 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team"
52
53 !define APP_RUN "bin\lyx.exe"
54
55 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200"
56 !define APP_REGKEY_SETUP "Software\${APP_REGKEY}\Setup"
57 !define APP_REGKEY_SETTINGS "Software\${APP_REGKEY}\Settings"
58
59 !define APP_REGNAME_DOC "${APP_NAME}.Document"
60
61 !define APP_EXT ".lyx"
62 !define APP_MIME_TYPE "application/lyx"
63
64 !define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
65
66 #--------------------------------
67 # Setup settings
68
69 # Output file name can be configured using command line paramaters like
70 # /DExeFile=/path/to/installer
71
72 !if ${SETUPTYPE} == STANDARD
73
74   !define SETUP_EXE ${ExeFile}
75
76 !else if ${SETUPTYPE} == BUNDLE
77
78   !define SETUP_EXE ${BundleExeFile}
79   !define BUNDLESETUP_LATEX
80
81 !endif
82
83 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
84 !define SETUP_HEADERIMAGE "graphics\header.bmp"
85 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
86 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
87 !define SETUP_UNINSTALLER_KEY "${APP_NAME}${APP_SERIES_KEY}"
88
89 #--------------------------------
90 # Names of binaries to identify compontents
91
92 !define BIN_LATEX "latex.exe"
93 !define BIN_BIBTEXEDITOR "JabRef.exe"
94
95 #--------------------------------
96 # Custom NSIS plug-ins
97
98 !addplugindir "${FILES_NSISPLUGINS}"