]> git.lyx.org Git - lyx.git/blobdiff - development/Win32/packaging/AltInstaller/InstallActions-update.nsh
update installer: update also lyx.bat file (needed for new launcher)
[lyx.git] / 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 != ""