2007-05-01 17:55:54 +00:00
|
|
|
# installer settings
|
|
|
|
# You should need to change only these macros for new releases.
|
2007-04-24 22:08:27 +00:00
|
|
|
|
2008-09-25 21:13:51 +00:00
|
|
|
!define INSTALLER_SUBVERSION "26"
|
2007-05-01 22:53:06 +00:00
|
|
|
!define PRODUCT_DIR "D:\LyXPackage1.5"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define PRODUCT_NAME "LyX"
|
2008-09-25 21:13:51 +00:00
|
|
|
!define PRODUCT_VERSION "1.5.7"
|
|
|
|
!define PRODUCT_VERSION_SHORT "157"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define PRODUCT_SUBFOLDER "lyx15"
|
|
|
|
!define PRODUCT_LICENSE_FILE "${PRODUCT_DIR}\License.txt"
|
|
|
|
!define PRODUCT_SOURCEDIR "${PRODUCT_DIR}\LyX"
|
|
|
|
!define PRODUCT_EXE "$INSTDIR\bin\lyx.exe"
|
|
|
|
!define PRODUCT_BAT "$INSTDIR\bin\lyx.bat"
|
|
|
|
!define PRODUCT_EXT ".lyx"
|
2007-05-01 14:21:21 +00:00
|
|
|
!define PRODUCT_REGNAME "LyX.Document"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define PRODUCT_MIME_TYPE "application/lyx"
|
|
|
|
!define PRODUCT_UNINSTALL_EXE "$INSTDIR\LyXWinUninstall.exe"
|
|
|
|
!define PRODUCT_HELP_LINK "http://www.lyx.org/internet/mailing.php"
|
|
|
|
!define PRODUCT_ABOUT_URL "http://www.lyx.org/about/"
|
|
|
|
!define PRODUCT_INFO_URL "http://www.lyx.org/"
|
2007-05-01 14:21:21 +00:00
|
|
|
!define LAUNCHER_EXE "$INSTDIR\bin\LyXLauncher.exe"
|
2007-04-24 22:08:27 +00:00
|
|
|
|
2008-09-25 21:13:51 +00:00
|
|
|
BrandingText "LyXWinInstaller v3.${INSTALLER_SUBVERSION} - ${INSTALLER_VERSION}"
|
2007-04-24 22:08:27 +00:00
|
|
|
|
2007-05-01 17:55:54 +00:00
|
|
|
# to check later if this installer version is running at the same time
|
2008-09-25 21:13:51 +00:00
|
|
|
!define INSTALLER_EXE "LyX-${PRODUCT_VERSION_SHORT}-3-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER_VERSION}.exe"
|
|
|
|
!define INSTALLER2_EXE "LyX-${PRODUCT_VERSION_SHORT}-3-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER2_VERSION}.exe"
|
|
|
|
!define INSTALLER3_EXE "LyX-${PRODUCT_VERSION_SHORT}-3-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER3_VERSION}.exe"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define VERSION_BITMAP "${PRODUCT_DIR}\icons\lyx_logo_vert${PRODUCT_VERSION_SHORT}.bmp"
|
|
|
|
|
2007-05-01 17:55:54 +00:00
|
|
|
# Replaced by HKLM or HKCU depending on SetShellVarContext.
|
2007-04-24 22:08:27 +00:00
|
|
|
!define PRODUCT_ROOT_KEY "SHCTX"
|
|
|
|
|
2007-05-01 14:21:21 +00:00
|
|
|
; registry preparations
|
|
|
|
!define SHCNE_ASSOCCHANGED 0x08000000
|
|
|
|
!define SHCNF_IDLIST 0
|
2007-04-24 22:08:27 +00:00
|
|
|
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\lyx.exe"
|
|
|
|
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX${PRODUCT_VERSION_SHORT}"
|
2008-06-04 23:51:06 +00:00
|
|
|
!define PRODUCT_DIR_REGKEY_2 "Software\LyX\LyX-${PRODUCT_VERSION}"
|
2007-04-24 22:08:27 +00:00
|
|
|
|
2007-05-01 17:55:54 +00:00
|
|
|
# definitions for the Update installer
|
2007-04-30 00:55:50 +00:00
|
|
|
!if ${INSTALLER_VERSION} == "Update"
|
2008-09-25 21:13:51 +00:00
|
|
|
!define PRODUCT_VERSION_SHORT_OLD "156"
|
2008-10-25 13:21:37 +00:00
|
|
|
!define PRODUCT_UNINST_KEY_OLD "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX${PRODUCT_VERSION_SHORT_OLD}"
|
|
|
|
!define PRODUCT_VERSION_OLD "LyX 1.5.6"
|
2008-02-25 01:23:55 +00:00
|
|
|
!define JabRefVersion "2.3.1" # could be an older version
|
2008-09-25 21:13:51 +00:00
|
|
|
!define ImageMagickVersion_Old "6.4.2" # could be an older version
|
2008-06-04 23:51:06 +00:00
|
|
|
!define GhostscriptVersion_Old "8.62" # could be an older version
|
2008-02-25 01:23:55 +00:00
|
|
|
!define MiKTeXDeliveredVersion "2.7" # could be an older version
|
2007-04-30 00:55:50 +00:00
|
|
|
!endif
|
|
|
|
|
2007-05-01 17:55:54 +00:00
|
|
|
# definitions for the Small installer
|
2007-04-30 00:55:50 +00:00
|
|
|
!if ${INSTALLER_VERSION} == "Small"
|
2007-05-01 17:55:54 +00:00
|
|
|
!define JabRefVersion "none" # dummy entry to avoid NSIS warnig
|
|
|
|
!define MiKTeXDeliveredVersion "none" # dummy entry to avoid NSIS warnig
|
2007-04-30 00:55:50 +00:00
|
|
|
!endif
|
|
|
|
|
2007-05-01 17:55:54 +00:00
|
|
|
# definitions for the Complete installer
|
2007-04-30 00:55:50 +00:00
|
|
|
!if ${INSTALLER_VERSION} == "Complete"
|
2007-12-17 20:06:05 +00:00
|
|
|
!define GSviewInstall "external\gsv49w32.exe"
|
2008-11-08 21:16:32 +00:00
|
|
|
!define JabRefInstall "external\JabRef-2.4.2-Setup.exe"
|
|
|
|
!define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.7.3224.exe"
|
2008-09-25 21:13:51 +00:00
|
|
|
!define JabRefVersion "2.4"
|
2007-12-17 20:06:05 +00:00
|
|
|
!define MiKTeXDeliveredVersion "2.7"
|
2007-04-30 00:55:50 +00:00
|
|
|
!endif
|
|
|
|
|
2007-04-24 22:08:27 +00:00
|
|
|
!define ClassFileDir "${PRODUCT_SOURCEDIR}\Resources\tex"
|
|
|
|
|
2008-11-08 21:16:32 +00:00
|
|
|
!define ImageMagickVersion "6.4.5"
|
2007-05-01 17:55:54 +00:00
|
|
|
# for some odd reason the ImageMagick folder may not be a subfolder of $INSTDIR\bin!
|
2007-04-30 00:55:50 +00:00
|
|
|
!define ImageMagickDir "$INSTDIR\etc\ImageMagick"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define GhostscriptDir "$INSTDIR\etc\Ghostscript"
|
2008-09-25 21:13:51 +00:00
|
|
|
!define GhostscriptVersion "8.63"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define AiksaurusDir "$APPDATA\Aiksaurus"
|
|
|
|
!define AiksaurusInstall "external\Aiksaurus"
|
|
|
|
!define AspellDir "$APPDATA\Aspell"
|
|
|
|
!define AspellDisplay "Aspell 0.60.4 Data"
|
|
|
|
!define AspellInstall "external\Aspell"
|
|
|
|
!define AspellUninstall "Uninstall-AspellData.exe"
|
|
|
|
!define AspellDictPath "${AspellDir}\Dictionaries"
|
|
|
|
!define AspellPersonalPath "${AspellDir}\Personal"
|
2007-08-05 00:02:31 +00:00
|
|
|
!define AspellLocationExact "http://developer.berlios.de/project/showfiles.php?group_id=5117&release_id=12973"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define AspellLocation "http://developer.berlios.de/projects/lyxwininstall/"
|
|
|
|
!define DVIPostFileDir "${PRODUCT_SOURCEDIR}\external\dvipost"
|
2007-05-01 17:55:54 +00:00
|
|
|
# the following variable is needed for a possible CD-version
|
|
|
|
#!define LaTeXPackagesDir "${PRODUCT_SOURCEDIR}\latex"
|
2007-04-24 22:08:27 +00:00
|
|
|
!define MiKTeXRepo "ftp://ftp.tu-chemnitz.de/pub/tex/systems/win32/miktex/tm/packages/"
|
|
|
|
|
2007-05-01 17:55:54 +00:00
|
|
|
#--------------------------------
|
|
|
|
# make some of the information above available to NSIS.
|
2007-04-24 22:08:27 +00:00
|
|
|
|
|
|
|
Name "${PRODUCT_NAME}"
|
|
|
|
OutFile "${INSTALLER_EXE}"
|
|
|
|
InstallDir "$PROGRAMFILES\${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
|
|
|
|
2007-12-17 20:06:05 +00:00
|
|
|
# set execution level for Windows Vista
|
|
|
|
RequestExecutionLevel admin
|
|
|
|
|