]> git.lyx.org Git - lyx.git/blob - development/Win32/packaging/installer/include/declarations.nsh
detect JabRef and put in path_prefix (for new menu item to edit BibTeX database)
[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 !define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375"
42 !define FILES_PYTHON "${FILES_DEPS}\python"
43 !define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
44 !define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
45 !define FILES_NETPBM "${FILES_DEPS}\netpbm"
46 !define FILES_DTL "${FILES_DEPS}\dtl"
47 !define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"
48 !define FILES_DVIPOST "${FILES_DEPS}\dvipost"
49 !define FILES_DVIPOST_PKG "${FILES_DVIPOST}"
50 !define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"
51 !define FILES_METAFILE2EPS "${FILES_DEPS}\metafile2eps"
52 !define FILES_PSPRINTER "${FILES_DEPS}\metafile2eps\PSPrinter"
53
54 !define FILES_QT "${FILES_DEPS}\qt-4"
55 !define FILES_ASPELLDATA "${FILES_DEPS}\aspell"
56
57 !define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"
58
59 #--------------------------------
60 # Locations of components to download
61
62 !define MIRROR_SF1 "http://superb-west.dl.sourceforge.net/sourceforge"
63 !define MIRROR_SF2 "http://mesh.dl.sourceforge.net/sourceforge"
64
65 !macro SourceForgeMirror ID FILENAME
66   !define DOWNLOAD_${ID} "${MIRROR_SF1}/${FILENAME}"
67   !define DOWNLOADALT_${ID} "${MIRROR_SF2}/${FILENAME}"
68 !macroend
69
70 !insertmacro SourceForgeMirror LATEX "miktex/${SETUPFILE_LATEX}"
71 !insertmacro SourceForgeMirror IMAGEMAGICK "imagemagick/${SETUPFILE_IMAGEMAGICK}"
72 !insertmacro SourceForgeMirror GHOSTSCRIPT "ghostscript/${SETUPFILE_GHOSTSCRIPT}"
73
74 !define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"
75 !define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"
76
77 #--------------------------------
78 # Locations of setup files for components (for bundled setup)
79
80 !define INSTALL_LATEX "${SETUPFILE_LATEX}"
81 !define INSTALL_IMAGEMAGICK "${SETUPFILE_IMAGEMAGICK}"
82 !define INSTALL_GHOSTSCRIPT "${SETUPFILE_GHOSTSCRIPT}"
83
84 #--------------------------------
85 # Names and version
86
87 !define APP_NAME "LyX"
88 !define /date APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}svn %Y%m%d"
89 !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
90 !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
91 !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
92 !define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
93 !define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
94 !define APP_INFO "${APP_NAME} - The Document Processor"
95 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"
96
97 !define APP_RUN "bin\LyXLauncher.exe"
98
99 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
100 !define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
101 !define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
102
103 !define APP_REGNAME_DOC "LyX.Document"
104
105 !define APP_EXT ".lyx"
106 !define APP_MIME_TYPE "application/lyx"
107
108 #--------------------------------
109 # Setup settings
110
111 # Output file name can be configured using command line paramaters like
112 # /DExeFile=/path/to/installer
113
114 !ifndef SETUPTYPE
115   !define SETUPTYPE STANDARD
116 !endif
117
118 !if ${SETUPTYPE} == MINIMAL
119
120   !define SETUP_EXE ${MinimalExeFile}
121  
122 !else if ${SETUPTYPE} == STANDARD
123
124   !define SETUP_EXE ${ExeFile}
125   !define BUNDLE_IMAGEMAGICK
126   !define BUNDLE_GHOSTSCRIPT
127
128 !else if ${SETUPTYPE} == BUNDLE
129
130   !define SETUP_EXE ${BundleExeFile}
131   !define BUNDLE_IMAGEMAGICK
132   !define BUNDLE_GHOSTSCRIPT
133   !define BUNDLESETUP_LATEX
134
135 !endif
136
137 !define SETUP_ICON "${FILES_ICONS}\lyx.ico"
138 !define SETUP_HEADERIMAGE "graphics\header.bmp"
139 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
140 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
141 !define SETUP_UNINSTALLER_KEY "${APP_NAME}"
142
143 #--------------------------------
144 # Names of binaries to identify compontents
145
146 !define BIN_LATEX "tex.exe"
147 !define BIN_IMAGEMAGICK "convert.exe"
148 !define BIN_GHOSTSCRIPT "gswin32c.exe"
149 !define BIN_BIBTEXEDITOR "JabRef.exe"
150
151 #--------------------------------
152 # Custom NSIS plug-ins
153
154 !addplugindir "${FILES_NSISPLUGINS}"