]> git.lyx.org Git - lyx.git/commitdiff
install files from Resources\tex in MiKTeX local root directory
authorJoost Verburg <joostverburg@users.sourceforge.net>
Thu, 9 Oct 2008 22:00:09 +0000 (22:00 +0000)
committerJoost Verburg <joostverburg@users.sourceforge.net>
Thu, 9 Oct 2008 22:00:09 +0000 (22:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26833 a592a061-630c-0410-9148-cb99ea01b6c8

development/Win32/packaging/installer/setup/configure.nsh

index e6a408a54bb0998bb3f4c6aec3f02e7ba0a810b4..1e754fb9ed042e081374506025eb3329227f92c8 100644 (file)
@@ -126,26 +126,30 @@ Section -Configure
 SectionEnd
 
 #--------------------------------
-# dvipost package
+# LaTeX files
 
 Var UpdateFNDBReturn
 
-Section -dvipost
+Section -LaTeXFiles
 
-  # Install package in local root
+  # Install files in local root
 
-  ${if} $PathLaTeXLocal != ""
+  ${If} $PathLaTeXLocal != ""
+    # dvipost
     SetOutPath "$PathLaTeXLocal\tex\latex\dvipost"
     File "${FILES_DVIPOST_PKG}\dvipost.sty"
-  ${endif}
+    # LyX files in Resources\tex
+    SetOutPath "$PathLaTeXLocal\tex\latex\lyx"
+    CopyFiles /SILENT "$INSTDIR\Resources\tex\*.*" "$PathLaTeXLocal\tex\latex\lyx"
+  ${EndIf}
 
   # Update file name database
 
-  ${if} $PathLaTeX != ""
+  ${If} $PathLaTeX != ""
     DetailPrint $(TEXT_CONFIGURE_MIKTEXFNDB)
     nsExec::ExecToLog '"$PathLaTeX\initexmf.exe" --update-fndb'
     Pop $UpdateFNDBReturn # Return value
-  ${endif}
+  ${EndIf}
 
 SectionEnd
 
@@ -180,6 +184,7 @@ Var ConfigureReturn
 
 Section -ConfigureScript
 
+  SetOutPath "$INSTDIR\Resources"
   DetailPrint $(TEXT_CONFIGURE_LYX)
   nsExec::ExecToLog '"$INSTDIR\python\python.exe" "$INSTDIR\Resources\configure.py"'
   Pop $ConfigureReturn # Return value