]> git.lyx.org Git - features.git/commitdiff
Win32-build, bug #11635, "2 lyx in same time?"
authorKornel Benko <kornel@lyx.org>
Wed, 6 May 2020 09:50:41 +0000 (11:50 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 6 May 2020 09:50:41 +0000 (11:50 +0200)
Patch from Eugene
"Win installer part again, this time just append to existing lyxrc.dist instead of deleting it."

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

index ae283362e9491832fec20a257037130470ec8063..ff6caf28d975d704e56a12d1719febc40784a65c 100644 (file)
@@ -162,10 +162,8 @@ Section -Configure
   
   # Set the path prefix in lyxrc.dist
   ClearErrors
-  Delete "$INSTDIR\Resources\lyxrc.dist"
-  FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" w
-  # set the format to the latest LyXRC format
-  FileWrite $R1 'Format 24$\r$\n'
+  FileOpen $R1 "$INSTDIR\Resources\lyxrc.dist" a
+  FileSeek $R1 0 END
   # set some general things
   FileWrite $R1 '\screen_zoom 120$\r$\n'
   ${if} "$PathPrefix" != ""