]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/declarations.nsh
Consider inset strings in simple find/replaceAll (#12049)
[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 "${FILES_GIT}\installer\license.rtf"
13 !define FILES_ICONS "${FILES_GIT}\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_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_RSVG "${FILES_DEPS}\bin"
23 !define FILES_DTL "${FILES_DEPS}\bin"
24 !define FILES_PDFTOOLS "${FILES_DEPS}\bin"
25 !define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
26
27 #--------------------------------
28 # Locations of components to download
29
30 # CTAN and SourceForge select a mirror automatically
31
32 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
33
34 #--------------------------------
35 # Names and version
36
37 !define APP_NAME "LyX"
38 !define APP_NAME_SMALL "lyx"
39 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
40 # for the proposed install folder we use the scheme "LyX 2.2" while we need for the registry the scheme "LyX 2.1.4"
41 # to check if it is exactly this version (to support side by side installations)
42 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
43 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}"
44 !define APP_SERIES_KEY2 "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}"
45 !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
46 !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
47 !define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
48 !define APP_INFO "${APP_NAME} - The Document Processor"
49 !define APP_WEBPAGE "https://www.lyx.org/"
50 !define APP_WEBPAGE_INFO "${APP_NAME} Website"
51 !define APP_WIKI "https://wiki.lyx.org"
52 !define APP_WIKI_INFO "${APP_NAME} Wiki"
53 !define APP_COPYRIGHT "${APP_NAME} is Copyright © 1995 by Matthias Ettrich, 1995-${COPYRIGHT_YEAR} by the ${APP_NAME} Team"
54
55 !if ${SETUPTYPE} == STANDARD
56   !define APP_SETUPTYPE "Standard"
57 !endif
58
59 !define BIN_LYX "${APP_NAME}.exe"
60 !define APP_RUN "bin\${BIN_LYX}"
61
62 !define APP_REGFOLDER "Software\${APP_NAME}"
63 !define APP_REGKEY "${APP_REGFOLDER}\${APP_SERIES_KEY}" # like "LyX\220"
64 !define APP_REGKEY_SETUP "${APP_REGKEY}\Setup"
65 !define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings"
66
67 !define APP_REGNAME_DOC "${APP_NAME}.Document"
68
69 !define APP_EXT ".${APP_NAME_SMALL}"
70 !define APP_MIME_TYPE "application/${APP_NAME_SMALL}"
71
72 !define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
73
74 #--------------------------------
75 # Setup settings
76
77 # Output file name can be configured using command line paramaters like
78 # /DExeFile=/path/to/installer
79
80 !if ${SETUPTYPE} == STANDARD
81   !define SETUP_EXE ${ExeFile}
82 !endif
83
84 !define SETUP_ICON "${FILES_ICONS}\${APP_NAME_SMALL}.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}${APP_SERIES_KEY}"
89
90 #--------------------------------
91 # Names of binaries to identify components
92
93 !define BIN_LATEX "latex.exe"
94 !define BIN_BIBTEXEDITOR "JabRef.exe"