Afrow UK
15th March 2003 00:34 UTC
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
n0On3
15th March 2003 01:07 UTC
I'd like to help you, but I didn't understand a thing, maybe because I don't have enough knowledge, who knows...
deguix
15th March 2003 08:15 UTC
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
Afrow UK
15th March 2003 13:07 UTC
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
kichik
15th March 2003 13:19 UTC
What happens? What error do you get? You must have IDOK before the +2 or else MessageBox won't know when to jump +2.
Joel
15th March 2003 14:33 UTC
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
Afrow UK
15th March 2003 18:47 UTC
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