Skip to content
⌘ NSIS Forum Archive

"\r" is getting processed as carriage return.?

4 posts

lushdog#

"\r" is getting processed as carriage return.?

StrCpy $R0 "$R0\n\n Use existing Microsoft SQL Server"
Messagebox mb_OK $SQLPATH
StrCpy $R0 "$R0\n SQL Server path: $SQLPATH"

If there is a "\r" in the string:

The Messagebox call shows the string as it should "\rabcdef"

The 2nd Strcpy (concatenation), processes the "\r" as a line break even though there is no "$" in front of it.

Ideas to get around this?
lushdog#
Sorry, I meant if there is an "\r" sequence in the $SQLPATH variable. It prints out fine, alone, in the MessageBox, but when it is concatenated it creates a carriage return.

I changed page from an InstallOptions to Custom nsDialogs page and now it seems to be working as intended.

Did the old InstallOptions pages use "\n" instead of "$\n"?