mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
installer:
- prepare for LyX 2.0 releases - no longer use a batch file to start LyX git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33832 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
dba368d291
commit
8d48c5184d
@ -31,17 +31,6 @@ Function ConfigureLyX
|
|||||||
StrCpy $PathPrefix "$PathPrefix;$WMFPath"
|
StrCpy $PathPrefix "$PathPrefix;$WMFPath"
|
||||||
${endif}
|
${endif}
|
||||||
|
|
||||||
# Create a batch file to start LyX with the environment variables set
|
|
||||||
ClearErrors
|
|
||||||
Delete "${PRODUCT_BAT}"
|
|
||||||
FileOpen $R1 "${PRODUCT_BAT}" w
|
|
||||||
FileWrite $R1 '@echo off$\r$\n\
|
|
||||||
SET AIK_DATA_DIR=${AiksaurusDir}$\r$\n\
|
|
||||||
start "${PRODUCT_NAME}" "${LAUNCHER_EXE}" %*$\r$\n'
|
|
||||||
FileClose $R1
|
|
||||||
IfErrors 0 +2
|
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "$(CreateCmdFilesFailed)"
|
|
||||||
|
|
||||||
# Set the path prefix in lyxrc.dist
|
# Set the path prefix in lyxrc.dist
|
||||||
ClearErrors
|
ClearErrors
|
||||||
Delete "$INSTDIR\Resources\lyxrc.dist"
|
Delete "$INSTDIR\Resources\lyxrc.dist"
|
||||||
|
@ -274,7 +274,7 @@ FunctionEnd
|
|||||||
#--------------------------------
|
#--------------------------------
|
||||||
|
|
||||||
Function LaunchProduct
|
Function LaunchProduct
|
||||||
# call the lyx.exe and not the lyx.bat to show the console window. This is
|
# call the lyx.exe and not the lyxLauncher.exe to show the console window. This is
|
||||||
# necessary because sometimes LyX's configure run that is started by the
|
# necessary because sometimes LyX's configure run that is started by the
|
||||||
# installer fails when MiKTeX was installed together with this installer.
|
# installer fails when MiKTeX was installed together with this installer.
|
||||||
# Showing the console gives the user feedback otherwise he would wonder why
|
# Showing the console gives the user feedback otherwise he would wonder why
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# installer settings
|
# installer settings
|
||||||
# You should need to change only these macros for new releases.
|
# You should need to change only these macros for new releases.
|
||||||
|
|
||||||
!define INSTALLER_SUBVERSION "21"
|
!define INSTALLER_SUBVERSION "1"
|
||||||
!define PRODUCT_DIR "D:\LyXPackage1.6"
|
!define PRODUCT_DIR "D:\LyXPackage2.0"
|
||||||
!define PRODUCT_NAME "LyX"
|
!define PRODUCT_NAME "LyX"
|
||||||
!define PRODUCT_VERSION "1.6.4"
|
!define PRODUCT_VERSION "2.0svn"
|
||||||
!define PRODUCT_VERSION_SHORT "164"
|
!define PRODUCT_VERSION_SHORT "20svn"
|
||||||
!define PRODUCT_SUBFOLDER "lyx16"
|
!define PRODUCT_SUBFOLDER "lyx20"
|
||||||
!define PRODUCT_LICENSE_FILE "${PRODUCT_DIR}\License.txt"
|
!define PRODUCT_LICENSE_FILE "${PRODUCT_DIR}\License.txt"
|
||||||
!define PRODUCT_SOURCEDIR "${PRODUCT_DIR}\LyX"
|
!define PRODUCT_SOURCEDIR "${PRODUCT_DIR}\LyX"
|
||||||
!define PRODUCT_EXE "$INSTDIR\bin\lyx.exe"
|
!define PRODUCT_EXE "$INSTDIR\bin\lyx.exe"
|
||||||
!define PRODUCT_BAT "$INSTDIR\bin\lyx.bat"
|
!define PRODUCT_BAT "$INSTDIR\bin\lyxLauncher.exe"
|
||||||
!define PRODUCT_EXT ".lyx"
|
!define PRODUCT_EXT ".lyx"
|
||||||
!define PRODUCT_REGNAME "LyX.Document"
|
!define PRODUCT_REGNAME "LyX.Document"
|
||||||
!define PRODUCT_MIME_TYPE "application/lyx"
|
!define PRODUCT_MIME_TYPE "application/lyx"
|
||||||
@ -20,12 +20,12 @@
|
|||||||
!define PRODUCT_INFO_URL "http://www.lyx.org/"
|
!define PRODUCT_INFO_URL "http://www.lyx.org/"
|
||||||
!define LAUNCHER_EXE "$INSTDIR\bin\LyXLauncher.exe"
|
!define LAUNCHER_EXE "$INSTDIR\bin\LyXLauncher.exe"
|
||||||
|
|
||||||
BrandingText "LyXWinInstaller v4.${INSTALLER_SUBVERSION} - ${INSTALLER_VERSION}"
|
BrandingText "LyXWinInstaller v5.${INSTALLER_SUBVERSION} - ${INSTALLER_VERSION}"
|
||||||
|
|
||||||
# to check later if this installer version is running at the same time
|
# to check later if this installer version is running at the same time
|
||||||
!define INSTALLER_EXE "LyX-${PRODUCT_VERSION_SHORT}-4-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER_VERSION}.exe"
|
!define INSTALLER_EXE "LyX-${PRODUCT_VERSION_SHORT}-5-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER_VERSION}.exe"
|
||||||
!define INSTALLER2_EXE "LyX-${PRODUCT_VERSION_SHORT}-4-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER2_VERSION}.exe"
|
!define INSTALLER2_EXE "LyX-${PRODUCT_VERSION_SHORT}-5-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER2_VERSION}.exe"
|
||||||
!define INSTALLER3_EXE "LyX-${PRODUCT_VERSION_SHORT}-4-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER3_VERSION}.exe"
|
!define INSTALLER3_EXE "LyX-${PRODUCT_VERSION_SHORT}-5-${INSTALLER_SUBVERSION}-AltInstaller-${INSTALLER3_VERSION}.exe"
|
||||||
!define VERSION_BITMAP "${PRODUCT_DIR}\icons\lyx_logo_vert${PRODUCT_VERSION_SHORT}.bmp"
|
!define VERSION_BITMAP "${PRODUCT_DIR}\icons\lyx_logo_vert${PRODUCT_VERSION_SHORT}.bmp"
|
||||||
|
|
||||||
# Replaced by HKLM or HKCU depending on SetShellVarContext.
|
# Replaced by HKLM or HKCU depending on SetShellVarContext.
|
||||||
@ -40,13 +40,13 @@ BrandingText "LyXWinInstaller v4.${INSTALLER_SUBVERSION} - ${INSTALLER_VERSION}"
|
|||||||
|
|
||||||
# definitions for the Update installer
|
# definitions for the Update installer
|
||||||
!if ${INSTALLER_VERSION} == "Update"
|
!if ${INSTALLER_VERSION} == "Update"
|
||||||
!define PRODUCT_VERSION_SHORT_OLD "163"
|
!define PRODUCT_VERSION_SHORT_OLD "166"
|
||||||
!define PRODUCT_UNINST_KEY_OLD "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX${PRODUCT_VERSION_SHORT_OLD}"
|
!define PRODUCT_UNINST_KEY_OLD "Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX${PRODUCT_VERSION_SHORT_OLD}"
|
||||||
!define PRODUCT_VERSION_OLD "LyX 1.6.3"
|
!define PRODUCT_VERSION_OLD "LyX 1.6.6"
|
||||||
!define JabRefVersion "2.4.2" # could be an older version
|
!define JabRefVersion "2.5" # could be an older version
|
||||||
!define ImageMagickVersion_Old "6.5.3" # could be an older version
|
!define ImageMagickVersion_Old "6.5.8" # could be an older version
|
||||||
!define GhostscriptVersion_Old "8.64" # could be an older version
|
!define GhostscriptVersion_Old "8.64" # could be an older version
|
||||||
!define MiKTeXDeliveredVersion "2.7" # could be an older version
|
!define MiKTeXDeliveredVersion "2.8" # could be an older version
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
# definitions for the Small installer
|
# definitions for the Small installer
|
||||||
@ -66,11 +66,11 @@ BrandingText "LyXWinInstaller v4.${INSTALLER_SUBVERSION} - ${INSTALLER_VERSION}"
|
|||||||
|
|
||||||
!define ClassFileDir "${PRODUCT_SOURCEDIR}\Resources\tex"
|
!define ClassFileDir "${PRODUCT_SOURCEDIR}\Resources\tex"
|
||||||
|
|
||||||
!define ImageMagickVersion "6.5.7"
|
!define ImageMagickVersion "6.5.8"
|
||||||
# for some odd reason the ImageMagick folder may not be a subfolder of $INSTDIR\bin!
|
# for some odd reason the ImageMagick folder may not be a subfolder of $INSTDIR\bin!
|
||||||
!define ImageMagickDir "$INSTDIR\etc\ImageMagick"
|
!define ImageMagickDir "$INSTDIR\etc\ImageMagick"
|
||||||
!define GhostscriptDir "$INSTDIR\etc\Ghostscript"
|
!define GhostscriptDir "$INSTDIR\etc\Ghostscript"
|
||||||
!define GhostscriptVersion "8.64"
|
!define GhostscriptVersion "8.71"
|
||||||
!define Metafile2epsDir "$INSTDIR\etc\Metafile2eps"
|
!define Metafile2epsDir "$INSTDIR\etc\Metafile2eps"
|
||||||
!define AiksaurusDir "$APPDATA\Aiksaurus"
|
!define AiksaurusDir "$APPDATA\Aiksaurus"
|
||||||
!define AiksaurusInstall "external\Aiksaurus"
|
!define AiksaurusInstall "external\Aiksaurus"
|
||||||
|
Loading…
Reference in New Issue
Block a user