The following code
Works fine on Windows98. This checks for the space in installed directory and gives the error message propertly. But on Windows XP, When the browse button is clicked, the directory variable value automatically updates to the Windows XP profile directory(with spaces) and the call back fucntion is executed several times and shows message box multiple times. I use NSIS Version 2.0. Any help to resolve this issue would be appreciated. thanks.
Fucntion .onVerifyInstDir
Push $INSTDIR
Push " "
Call StrStr
Pop $R0
StrComp $R0,"" +3 0
MessageBox MB_OK|MB_ICONINFORMATION $(MSG0003)
Abort
FunctionEnd