From 2493f6ea8dba1e155c96f7fd2f375c662d359b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Tue, 26 May 2015 03:44:19 +0200 Subject: [PATCH] Win installer: some updates --- .../Win32/packaging/installer/ChangeLog.txt | 9 +- .../packaging/installer/setup/configure.nsh | 148 +++++++++++++++++- 2 files changed, 148 insertions(+), 9 deletions(-) diff --git a/development/Win32/packaging/installer/ChangeLog.txt b/development/Win32/packaging/installer/ChangeLog.txt index c847cd7717..b79b718824 100644 --- a/development/Win32/packaging/installer/ChangeLog.txt +++ b/development/Win32/packaging/installer/ChangeLog.txt @@ -1,6 +1,9 @@ -Changelog for LyX-214-1: -- installs LyX 2.1.4 -- updated Slovak translation +Changelog for LyX-213-2: +- fixes problems with viewing PDF files + NOTE: If you use Adobe Reader as PDF viewer the view is updated by pressing + again the view button in LyX while the update button does nothing +- new method to view/export LyX files to OpenDocument and MS Word +- updated Slovak translation of the installer - updated to Ghostscript 9.16 - updated spell-checker dictionaries for English (GB), English (US), Portuguese, Spanish, Spanish (MX) and Turkish diff --git a/development/Win32/packaging/installer/setup/configure.nsh b/development/Win32/packaging/installer/setup/configure.nsh index a26bcbef98..f99d120fab 100644 --- a/development/Win32/packaging/installer/setup/configure.nsh +++ b/development/Win32/packaging/installer/setup/configure.nsh @@ -159,8 +159,8 @@ Section -Configure ${endif} # set path to eLyXer - FileWrite $R1 '\converter "lyx" "html" "python -tt \"$INSTDIR\Python\Lib\elyxer.py\" --directory $$$$r $$$$i $$$$o" ""$\r$\n\ - \converter "lyx" "wordhtml" "python -tt \"$INSTDIR\Python\Lib\elyxer.py\" --html --directory $$$$r $$$$i $$$$o" ""$\r$\n' + FileWrite $R1 '\converter "lyx" "odt" "python -tt \"$INSTDIR\Python\Lib\elyxer.py\" --html --nofooter --unicode --directory $$$$r $$$$i $$$$o" ""$\r$\n\ + \converter "lyx" "word" "python -tt \"$INSTDIR\Python\Lib\elyxer.py\" --html --nofooter --unicode --directory $$$$r $$$$i $$$$o" ""$\r$\n' # use pdfview for all types of PDF files FileWrite $R1 '\format "pdf5" "pdf" "PDF (LuaTeX)" "u" "pdfview" "" "document,vector,menu=export" "application/pdf"$\r$\n\ @@ -216,8 +216,9 @@ Section -ConfigureScript ${if} $LaTeXInstalled == "MiKTeX" Call UpdateMiKTeX # function from latex.nsh # install all necessary packages at once because this is much faster then to install the packages one by one - # NOTE: the babelpackages-txt list is only necessary for LyX 2.1.2 ans 2.1.3 because of the restructuration + # NOTE: the babel packages installation is only necessary for LyX 2.1.2 ans 2.1.3 because of the restructuration # of babel in MiKTeX. This can be removed for LyX 2.1.4 + # (due to a missing feature in MiKTeX each babel package has to be installed separately) DetailPrint $(TEXT_CONFIGURE_LYX) ${if} $MultiUser.Privileges != "Admin" ${andif} $MultiUser.Privileges != "Power" @@ -225,16 +226,151 @@ Section -ConfigureScript # at first we need to synchronize the package database nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--update-db"' nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\Packages.txt"' - nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\babel-Packages.txt"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-albanian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-bahasa"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-basque"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-breton"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-bulgarian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-catalan"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-croatian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-czech"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-danish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-dutch"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-english"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-esperanto"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-estonian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-finnish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-french"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-galician"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-german"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-greek"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-hebrew"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-hungarian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-icelandic"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-interlingua"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-irish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-italian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-kurmanji"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-latin"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-latvian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-norsk"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-polish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-portuges"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-romanian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-russian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-samin"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-scottish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-serbian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-serbianc"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-slovak"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-slovenian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-sorbian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-spanish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-swedish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-thai"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-turkish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-ukrainian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-vietnamese"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-welsh"' ${else} ${if} $MiKTeXUser != "HKCU" # call the admin version nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--update-db"' nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install-some=$INSTDIR\Resources\Packages.txt"' - nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install-some=$INSTDIR\Resources\babel-Packages.txt"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-albanian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-bahasa"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-basque"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-breton"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-bulgarian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-catalan"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-croatian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-czech"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-danish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-dutch"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-english"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-esperanto"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-estonian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-finnish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-french"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-galician"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-german"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-greek"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-hebrew"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-hungarian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-icelandic"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-interlingua"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-irish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-italian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-kurmanji"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-latin"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-latvian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-norsk"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-polish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-portuges"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-romanian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-russian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-samin"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-scottish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-serbian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-serbianc"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-slovak"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-slovenian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-sorbian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-spanish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-swedish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-thai"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-turkish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-ukrainian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-vietnamese"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--admin" "--verbose" "--install=babel-welsh"' ${else} nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--update-db"' nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\Packages.txt"' - nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install-some=$INSTDIR\Resources\babel-Packages.txt"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-albanian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-bahasa"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-basque"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-breton"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-bulgarian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-catalan"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-croatian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-czech"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-danish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-dutch"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-english"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-esperanto"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-estonian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-finnish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-french"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-galician"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-german"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-greek"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-hebrew"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-hungarian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-icelandic"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-interlingua"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-irish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-italian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-kurmanji"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-latin"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-latvian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-norsk"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-polish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-portuges"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-romanian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-russian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-samin"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-scottish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-serbian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-serbianc"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-slovak"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-slovenian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-sorbian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-spanish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-swedish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-thai"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-turkish"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-ukrainian"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-vietnamese"' + nsExec::ExecToLog '"$PathLaTeX\mpm.exe" "--verbose" "--install=babel-welsh"' ${endif} ${endif} ${endif}