lushdog
28th August 2007 18:58 UTC
"\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?
kichik
28th August 2007 21:15 UTC
Which string? Where does \r go? Please post the exact piece of code that causes the problem.
lushdog
29th August 2007 13:13 UTC
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"?
Afrow UK
29th August 2007 14:48 UTC
\r and \n are carriage returns and new lines in InstallOptions.
Stu