]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/include/declarations.nsh
updated download locations
[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 !define FILES_PSPRINTER "${FILES_DEPS}\metafile2eps\PSPrinter"
57
58 !define FILES_QT "${FILES_DEPS}\qt-4"
59 !define FILES_ASPELLDATA "${FILES_DEPS}\aspell"
60
61 !define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"
62
63 #--------------------------------
64 # Locations of components to download
65
66 # CTAN and SourceForge select a mirror automatically
67
68 !define DOWNLOAD_LATEX "http://www.ctan.org/get/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
69 !define DOWNLOADALT_LATEX "http://www.ctan.org/get/systems/win32/miktex/setup/${SETUPFILE_LATEX}"
70
71 !define DOWNLOAD_IMAGEMAGICK "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_IMAGEMAGICK}"
72 !define DOWNLOADALT_IMAGEMAGICK "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_IMAGEMAGICK}"
73
74 !define DOWNLOAD_GHOSTSCRIPT "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_GHOSTSCRIPT}"
75 !define DOWNLOADALT_GHOSTSCRIPT "http://downloads.sourceforge.net/imagemagick/${SETUPFILE_GHOSTSCRIPT}"
76
77 !define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"
78 !define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"
79
80 #--------------------------------
81 # Locations of setup files for components (for bundled setup)
82
83 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
84 !define INSTALL_IMAGEMAGICK "${SETUPFILE_IMAGEMAGICK}"
85 !define INSTALL_GHOSTSCRIPT "${SETUPFILE_GHOSTSCRIPT}"
86
87 #--------------------------------
88 # Names and version
89
90 !define APP_NAME "LyX"
91 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
92 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
93 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
94 !define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
95 !define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
96 !define APP_INFO "${APP_NAME} - The Document Processor"
97 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"
98
99 !define APP_RUN "bin\LyXLauncher.exe"
100
101 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
102 !define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
103 !define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
104
105 !define APP_REGNAME_DOC "LyX.Document"
106
107 !define APP_EXT ".lyx"
108 !define APP_MIME_TYPE "application/lyx"
109
110 #--------------------------------
111 # Setup settings
112
113 # Output file name can be configured using command line paramaters like
114 # /DExeFile=/path/to/installer
115
116 !ifndef SETUPTYPE
117   !define SETUPTYPE STANDARD
118 !endif
119
120 !if ${SETUPTYPE} == MINIMAL
121
122   !define SETUP_EXE ${MinimalExeFile}
123  
124 !else if ${SETUPTYPE} == STANDARD
125
126   !define SETUP_EXE ${ExeFile}
127   !define BUNDLE_IMAGEMAGICK
128   !define BUNDLE_GHOSTSCRIPT
129
130 !else if ${SETUPTYPE} == BUNDLE
131
132   !define SETUP_EXE ${BundleExeFile}
133   !define BUNDLE_IMAGEMAGICK
134   !define BUNDLE_GHOSTSCRIPT
135   !define BUNDLESETUP_LATEX
136
137 !endif
138
139 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
140 !define SETUP_HEADERIMAGE "graphics\header.bmp"
141 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
142 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
143 !define SETUP_UNINSTALLER_KEY "${APP_NAME}"
144
145 #--------------------------------
146 # Names of binaries to identify compontents
147
148 !define BIN_LATEX "tex.exe"
149 !define BIN_IMAGEMAGICK "convert.exe"
150 !define BIN_GHOSTSCRIPT "gswin32c.exe"
151 !define BIN_BIBTEXEDITOR "JabRef.exe"
152
153 #--------------------------------
154 # Custom NSIS plug-ins
155
156 !addplugindir "${FILES_NSISPLUGINS}"