Skip to content
⌘ NSIS Forum Archive

string Concat

6 posts

darshanaltekar#

string Concat

Is there any string function in NSIS by which i can concat strings.
Also in my custome page when my user clicks next i want to verify value entered in text box in page leave function , what command i can use for not leaving the custome page if verification fails.
Red Wine#
Is there any string function in NSIS by which i can concat strings.
StrCpy $1 "a string"
StrCpy $2 "another string"
StrCpy $0 "$1 - $2"
MessageBox MB_OK "$0"
Also in my custome page when my user clicks next i want to verify value entered in text box in page leave function , what command i can use for not leaving the custome page if verification fails.
Check out last example I've posted on this thread,

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
darshanaltekar#
Thanks Red Wine One more question,in my custome page i have 5 text boxes. In page leave i'm checking wheather values entered by user are in proper range & if they are not i'm giving error. Now what i want to do is that , the text in text box whose values are not range automatically get selected. Is there any way i can set focus on that perticular textbox. I think updating INI file wont help what can i do
Red Wine#
Current InstallOptions release supports FOCUS flag, see the manual,

darshanaltekar#
It doesn't work if i change .ini file at run time it doesn't reflect the changes is there any way i can unload page & reload page very fast?
Red Wine#
Changing focus at runtime has been discussed several times on the forum,
a quick search came up with several results,