From d883ce56aa07755957cd27999c2a1a6647e9cfac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 17 Mar 2013 16:24:24 +0100 Subject: [PATCH] installer: fix a logic bug --- .../Win32/packaging/installer/include/LaTeX.nsh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/development/Win32/packaging/installer/include/LaTeX.nsh b/development/Win32/packaging/installer/include/LaTeX.nsh index 5a5a1bc066..1d9a6608a2 100644 --- a/development/Win32/packaging/installer/include/LaTeX.nsh +++ b/development/Win32/packaging/installer/include/LaTeX.nsh @@ -261,17 +261,20 @@ Function ConfigureMiKTeX # dvipost SetOutPath "$PathLaTeXLocal\tex\latex\dvipost" File "${FILES_DVIPOST_PKG}\dvipost.sty" - # Belarusian support - SetOutPath "$PathLaTeXLocal\tex\generic\babel" - File "${FILES_DVIPOST_PKG}\belarusian.ldf" - File "${FILES_DVIPOST_PKG}\belarusian.sty" - # Hungarian support - SetOutPath "$PathLaTeXLocal\tex\generic\babel" - File "${FILES_DVIPOST_PKG}\magyar.ldf" # files in Resources\tex SetOutPath "$PathLaTeXLocal\tex\latex\lyx" CopyFiles /SILENT "$INSTDIR\Resources\tex\*.*" "$PathLaTeXLocal\tex\latex\lyx" ${endif} + # Belarusian support + ${ifnot} ${FileExists} "$PathLaTeXLocal\tex\generic\babel\belarusian.ldf" + SetOutPath "$PathLaTeXLocal\tex\generic\babel" + File "${FILES_DVIPOST_PKG}\belarusian.ldf" + File "${FILES_DVIPOST_PKG}\belarusian.sty" + ${endif} + # Hungarian support + # this is a replacement therefore do this in every case + SetOutPath "$PathLaTeXLocal\tex\generic\babel" + File "${FILES_DVIPOST_PKG}\magyar.ldf" # only install a Perl interpreter if it is not already installed # this is only possible if MikTeX _and_ LyX is installed with the same privileges -- 2.39.2