]> git.lyx.org Git - lyx.git/blobdiff - development/Win32/packaging/installer/settings.nsh
Win installer: new version with Qt 5.6.1
[lyx.git] / development / Win32 / packaging / installer / settings.nsh
index 6d55f0b202fc38a8e2f75eaf8cb9fd6079033cf3..6553c336053df29d127d8a551420ad9253c89a07 100644 (file)
-/*\r
-\r
-Settings for LyX installer\r
-\r
-*/\r
-\r
-;--------------------------------\r
-;File locations\r
-\r
-!define FILES_LICENSE "license.rtf"\r
-\r
-!define FILES_ICONS "..\icons"\r
-!define FILES_FONTS "..\bakoma"\r
-!define FILES_LAUNCHER "..\..\launcher"\r
-!define FILES_PDFVIEW "..\..\pdfview"\r
-\r
-!define FILES_MSVC "${FILES_WINDOWS}\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd"\r
-!define FILES_NETPBM "${FILES_DEPS}\netpbm"\r
-!define FILES_DTL "${FILES_DEPS}\dtl"\r
-!define FILES_AIKSAURUS "${FILES_DEPS}\aiksaurus\"\r
-!define FILES_DVIPOST "${FILES_DEPS}\dvipost"\r
-!define FILES_DVIPOST_PKG "${FILES_DVIPOST}"\r
-!define FILES_PDFTOOLS "${FILES_DEPS}\pdftools"\r
-\r
-!define FILES_QT "${FILES_DEPS}\qt-4"\r
-!define FILES_DVIPOSTDATA "${FILES_DEPS}\dvipost"\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 DOWNLOAD_LATEX "http://superb-west.dl.sourceforge.net/sourceforge/miktex/basic-miktex-2.5.2580.exe"\r
-!define DOWNLOAD_IMAGEMAGICK "http://superb-west.dl.sourceforge.net/sourceforge/imagemagick/ImageMagick-6.3.2-2-Q16-windows-dll.exe"\r
-!define DOWNLOAD_GHOSTSCRIPT "http://superb-west.dl.sourceforge.net/sourceforge/ghostscript/gs854w32-gpl.exe"\r
-!define DOWNLOAD_VIEWER "http://tug.ctan.org/tex-archive/nonfree/support/ghostscript/ghostgum/gsv48w32.exe"\r
-\r
-!define DOWNLOAD_ASPELLDICTS "ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows"\r
-\r
-;--------------------------------\r
-;Download size (in KB)\r
-\r
-!define SIZE_DOWNLOAD_LATEX 47271\r
-!define SIZE_DOWNLOAD_IMAGEMAGICK 7096\r
-!define SIZE_DOWNLOAD_GHOSTSCRIPT 12669\r
-!define SIZE_DOWNLOAD_VIEWER 1459\r
-\r
-;--------------------------------\r
-;Approximations of space required for components (in KB)\r
-\r
-!define SIZE_LATEX 120000\r
-!define SIZE_IMAGEMAGICK 17000\r
-!define SIZE_GHOSTSCRIPT 26000\r
-!define SIZE_VIEWER 4000\r
-\r
-;--------------------------------\r
-;Locations of setup files for components (for bundled setup)\r
-\r
-!define INSTALL_LATEX "basic-miktex-2.5.2580.exe"\r
-!define INSTALL_IMAGEMAGICK "ImageMagick-6.3.2-2-Q16-windows-dll.exe"\r
-!define INSTALL_GHOSTSCRIPT "gs854w32-gpl.exe"\r
-!define INSTALL_VIEWER "gsv48w32.exe"\r
-\r
-;--------------------------------\r
-;Names and version\r
-\r
-!define APP_NAME "LyX"\r
-!define /date APP_VERSION "1.5svn %Y%m%d"\r
-!define APP_VERSION_NUMBER "1.5.0.0"\r
-!define APP_SERIES_NAME "1.5"\r
-!define APP_SERIES_KEY "15"\r
-!define APP_DIR_USERDATA "LyX1.5.x"\r
-!define APP_INFO "${APP_NAME} - The Document Processor"\r
-!define APP_COPYRIGHT "LyX is Copyright © 1995 by Matthias Ettrich, 1995-2006 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
-!ifndef SETUPTYPE_BUNDLE\r
-  !define /date SETUP_EXE "lyx-15svn-%Y%m%d.exe"\r
-!else\r
-  !define /date SETUP_EXE "lyx-15svn-%Y%m%d-bundle.exe"\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 2
+!define APP_VERSION_REVISION 0
+!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 3 # 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
+
+!define COPYRIGHT_YEAR 2016
+
+#--------------------------------
+# Installer file name
+
+# Typical names for the release are "LyX-211-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 "D:\LyXPackage2.2\LyX"
+!define FILES_DEPS "D:\LyXGit\Master\lyx-windows-deps-msvc2015"
+!define FILES_QT "C:\Qt\Qt5.6.1-MSVC2015\5.6\msvc2015"
+!define ClassFileDir "${FILES_LYX}\Resources\tex"
+!define DVIPostFileDir "${FILES_DEPS}\tex"
+
+#--------------------------------
+# MiKTeX and JabRef
+
+!define MiKTeXRepo "ftp://ftp.fernuni-hagen.de/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/"
+
+!define MiKTeXDeliveredVersion "2.9"
+!define ImageMagickVersion "6.9.4"
+# definitions for the Complete installer
+!if ${SETUPTYPE} == BUNDLE
+ !define JabRefInstall "external\JabRef_windows_3_4.exe"
+ !define SIZE_JABREF 25700 # size in KB
+ !define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.9.5997.exe"
+!endif
+