]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/include/declarations.nsh
fix 2 more installer issues
[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_MIKTEX "${FILES_DEPS}\miktex"
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 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}"
47 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}"
48 !define APP_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_NAME}.exe"
49 !define APP_DIR "${APP_NAME} ${APP_SERIES_NAME}"
50 !define APP_DIR_USERDATA "${APP_NAME}${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
51 !define APP_INFO "${APP_NAME} - The Document Processor"
52 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2012 by the LyX Team"
53
54 !define APP_RUN "bin\lyx.exe"
55
56 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}" # like "LyX200"
57 !define APP_REGKEY_SETUP "${APP_REGKEY}\Setup"
58 !define APP_REGKEY_SETTINGS "${APP_REGKEY}\Settings"
59
60 !define APP_REGNAME_DOC "${APP_NAME}.Document"
61
62 !define APP_EXT ".lyx"
63 !define APP_MIME_TYPE "application/lyx"
64
65 !define APP_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
66
67 #--------------------------------
68 # Setup settings
69
70 # Output file name can be configured using command line paramaters like
71 # /DExeFile=/path/to/installer
72
73 !if ${SETUPTYPE} == STANDARD
74
75   !define SETUP_EXE ${ExeFile}
76
77 !else if ${SETUPTYPE} == BUNDLE
78
79   !define SETUP_EXE ${BundleExeFile}
80   !define BUNDLESETUP_LATEX
81
82 !endif
83
84 !define SETUP_ICON "${FILES_ICONS}\lyx.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 compontents
92
93 !define BIN_LATEX "latex.exe"
94 !define BIN_BIBTEXEDITOR "JabRef.exe"
95
96 #--------------------------------
97 # Custom NSIS plug-ins
98
99 !addplugindir "${FILES_NSISPLUGINS}"