Archive: MessageBox problem


MessageBox problem
This just stops NSIS compiling the code...


MessageBox MB_OK|MB_ICONEXCLAMATION "Error: Cannot rename \
the $1 directory to $2,$\nbecause a $2 directory already \
exists.$\n$\nEither rename the detected $2 directory to something \
else, or use $2 as your base Quake2 directory path." +2


As far as I can see, there is nothing wrong with it.

I'm getting $R0 from the GetParent function. Could that be causing it?

Edit: I did a StrCpy $2 "$R0\quake2" to get the same as what I had before ($R0\quake2, which I have replaced with $2) but that didn't change anything.

-Stuart

I'd like to help you, but I didn't understand a thing, maybe because I don't have enough knowledge, who knows...


Hmmm. Try this:

MessageBox MB_OK|MB_ICONEXCLAMATION "Error: Cannot rename the $1 directory to $2,$\nbecause a $2 directory already exists.$\n$\nEither rename the detected $2 directory to something else, or use $2 as your base Quake2 directory path." IDOK +2


Well, I tried removing the +2 off the end, but it still happens.
That would probably mean that adding IDOK will do nothing, but I shall try it anyway.

-Stuart


What happens? What error do you get? You must have IDOK before the +2 or else MessageBox won't know when to jump +2.


MessageBox MB_OK|MB_ICONEXCLAMATION "Error: Cannot rename \
the $1 directory to $2,$\nbecause a $2 directory already \
exists.$\n$\nEither rename the detected $2 directory to something \
else, or use $2 as your base Quake2 directory path." +2
$\nbecause is a jump line, right?... so you might use this:


$\r$\nbla


helps? :p

Ok, I added IDOK, and it has worked.
Before though, when I removed the +2 off the end, it would still stop it compiling.

-Stuart