]> git.lyx.org Git - lyx.git/blobdiff - development/Win32/packaging/installer/settings.nsh
installer: updated for dictionaries
[lyx.git] / development / Win32 / packaging / installer / settings.nsh
index 5e64f23ed9aceda16d284773ab6df1498c620899..1b4ca6f5b78d87927a95318fc4aeeb2c58f9892f 100644 (file)
@@ -6,54 +6,59 @@ These typically need to be modified for each LyX release
 
 */
 
-#--------------------------------
-# Windows version on which the complier is running
-
-!define COMPILER_OS VISTA
-#!define COMPILER_OS XP
-
 #--------------------------------
 # Version number
 
-!define APP_VERSION_MAJOR 1
-!define APP_VERSION_MINOR 6
-!define APP_VERSION_REVISION 0
-!define APP_VERSION_BUILD 0 # Start with 1 for the installer releases of each version
+!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 /date APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}svn %Y%m%d" # Version to display
+!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-1.5.4-1-Installer.exe" etc.
+# Typical names for the release are "LyX-201-Installer-1.exe" etc.
 
 !ifndef ExeFile
-  !define /date ExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer.exe"
+  !define ExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}${APP_VERSION_EMERGENCY}-Installer-${APP_VERSION_BUILD}.exe"
 !endif
 !ifndef BundleExeFile
-  !define /date BundleExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer-Bundle.exe"
+  !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 names of component installers
+# File locations
+# !!! you need to adjust them to the folders in your Windows system !!!
 
-!define SETUPFILE_LATEX "basic-miktex-2.7.3248.exe"
-!define SETUPFILE_IMAGEMAGEMAGICK "ImageMagick-6.4.1-0-Q16-windows-dll.exe"
-!define SETUPFILE_GHOSTSCRIPT "gs861w32.exe"
+!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"
 
 #--------------------------------
-# Download size of components (in KB)
-
-!define SIZE_DOWNLOAD_LATEX 78493
-!define SIZE_DOWNLOAD_IMAGEMAGICK 8565
-!define SIZE_DOWNLOAD_GHOSTSCRIPT 12469
-
-#--------------------------------
-# Approximations of space required for components (in KB)
+# 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
 
-!define SIZE_LATEX 225000
-!define SIZE_IMAGEMAGICK 34500
-!define SIZE_GHOSTSCRIPT 31500