]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/include/declarations.nsh.cmake
cmake: generate ready-to-use nsis files
[lyx.git] / development / Win32 / packaging / installer / include / declarations.nsh.cmake
1 /*
2
3 declaration.nsh
4
5 Configuration of LyX installer
6
7 */
8
9 SetCompressor /SOLID lzma
10
11 #--------------------------------
12 # File locations
13
14 !define FILES_LICENSE "${FILES_INSTALLER}\license.rtf"
15 !define FILES_ICONS "${FILES_INSTALLER}\..\icons"
16 !define FILES_PDFVIEW "${FILES_DEPS}\bin"
17 !define FILES_MSVC "${FILES_DEPS}\bin"
18 !define FILES_PYTHON "${FILES_DEPS}\python"
19 !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
20 !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
21 !define FILES_NETPBM "${FILES_DEPS}\bin"
22 !define FILES_DTL "${FILES_DEPS}\bin"
23 !define FILES_DVIPOST "${FILES_DEPS}\bin"
24 !define FILES_DVIPOST_PKG "${FILES_DEPS}\tex"
25 !define FILES_PDFTOOLS "${FILES_DEPS}\bin"
26 !define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
27
28 #--------------------------------
29 # Locations of components to download
30
31 # CTAN and SourceForge select a mirror automatically
32
33 !define DOWNLOAD_LATEX "http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
34
35 #--------------------------------
36 # Locations of setup files for components (for bundled setup)
37
38 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
39
40 #--------------------------------
41 # Names and version
42
43 !define APP_NAME "LyX"
44 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_PATCH}.${APP_VERSION_REVISION}"
45 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
46 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
47 !define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
48 !define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
49 !define APP_INFO "${APP_NAME} - The Document Processor"
50 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2011 LyX Team"
51
52 !define APP_RUN "bin\LyX.exe"
53
54 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
55 !define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
56 !define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
57
58 !define APP_REGNAME_DOC "LyX.Document"
59
60 !define APP_EXT ".lyx"
61 !define APP_MIME_TYPE "application/lyx"
62
63 #--------------------------------
64 # Setup settings
65
66 # Output file name can be configured using command line paramaters like
67 # /DExeFile=/path/to/installer
68
69 !ifndef SETUPTYPE
70   !define SETUPTYPE STANDARD
71 !endif
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 "${FILES_INSTALLER}\graphics\header.bmp"
86 !define SETUP_WIZARDIMAGE "${FILES_INSTALLER}\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 "tex.exe"
94 !define BIN_BIBTEXEDITOR "JabRef.exe"
95
96 #--------------------------------
97 # Custom NSIS plug-ins
98
99 !addplugindir "${FILES_NSISPLUGINS}"