]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/declarations.nsh
1bccc0cd5b357cb3ab5c6c0d34398f94ddf2f5b9
[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_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
18 !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
19 !define FILES_NETPBM "${FILES_DEPS}\bin"
20 !define FILES_DTL "${FILES_DEPS}\bin"
21 !define FILES_DVIPOST "${FILES_DEPS}\bin"
22 !define FILES_DVIPOST_PKG "${FILES_DEPS}\tex"
23 !define FILES_PDFTOOLS "${FILES_DEPS}\bin"
24 !define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
25
26 #--------------------------------
27 # Locations of components to download
28
29 # CTAN and SourceForge select a mirror automatically
30
31 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
32
33 #--------------------------------
34 # Locations of setup files for components (for bundled setup)
35
36 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
37
38 #--------------------------------
39 # Names and version
40
41 !define APP_NAME "LyX"
42 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
43 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}"
44 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}"
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 "lyx${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
48 !define APP_INFO "${APP_NAME} - The Document Processor"
49 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team"
50
51 !define APP_RUN "bin\lyx.exe"
52
53 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200"
54 !define APP_REGKEY_SETUP "Software\${APP_REGKEY}\Setup"
55 !define APP_REGKEY_SETTINGS "Software\${APP_REGKEY}\Settings"
56
57 !define APP_REGNAME_DOC "${APP_NAME}.Document"
58
59 !define APP_EXT ".lyx"
60 !define APP_MIME_TYPE "application/lyx"
61
62 !define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
63
64 #--------------------------------
65 # Setup settings
66
67 # Output file name can be configured using command line paramaters like
68 # /DExeFile=/path/to/installer
69
70 !if ${SETUPTYPE} == STANDARD
71
72   !define SETUP_EXE ${ExeFile}
73
74 !else if ${SETUPTYPE} == BUNDLE
75
76   !define SETUP_EXE ${BundleExeFile}
77   !define BUNDLESETUP_LATEX
78
79 !endif
80
81 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
82 !define SETUP_HEADERIMAGE "graphics\header.bmp"
83 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
84 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
85 !define SETUP_UNINSTALLER_KEY "${APP_NAME}${APP_SERIES_KEY}"
86
87 #--------------------------------
88 # Names of binaries to identify compontents
89
90 !define BIN_LATEX "latex.exe"
91 !define BIN_BIBTEXEDITOR "JabRef.exe"
92
93 #--------------------------------
94 # Custom NSIS plug-ins
95
96 !addplugindir "${FILES_NSISPLUGINS}"