]> git.lyx.org Git - lyx.git/blobdiff - development/Win32/packaging/installer/settings.nsh
Win installer: prepare for LyX 2.2.3
[lyx.git] / development / Win32 / packaging / installer / settings.nsh
index 2d7526a477c732dd15414a0f98391fea43aaf8bd..549331e0466b6b3d4c92d7cb8d9bca5af7da4685 100644 (file)
-/*\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 2
+!define APP_VERSION_REVISION 3
+!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
+
+!define COPYRIGHT_YEAR 2017
+
+#--------------------------------
+# 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.2-MSVC-2015\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 "7.0.5"
+# definitions for the Complete installer
+!if ${SETUPTYPE} == BUNDLE
+ !define JabRefInstall "external\JabRef_windows_3_8_2.exe"
+ !define SIZE_JABREF 36831 # size in KB 
+ !define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.9.6236.exe"
+!endif
+