]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/include/declarations.nsh
* Metafile to EPS conversion on 64-bit Windows
[lyx.git] / development / Win32 / packaging / installer / include / declarations.nsh
1 /*
2
3 declaration.nsh
4
5 Configuration of LyX installer
6
7 */
8
9 SetCompressor /SOLID lzma
10
11 #--------------------------------
12 # Location of LyX files and dependencies
13
14 !ifdef FilesLyX
15   !define FILES_LYX "${FilesLyX}"
16 !else
17   !define FILES_LYX "..\..\..\..\build-msvc"
18 !endif
19
20 !ifdef FilesDeps
21   !define FILES_DEPS "${FilesDeps}"
22 !else
23   !define FILES_DEPS "..\..\..\..\lyx-windows-deps-msvc2008"
24 !endif
25
26 !ifdef FilesBundle
27   !define FILES_BUNDLE "${FilesBundle}"
28 !else
29   !define FILES_BUNDLE "..\..\..\..\lyx-windows-bundle-deps"
30 !endif
31
32 #--------------------------------
33 # File locations
34
35 !define FILES_LICENSE "license.rtf"
36
37 !define FILES_ICONS "..\icons"
38 !define FILES_LAUNCHER "..\..\launcher"
39 !define FILES_PDFVIEW "..\..\pdfview"
40
41 !if ${COMPILER_OS} == VISTA 
42   !define FILES_MSVC "$%SystemRoot%\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91"
43 !else
44   !define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375"
45 !endif
46 !define FILES_PYTHON "${FILES_DEPS}\python"
47 !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
48 !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
49 !define FILES_NETPBM "${FILES_DEPS}\netpbm"
50 !define FILES_DTL "${FILES_DEPS}\dtl"
51 !define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"
52 !define FILES_DVIPOST "${FILES_DEPS}\dvipost"
53 !define FILES_DVIPOST_PKG "${FILES_DVIPOST}"
54 !define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"
55 !define FILES_METAFILE2EPS "${FILES_DEPS}\metafile2eps"
56
57 !define FILES_QT "${FILES_DEPS}\qt-4"
58 !define FILES_ASPELLDATA "${FILES_DEPS}\aspell"
59
60 !define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"
61
62 #--------------------------------
63 # Locations of components to download
64
65 # CTAN and SourceForge select a mirror automatically
66
67 !define DOWNLOAD_LATEX "http://www.ctan.org/get/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
68 !define DOWNLOADALT_LATEX "http://www.ctan.org/get/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
69
70 !define DOWNLOAD_IMAGEMAGICK "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_IMAGEMAGICK}"
71 !define DOWNLOADALT_IMAGEMAGICK "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_IMAGEMAGICK}"
72
73 !define DOWNLOAD_GHOSTSCRIPT "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_GHOSTSCRIPT}"
74 !define DOWNLOADALT_GHOSTSCRIPT "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_GHOSTSCRIPT}"
75
76 !define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"
77 !define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"
78
79 #--------------------------------
80 # Locations of setup files for components (for bundled setup)
81
82 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
83 !define INSTALL_IMAGEMAGICK "${SETUPFILE_IMAGEMAGICK}"
84 !define INSTALL_GHOSTSCRIPT "${SETUPFILE_GHOSTSCRIPT}"
85
86 #--------------------------------
87 # Names and version
88
89 !define APP_NAME "LyX"
90 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
91 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
92 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
93 !define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
94 !define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
95 !define APP_INFO "${APP_NAME} - The Document Processor"
96 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"
97
98 !define APP_RUN "bin\LyXLauncher.exe"
99
100 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
101 !define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
102 !define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
103
104 !define APP_REGNAME_DOC "LyX.Document"
105
106 !define APP_EXT ".lyx"
107 !define APP_MIME_TYPE "application/lyx"
108
109 #--------------------------------
110 # Setup settings
111
112 # Output file name can be configured using command line paramaters like
113 # /DExeFile=/path/to/installer
114
115 !ifndef SETUPTYPE
116   !define SETUPTYPE STANDARD
117 !endif
118
119 !if ${SETUPTYPE} == MINIMAL
120
121   !define SETUP_EXE ${MinimalExeFile}
122  
123 !else if ${SETUPTYPE} == STANDARD
124
125   !define SETUP_EXE ${ExeFile}
126   !define BUNDLE_IMAGEMAGICK
127   !define BUNDLE_GHOSTSCRIPT
128
129 !else if ${SETUPTYPE} == BUNDLE
130
131   !define SETUP_EXE ${BundleExeFile}
132   !define BUNDLE_IMAGEMAGICK
133   !define BUNDLE_GHOSTSCRIPT
134   !define BUNDLESETUP_LATEX
135
136 !endif
137
138 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
139 !define SETUP_HEADERIMAGE "graphics\header.bmp"
140 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
141 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
142 !define SETUP_UNINSTALLER_KEY "${APP_NAME}"
143
144 #--------------------------------
145 # Names of binaries to identify compontents
146
147 !define BIN_LATEX "tex.exe"
148 !define BIN_IMAGEMAGICK "convert.exe"
149 !define BIN_GHOSTSCRIPT "gswin32c.exe"
150 !define BIN_BIBTEXEDITOR "JabRef.exe"
151
152 #--------------------------------
153 # Custom NSIS plug-ins
154
155 !addplugindir "${FILES_NSISPLUGINS}"