Is maximum string length documented?
Within my scripts I have the following code:
StrCpy $R1 "some long string...$\r$\n\
that continues over serveral$\r$\n\
lines$\r$\n\
...$\r$\n"
FileOpen $0 "my.new.filename" "w"
FileWrite $0 $R1
FileClose $0
But this string seems to get truncated, implying there is a maximum length. I couldn't find this in the documentation.
However, there is the obvious workaround which is:
StrCpy $R1 "some long string...$\r$\n\
that continues over serveral$\r$\n\
lines$\r$\n\
...$\r$\n"
StrCpy $R2 "the long string...$\r$\n\
continues over serveral$\r$\n\
more lines$\r$\n\
...$\r$\n"
FileOpen $0 "my.new.filename" "w"
FileWrite $0 $R1
FileWrite $0 $R2
FileClose $0
If others have come across this problem I hope this helps.