]> git.lyx.org Git - lyx.git/commitdiff
update installer: update also lyx.bat file (needed for new launcher)
authorUwe Stöhr <uwestoehr@web.de>
Thu, 31 May 2007 00:48:23 +0000 (00:48 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 31 May 2007 00:48:23 +0000 (00:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18586 a592a061-630c-0410-9148-cb99ea01b6c8

development/Win32/packaging/AltInstaller/InstallActions-update.nsh

index 4bee196bffc1ec347ffb8628c35fd698b1c8a604..1f87218178fe53a208e8ffde1174be1d195a8ed1 100644 (file)
@@ -178,6 +178,10 @@ Function InstDirChange
    StrCpy $FileName "session"
    Call CheckAppPathPreferences # function from LyXUtils.nsh
    
+   # set the new path to the lyx.bat file
+   # following macro from TextFunc.nsh # calls Function ReplaceLineContent from LyXUtils.nsh
+   ${LineFind} "$INSTDIR\bin\lyx.bat" "" "1:-1" "ReplaceLineContent" 
+   
    # set new path to ImageMagick
    ReadRegStr $ImageMagickPath SHCTX "SOFTWARE\Classes\Applications" "AutoRun"
    ${if} $ImageMagickPath != ""