]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/include/declarations.nsh
797ac6eb24287f574357d0ea458d237a9d046c69
[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_DTL "${FILES_DEPS}\bin"
24 !define FILES_DVIPOST "${FILES_DEPS}\bin"
25 !define FILES_DVIPOST_PKG "${FILES_DEPS}\tex"
26 !define FILES_PDFTOOLS "${FILES_DEPS}\bin"
27 !define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
28
29 #--------------------------------
30 # Locations of components to download
31
32 # CTAN and SourceForge select a mirror automatically
33
34 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
35
36 #--------------------------------
37 # Locations of setup files for components (for bundled setup)
38
39 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
40
41 #--------------------------------
42 # Names and version
43
44 !define APP_NAME "LyX"
45 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
46 # for the proposed install folder we use the scheme "LyX 2.0" while we need for the registry the scheme "LyX 2.0.4"
47 # to check if it is exactly this version (to support side by side installations)
48 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
49 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}"
50 !define APP_SERIES_KEY2 "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}"
51 !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
52 !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
53 !define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
54 !define APP_INFO "${APP_NAME} - The Document Processor"
55 !define APP_WEBPAGE "http://www.lyx.org/"
56 !define APP_WEBPAGE_INFO "${APP_NAME} Website"
57 !define APP_WIKI "http://wiki.lyx.org"
58 !define APP_WIKI_INFO "${APP_NAME} Wiki"
59 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team"
60
61 !define APP_RUN "bin\lyx.exe"
62
63 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200"
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 ".lyx"
70 !define APP_MIME_TYPE "application/lyx"
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
82   !define SETUP_EXE ${ExeFile}
83
84 !else if ${SETUPTYPE} == BUNDLE
85
86   !define SETUP_EXE ${BundleExeFile}
87   !define BUNDLESETUP_LATEX
88
89 !endif
90
91 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
92 !define SETUP_HEADERIMAGE "graphics\header.bmp"
93 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
94 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
95 !define SETUP_UNINSTALLER_KEY "${APP_NAME}${APP_SERIES_KEY}"
96
97 #--------------------------------
98 # Names of binaries to identify compontents
99
100 !define BIN_LATEX "latex.exe"
101 !define BIN_BIBTEXEDITOR "JabRef.exe"
102
103 #--------------------------------
104 # Custom NSIS plug-ins
105
106 !addplugindir "${FILES_NSISPLUGINS}"