]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/include/declarations.nsh
6657ffc4cbcd40267208616fd05a03bcb59eeb1c
[lyx.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_PERL "${FILES_DEPS}\Perl"
17 !define FILES_PYTHON "${FILES_DEPS}\Python"
18 !define FILES_ELYXER "${FILES_DEPS}\bin"
19 !define FILES_UNOCONV "${FILES_DEPS}\bin"
20 !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
21 !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
22 !define FILES_NETPBM "${FILES_DEPS}\bin"
23 !define FILES_RSVG "${FILES_DEPS}\bin"
24 !define FILES_DTL "${FILES_DEPS}\bin"
25 !define FILES_DVIPOST "${FILES_DEPS}\bin"
26 !define FILES_DVIPOST_PKG "${FILES_DEPS}\tex"
27 !define FILES_PDFTOOLS "${FILES_DEPS}\bin"
28 !define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
29
30 #--------------------------------
31 # Locations of components to download
32
33 # CTAN and SourceForge select a mirror automatically
34
35 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
36
37 #--------------------------------
38 # Locations of setup files for components (for bundled setup)
39
40 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
41
42 #--------------------------------
43 # Names and version
44
45 !define APP_NAME "LyX"
46 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
47 # for the proposed install folder we use the scheme "LyX 2.0" while we need for the registry the scheme "LyX 2.0.4"
48 # to check if it is exactly this version (to support side by side installations)
49 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
50 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}"
51 !define APP_SERIES_KEY2 "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}"
52 !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
53 !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
54 !define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
55 !define APP_INFO "${APP_NAME} - The Document Processor"
56 !define APP_WEBPAGE "http://www.lyx.org/"
57 !define APP_WEBPAGE_INFO "${APP_NAME} Website"
58 !define APP_WIKI "http://wiki.lyx.org"
59 !define APP_WIKI_INFO "${APP_NAME} Wiki"
60 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2016 by the LyX Team"
61
62 !define APP_RUN "bin\lyx.exe"
63 !define BIN_LYX "lyx.exe"
64
65 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200"
66 !define APP_REGKEY_SETUP "${APP_REGKEY}\Setup"
67 !define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings"
68
69 !define APP_REGNAME_DOC "${APP_NAME}.Document"
70
71 !define APP_EXT ".lyx"
72 !define APP_MIME_TYPE "application/lyx"
73
74 !define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
75
76 #--------------------------------
77 # Setup settings
78
79 # Output file name can be configured using command line paramaters like
80 # /DExeFile=/path/to/installer
81
82 !if ${SETUPTYPE} == STANDARD
83
84   !define SETUP_EXE ${ExeFile}
85
86 !else if ${SETUPTYPE} == BUNDLE
87
88   !define SETUP_EXE ${BundleExeFile}
89   !define BUNDLESETUP_LATEX
90
91 !endif
92
93 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
94 !define SETUP_HEADERIMAGE "graphics\header.bmp"
95 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
96 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
97 !define SETUP_UNINSTALLER_KEY "${APP_NAME}${APP_SERIES_KEY}"
98
99 #--------------------------------
100 # Names of binaries to identify components
101
102 !define BIN_LATEX "latex.exe"
103 !define BIN_BIBTEXEDITOR "JabRef.exe"