]> git.lyx.org Git - features.git/commitdiff
installer: sync with branch
authorUwe Stöhr <uwestoehr@web.de>
Mon, 7 Dec 2009 23:31:35 +0000 (23:31 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Mon, 7 Dec 2009 23:31:35 +0000 (23:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32422 a592a061-630c-0410-9148-cb99ea01b6c8

development/Win32/packaging/AltInstaller/ConfigLyX.nsh
development/Win32/packaging/AltInstaller/InstallActions-update.nsh
development/Win32/packaging/AltInstaller/LyXInstaller-complete.nsi
development/Win32/packaging/AltInstaller/LyXInstaller-small.nsi
development/Win32/packaging/AltInstaller/MissingPrograms.nsh

index 5665459814fef139259425fbaaa8256f8cef3f96..9792b53cae44ef4032c67f457072eac3f8e3598c 100644 (file)
@@ -48,7 +48,8 @@ Function ConfigureLyX
   Delete "$INSTDIR\Resources\lyxrc.dist"
   FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" w
   # set some general things
-  FileWrite $R1 '\screen_zoom "120"$\r$\n'
+  FileWrite $R1 '\screen_zoom "120"$\r$\n\
+                 \accept_compound true$\r$\n'
   ${if} "$PathPrefix" != ""
    FileWrite $R1 '\path_prefix "$PathPrefix"$\r$\n'
   ${endif}
@@ -62,8 +63,8 @@ Function ConfigureLyX
   ${if} $SVGPath != ""
    FileWrite $R1 '\format "svg" "svg" "SVG" "" "inkscape --file=$$$$i" "inkscape --file=$$$$i" "vector"$\r$\n\
                  \converter "svg" "png" "inkscape --without-gui --file=$$$$i --export-png=$$$$o" ""$\r$\n\
-                 \converter "svg" "pdf" "inkscape --file=$$$$i --export-area-drawing --without-gui --export-pdf=$$$$o" ""$\r$\n\
-                 \converter "svg" "pdf2" "inkscape --file=$$$$i --export-area-drawing --without-gui --export-pdf=$$$$o" ""'
+                 \converter "svg" "pdf" "inkscape --file=$$$$p/$$$$i --export-area-drawing --without-gui --export-pdf=$$$$p/$$$$o" ""$\r$\n\
+                 \converter "svg" "eps" "inkscape --file=$$$$p/$$$$i --export-area-drawing --without-gui --export-eps=$$$$p/$$$$o" ""'
   ${endif}
   FileClose $R1
   IfErrors 0 +2
index 846711e246ce6a94aba1d942151d1a156d9ff625..4087cab2de02e89f72c30ae7f9e5a065701fdac9 100644 (file)
@@ -214,8 +214,37 @@ Function RefreshRegUninst
    WriteRegStr HKLM "SOFTWARE\Aspell" "OnlyWithLyX" "Yes${PRODUCT_VERSION_SHORT}"
   ${endif}
   
-  # install eLyXer as Python module
-  Call eLyXer # function from InstallThirdPartyProgs.nsh
+  # eLyXer
+  # first test if Python is installed
+  ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\2.5\InstallPath" ""
+  ${if} $PythonPath == ""
+   ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\2.6\InstallPath" ""
+  ${endif}
+  ${if} $PythonPath == ""
+   ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\3.0\InstallPath" ""
+  ${endif}
+  ${if} $PythonPath == ""
+   ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\3.1\InstallPath" ""
+  ${endif}
+  ${if} $PythonPath != ""
+   StrCpy $PythonPath $PythonPath -1 # remove the "\" at the end
+  ${endif}
+  # now install eLyXer as Python module
+  ${if} $PythonPath != ""
+   # a Python module cannot simply started with
+   # ExecWait '$PythonPath\python.exe "$INSTDIR\bin\setup.py" install'
+   # therefore run a script
+   StrCpy $1 $INSTDIR 2 # get drive letter
+   FileOpen $R1 "$INSTDIR\bin\eLyXer.bat" w
+   FileWrite $R1 '$1$\r$\n\
+                 cd "$INSTDIR\bin"$\r$\n\
+                 "$PythonPath\python.exe" setup.py install'
+   FileClose $R1
+   ExecWait '"$INSTDIR\bin\eLyXer.bat"'
+   Delete "$INSTDIR\bin\eLyXer.bat"
+  ${else}
+   ExecWait '"$INSTDIR\bin\python.exe" "$INSTDIR\bin\setup.py" install'
+  ${endif}
   
   # Metafile2eps
   Var /GLOBAL RegLocation
index 6622f9c101facd5b456d978f1cc01234f2fa8ec7..8df75970c627bebd8f65c4b1253f41eb1e3f5784 100644 (file)
@@ -88,7 +88,7 @@ Var WMFPath
 # Function to configure LyX
 !include "ConfigLyX.nsh"
 
-# Function to configure needed third-party programs
+# Functions to configure needed third-party programs
 !include "InstallThirdPartyProgs.nsh"
 
 # Function for page to install Aspell dictionaries
index ebc8058598376b8511711f444b0c1bb44764c724..086bebd1a49fb8062ceee8c13e3949ea80725981 100644 (file)
@@ -89,7 +89,7 @@ Var WMFPath
 # Function to configure LyX
 !include "ConfigLyX.nsh"
 
-# Function to configure needed third-party programs
+# Functions to configure needed third-party programs
 !include "InstallThirdPartyProgs.nsh"
 
 # Function for page to install Aspell dictionaries
index df202991467c1c97346e3dec1d53f5727318a27b..5156b2febacbc171625dd964eb2ec380c611a884 100644 (file)
@@ -86,7 +86,7 @@ Function MissingPrograms
 
   # test if Python is installed
   # only use an existing python when it is version 2.5 or newer because some
-  # Compaq and Dell PCs were delivered with outdated Python interpreters
+  # older Compaq and Dell PCs were delivered with outdated Python interpreters
   ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\2.5\InstallPath" ""
   ${if} $PythonPath == ""
    ReadRegStr $PythonPath HKLM "Software\Python\PythonCore\2.6\InstallPath" ""