I can't find what I need in the documentation, I'm probably just blind, but you'll know the answers better I bet. 😉
I want to open an .ini file, search for a string "dbdir=" and append / write the installdir after that string.
So here's my code:
SetOutPath "$INSTDIR\somewhere"
FileOpen $1 "file.ini" a
FileSeek $1 "dbdir="
FileWrite $1 "$INSTDIR\path\to\somwhere"
FileClose $1 Sadly the string is written at the beginning of the file.What am I doing wrong?