-/*\r
-\r
-Settings for LyX installer\r
-\r
-*/\r
-\r
-SetCompressor /SOLID lzma\r
-\r
-#--------------------------------\r
-# Location of LyX files and dependencies\r
-\r
-!ifdef FilesLyX\r
- !define FILES_LYX "${FilesLyX}"\r
-!else\r
- !define FILES_LYX "..\..\..\..\build-msvc"\r
-!endif\r
-\r
-!ifdef FilesDeps\r
- !define FILES_DEPS "${FilesDeps}"\r
-!else\r
- !define FILES_DEPS "..\..\..\..\lyx-windows-deps-msvc2008"\r
-!endif\r
-\r
-!ifdef FilesBundle\r
- !define FILES_BUNDLE "${FilesBundle}"\r
-!else\r
- !define FILES_BUNDLE "..\..\..\..\lyx-windows-bundle-deps"\r
-!endif\r
-\r
-#--------------------------------\r
-# Location of Python 2.5\r
-\r
-!ifdef FilesPython\r
- !define FILES_PYTHON "${FilesPython}"\r
-!else\r
- !define FILES_PYTHON "C:\Python25"\r
-!endif\r
-\r
-#--------------------------------\r
-# File locations\r
-\r
-!define FILES_LICENSE "license.rtf"\r
-\r
-!define FILES_ICONS "..\icons"\r
-!define FILES_LAUNCHER "..\..\launcher"\r
-!define FILES_PDFVIEW "..\..\pdfview"\r
-\r
-!define FILES_MSVC "$%SystemRoot%\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375"\r
-!define FILES_NETPBM "${FILES_DEPS}\netpbm"\r
-!define FILES_DTL "${FILES_DEPS}\dtl"\r
-!define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"\r
-!define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"\r
-\r
-!define FILES_QT "${FILES_DEPS}\qt-4"\r
-!define FILES_ASPELLDATA "${FILES_DEPS}\aspell"\r
-\r
-!define FILES_NSISPLUGINS "${FILES_DEPS}\nsis"\r
-\r
-#--------------------------------\r
-# Locations of components to download\r
-\r
-!define MIRROR_SF1 "http://superb-west.dl.sourceforge.net/sourceforge"\r
-!define MIRROR_SF2 "http://mesh.dl.sourceforge.net/sourceforge"\r
-\r
-!macro SourceForgeMirror ID FILENAME\r
- !define DOWNLOAD_${ID} "${MIRROR_SF1}/${FILENAME}"\r
- !define DOWNLOADALT_${ID} "${MIRROR_SF2}/${FILENAME}"\r
-!macroend\r
-\r
-!insertmacro SourceForgeMirror LATEX "miktex/basic-miktex-2.7.2904.exe"\r
-!insertmacro SourceForgeMirror IMAGEMAGICK "imagemagick/ImageMagick-6.3.7-8-Q16-windows-dll.exe"\r
-!insertmacro SourceForgeMirror GHOSTSCRIPT "ghostscript/gs861w32.exe"\r
-\r
-!define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"\r
-!define DOWNLOADALT_ASPELLDICTS "http://www.lyx.org/~bpeng/aspell6-windows"\r
-\r
-#--------------------------------\r
-# Download size (in KB)\r
-\r
-!define SIZE_DOWNLOAD_LATEX 78493\r
-!define SIZE_DOWNLOAD_IMAGEMAGICK 7330\r
-!define SIZE_DOWNLOAD_GHOSTSCRIPT 12469\r
-\r
-#--------------------------------\r
-# Approximations of space required for components (in KB)\r
-\r
-!define SIZE_LATEX 225000\r
-!define SIZE_IMAGEMAGICK 18700\r
-!define SIZE_GHOSTSCRIPT 31500\r
-#--------------------------------\r
-# Locations of setup files for components (for bundled setup)\r
-\r
-!define INSTALL_LATEX "basic-miktex-2.7.2904.exe"\r
-!define INSTALL_IMAGEMAGICK "ImageMagick-6.3.7-8-Q16-windows-dll.exe"\r
-!define INSTALL_GHOSTSCRIPT "gs861w32.exe"\r
-\r
-#--------------------------------\r
-# Names and version\r
-\r
-!define APP_NAME "LyX"\r
-!define /date APP_VERSION "1.6svn %Y%m%d"\r
-!define APP_VERSION_NUMBER "1.6.0.0"\r
-!define APP_SERIES_NAME "1.6"\r
-!define APP_SERIES_KEY "16"\r
-!define APP_DIR_USERDATA "LyX16"\r
-!define APP_INFO "${APP_NAME} - The Document Processor"\r
-!define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2008 LyX Team"\r
-\r
-!define APP_RUN "bin\lyx.exe"\r
-\r
-!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"\r
-!define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"\r
-!define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"\r
-\r
-!define APP_REGNAME_DOC "LyX.Document"\r
-\r
-!define APP_EXT ".lyx"\r
-!define APP_MIME_TYPE "application/lyx"\r
-\r
-#--------------------------------\r
-# Setup settings\r
-\r
-# Output file name can be configured using command line paramater\r
-# /DExeFile=/path/to/installer or /DBundleExeFile=/path/to/installer if \r
-# SETUPTYPE_BUNDLE is defined.\r
-\r
-!ifndef SETUPTYPE_BUNDLE\r
- !ifndef ExeFile\r
- !define /date ExeFile "LyX-16svn-%Y%m%d-Installer.exe"\r
- !endif\r
- !define SETUP_EXE "${ExeFile}"\r
-!else\r
- !ifndef SETUPTYPE_BUNDLE\r
- !define /date BundleExeFile "LyX-16svn-%Y%m%d-Installer-Bundle.exe"\r
- !endif\r
- !define SETUP_EXE "${BundleExeFile}" \r
-!endif\r
-\r
-!define SETUP_DEFAULT_DIRECTORY "$PROGRAMFILES\${APP_NAME}${APP_SERIES_KEY}"\r
-!define SETUP_ICON "${FILES_ICONS}\lyx_32x32.ico"\r
-!define SETUP_HEADERIMAGE "graphics\header.bmp"\r
-!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"\r
-!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"\r
-!define SETUP_UNINSTALLER_KEY "${APP_NAME}"\r
-\r
-#--------------------------------\r
-# Names of binaries to identify compontents\r
-\r
-!define BIN_LATEX "tex.exe"\r
-!define BIN_IMAGEMAGICK "convert.exe"\r
-!define BIN_GHOSTSCRIPT "gswin32c.exe"\r
-\r
-#--------------------------------\r
-# Custom NSIS plug-ins\r
-\r
-!addplugindir "${FILES_NSISPLUGINS}"\r
+/*
+
+Settings for LyX installer
+
+These typically need to be modified for each LyX release
+
+*/
+
+#--------------------------------
+# Version number
+
+!define APP_VERSION_MAJOR 2
+!define APP_VERSION_MINOR 0
+!define APP_VERSION_REVISION 6
+!define APP_VERSION_EMERGENCY "" # use "1" for an emergency release of LyX otherwise ""
+!define APP_EMERGENCY_DOT "." # use "." for an emergency release of LyX otherwise ""
+!define APP_VERSION_BUILD 1 # Start with 1 for the installer releases of each version
+
+!define APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}${APP_EMERGENCY_DOT}${APP_VERSION_EMERGENCY}" # Version to display
+
+#--------------------------------
+# Installer file name
+
+# Typical names for the release are "LyX-201-Installer-1.exe" etc.
+
+!ifndef ExeFile
+ !define ExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}-Installer-${APP_VERSION_BUILD}.exe"
+!endif
+!ifndef BundleExeFile
+ !define BundleExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}-Bundle-${APP_VERSION_BUILD}.exe"
+!endif
+!ifndef MinimalExeFile
+ !define /date MinimalExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer-Minimal.exe"
+!endif
+
+#--------------------------------
+# File locations
+# !!! you need to adjust them to the folders in your Windows system !!!
+
+!define FILES_LYX "C:\LyX\LyXPackage\LyX"
+!define FILES_DEPS "C:\LyX\LyX2.0x\lyx-windows-deps-msvc2008"
+!define FILES_QT "C:\LyX\LyXPackage\LyX"
+!define ClassFileDir "${FILES_LYX}\Resources\tex"
+!define DVIPostFileDir "${FILES_DEPS}\tex"
+
+#--------------------------------
+# MiKTeX
+# Sizes in KB
+
+# it seems that some companies block ftp access by default, therefore http access is preferred here
+!define MiKTeXRepo "http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/"
+#!define MiKTeXRepo "ftp://ftp.tu-chemnitz.de/pub/tex/systems/win32/miktex/tm/packages/"
+
+!define JabRefVersion "2.9.2"
+!define MiKTeXDeliveredVersion "2.9"
+!define ImageMagickVersion "6.8.0"
+
+# definitions for the Complete installer
+!if ${SETUPTYPE} == BUNDLE
+ !define JabRefInstall "external\JabRef-2.9.2-setup.exe"
+ !define SIZE_JABREF 14100
+ !define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.9.4813.exe"
+!endif
+