Archive: FileWrite Questions..?


FileWrite Questions..?
example :
FileWrite $1 "Good morninig!"
FileWrite $1 "Have a nice day~"

result : Good morninig!Have a nice day~

Like this result instead of........

I want the result which with lower part am same..
result :
Good morninig!
Have a nice day

newline....

It does to do how? please....


FileWrite $1 "Good morning!$\r$\n"
FileWrite $1 "Have a nice day~$\r$\n"

If you want a blank line between the two strings, use "Good morning!$\r$\n$\r$\n"

If you want to use LF instead of CRLF at the end of each line, use $\n instead of $\r$\n

See section 4.2.4 (Variables used in strings) in the NSIS User Manual for further details.