(To benefit from them you must uninstall an already installed LyX 2.0.x and
then use this installer.)
- updated thesaurus for Slovenian
- (need to uninstall to benefit from this)
+ (need to reinstall LyX to benefit from this)
Changelog for LyX-205-4:
(To benefit from them you must uninstall an already installed LyX 2.0.x and
then use this installer.)
- updated thesaurus for German
- (need to uninstall to benefit from this)
+ (need to reinstall LyX to benefit from this)
- bugfix: remove registry entries of existing LyX version when installing over it
- don't allow to install an older LyX version over an existing newer one
#
#--------------------------
-#Var ReportReturn
-#Var CommandLineOutput
-
Function SearchExternal
Call LaTeXActions # function from LaTeX.nsh
Call MissingPrograms
ReadRegStr $PathBibTeXEditor HKLM "Software\JabRef" "Path"
${endif}
- ${IfNot} ${FileExists} "$PathBibTeXEditor\${BIN_BIBTEXEDITOR}"
- StrCpy $PathBibTeXEditor ""
- StrCpy $JabRefInstalled == "No"
+ ${ifnot} ${FileExists} "$PathBibTeXEditor\${BIN_BIBTEXEDITOR}"
+ StrCpy $PathBibTeXEditor ""
+ StrCpy $JabRefInstalled == "No"
${else}
StrCpy $JabRefInstalled == "Yes"
${endif}
#--------------------------------
# Installer file name
-# Typical names for the release are "LyX-201-1-Installer.exe" etc.
+# Typical names for the release are "LyX-201-Installer-1.exe" etc.
!ifndef ExeFile
!define ExeFile "LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}${APP_VERSION_REVISION}-Installer-${APP_VERSION_BUILD}.exe"
# definitions for the Complete installer
!if ${SETUPTYPE} == BUNDLE
!define JabRefInstall "external\JabRef-2.8.1-setup.exe"
+ !define SIZE_JABREF 12400
!define MiKTeXInstall "$INSTDIR\external\basic-miktex-2.9.4521.exe"
- !define SIZE_DOWNLOAD_LATEX 162476
- !define SIZE_LATEX 380000
+ #!define SIZE_DOWNLOAD_LATEX 157100
+ #!define SIZE_LATEX 600000
!endif
Var PythonCompileFile
Var PythonCompileReturn
-#Var DownloadResult
Section -ProgramFiles SecProgramFiles
# install JabRef if not already installed and the user selected it
# if no BibTeX editor is installed
${if} $PathBibTeXEditor == ""
- ${if} $InstallJabRef == "true"
- # launch installer
- MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
- ExecWait "$INSTDIR\${JabRefInstall}"
- # test if JabRef is now installed
- StrCpy $PathBibTeXEditor ""
+ ${andif} $InstallJabRef == "true"
+ # launch installer
+ MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
+ ExecWait "$INSTDIR\${JabRefInstall}"
+ # test if JabRef is now installed
+ StrCpy $PathBibTeXEditor ""
+ ${if} $MultiUser.Privileges == "Admin"
+ ${orif} $MultiUser.Privileges == "Power"
+ ReadRegStr $PathBibTeXEditor HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "UninstallString"
+ StrCpy $PathBibTeXEditor $PathBibTeXEditor -14 # remove "\uninstall.exe"
+ ${else}
+ # for non-admin users we can only check if it is in the start menu
+ ReadRegStr $PathBibTeXEditor HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "StartMenu"
+ ${endif}
+ ${if} $PathBibTeXEditor == ""
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
+ ${else}
+ # special entry that it was installed together with LyX
+ # so that we can later uninstall it together with LyX
${if} $MultiUser.Privileges == "Admin"
- ${orif} $MultiUser.Privileges == "Power"
- ReadRegStr $PathBibTeXEditor HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "UninstallString"
- StrCpy $PathBibTeXEditor $PathBibTeXEditor -14 # remove "\uninstall.exe"
+ ${orif} $MultiUser.Privileges == "Power"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
${else}
- # for non-admin users we can only check if it is in the start menu
- ReadRegStr $PathBibTeXEditor HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "StartMenu"
+ WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
${endif}
- ${if} $PathBibTeXEditor == ""
- MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
- ${else}
- # special entry that it was installed together with LyX
- # so that we can later uninstall it together with LyX
- ${if} $MultiUser.Privileges == "Admin"
- ${orif} $MultiUser.Privileges == "Power"
- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
- ${else}
- WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "OnlyWithLyX" "Yes${APP_SERIES_KEY}"
- ${endif}
- ${endif} # end if PathBibTeXEditor
- ${endif}
- ${endif}
+ ${endif}
+ ${endif} # end if PathBibTeXEditor
!endif # end if BUNDLE
# install eLyXer