]> git.lyx.org Git - features.git/blob - development/Win32/packaging/installer/settings.nsh
locate local MiKTeX root and install dvipost
[features.git] / development / Win32 / packaging / installer / settings.nsh
1 /*\r
2 \r
3 Settings for LyX installer\r
4 \r
5 */\r
6 \r
7 SetCompressor /SOLID lzma\r
8 \r
9 #--------------------------------\r
10 # Location of LyX files and dependencies\r
11 \r
12 !ifdef FilesLyX\r
13   !define FILES_LYX "${FilesLyX}"\r
14 !else\r
15   !define FILES_LYX "..\..\..\..\build-msvc"\r
16 !endif\r
17 \r
18 !ifdef FilesDeps\r
19   !define FILES_DEPS "${FilesDeps}"\r
20 !else\r
21   !define FILES_DEPS "..\..\..\..\lyx-windows-deps-msvc2008"\r
22 !endif\r
23 \r
24 !ifdef FilesBundle\r
25   !define FILES_BUNDLE "${FilesBundle}"\r
26 !else\r
27   !define FILES_BUNDLE "..\..\..\..\lyx-windows-bundle-deps"\r
28 !endif\r
29 \r
30 #--------------------------------\r
31 # Location of Python 2.5\r
32 \r
33 !ifdef FilesPython\r
34   !define FILES_PYTHON "${FilesPython}"\r
35 !else\r
36   !define FILES_PYTHON "C:\Python25"\r
37 !endif\r
38 \r
39 #--------------------------------\r
40 # File locations\r
41 \r
42 !define FILES_LICENSE "license.rtf"\r
43 \r
44 !define FILES_ICONS "..\icons"\r
45 !define FILES_LAUNCHER "..\..\launcher"\r
46 !define FILES_PDFVIEW "..\..\pdfview"\r
47 \r
48 !define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375"\r
49 !define FILES_NETPBM "${FILES_DEPS}\netpbm"\r
50 !define FILES_DTL "${FILES_DEPS}\dtl"\r
51 !define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"\r
52 !define FILES_DVIPOST "${FILES_DEPS}\dvipost"\r
53 !define FILES_DVIPOST_PKG "${FILES_DVIPOST}"\r
54 !define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"\r
55 \r
56 !define FILES_QT "${FILES_DEPS}\qt-4"\r
57 !define FILES_ASPELLDATA "${FILES_DEPS}\aspell"\r
58 \r
59 !define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"\r
60 \r
61 #--------------------------------\r
62 # Locations of components to download\r
63 \r
64 !define MIRROR_SF1 "http://superb-west.dl.sourceforge.net/sourceforge"\r
65 !define MIRROR_SF2 "http://mesh.dl.sourceforge.net/sourceforge"\r
66 \r
67 !macro SourceForgeMirror ID FILENAME\r
68   !define DOWNLOAD_${ID} "${MIRROR_SF1}/${FILENAME}"\r
69   !define DOWNLOADALT_${ID} "${MIRROR_SF2}/${FILENAME}"\r
70 !macroend\r
71 \r
72 !insertmacro SourceForgeMirror LATEX "miktex/basic-miktex-2.7.2904.exe"\r
73 !insertmacro SourceForgeMirror IMAGEMAGICK "imagemagick/ImageMagick-6.3.7-8-Q16-windows-dll.exe"\r
74 !insertmacro SourceForgeMirror GHOSTSCRIPT "ghostscript/gs861w32.exe"\r
75 \r
76 !define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"\r
77 !define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"\r
78 \r
79 #--------------------------------\r
80 # Download size (in KB)\r
81 \r
82 !define SIZE_DOWNLOAD_LATEX 78493\r
83 !define SIZE_DOWNLOAD_IMAGEMAGICK 7330\r
84 !define SIZE_DOWNLOAD_GHOSTSCRIPT 12469\r
85 \r
86 #--------------------------------\r
87 # Approximations of space required for components (in KB)\r
88 \r
89 !define SIZE_LATEX 225000\r
90 !define SIZE_IMAGEMAGICK 18700\r
91 !define SIZE_GHOSTSCRIPT 31500\r
92 #--------------------------------\r
93 # Locations of setup files for components (for bundled setup)\r
94 \r
95 !define INSTALL_LATEX "basic-miktex-2.7.2904.exe"\r
96 !define INSTALL_IMAGEMAGICK "ImageMagick-6.3.7-8-Q16-windows-dll.exe"\r
97 !define INSTALL_GHOSTSCRIPT "gs861w32.exe"\r
98 \r
99 #--------------------------------\r
100 # Names and version\r
101 \r
102 !define APP_NAME "LyX"\r
103 !define /date APP_VERSION "1.6svn %Y%m%d"\r
104 !define APP_VERSION_NUMBER "1.6.0.0"\r
105 !define APP_SERIES_NAME "1.6"\r
106 !define APP_SERIES_KEY "16"\r
107 !define APP_DIR_USERDATA "LyX16"\r
108 !define APP_INFO "${APP_NAME} - The Document Processor"\r
109 !define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"\r
110 \r
111 !define APP_RUN "bin\lyx.exe"\r
112 \r
113 !define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"\r
114 !define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"\r
115 !define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"\r
116 \r
117 !define APP_REGNAME_DOC "LyX.Document"\r
118 \r
119 !define APP_EXT ".lyx"\r
120 !define APP_MIME_TYPE "application/lyx"\r
121 \r
122 #--------------------------------\r
123 # Setup settings\r
124 \r
125 # Output file name can be configured using command line paramater\r
126 # /DExeFile=/path/to/installer or /DBundleExeFile=/path/to/installer if \r
127 # SETUPTYPE_BUNDLE is defined.\r
128 \r
129 !ifndef SETUPTYPE_BUNDLE\r
130   !ifndef ExeFile\r
131     !define /date ExeFile "LyX-16svn-%Y%m%d-Installer.exe"\r
132   !endif\r
133   !define SETUP_EXE "${ExeFile}"\r
134 !else\r
135   !ifndef SETUPTYPE_BUNDLE\r
136     !define /date BundleExeFile "LyX-16svn-%Y%m%d-Installer-Bundle.exe"\r
137   !endif\r
138   !define SETUP_EXE "${BundleExeFile}"  \r
139 !endif\r
140 \r
141 !define SETUP_DEFAULT_DIRECTORY "$PROGRAMFILES\${APP_NAME}${APP_SERIES_KEY}"\r
142 !define SETUP_ICON "${FILES_ICONS}\lyx_32x32.ico"\r
143 !define SETUP_HEADERIMAGE "graphics\header.bmp"\r
144 !define SETUP_WIZARDIMAGE "graphics\wizard.bmp"\r
145 !define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"\r
146 !define SETUP_UNINSTALLER_KEY "${APP_NAME}"\r
147 \r
148 #--------------------------------\r
149 # Names of binaries to identify compontents\r
150 \r
151 !define BIN_LATEX "tex.exe"\r
152 !define BIN_IMAGEMAGICK "convert.exe"\r
153 !define BIN_GHOSTSCRIPT "gswin32c.exe"\r
154 \r
155 #--------------------------------\r
156 # Custom NSIS plug-ins\r
157 \r
158 !addplugindir "${FILES_NSISPLUGINS}"\r