How do I concatenate 2 strings in NSIS?
You concatenate strings by using the + operator. For string literals and string constants, concatenation occurs at compile time; no run-time concatenation occurs. For string variables, concatenation occurs only at run time.
StrCpy $1 "one string" StrCpy $2 " second string" MessageBox MB_OK "$1$2"
If you want to concatenate using the same variable you can do something like this:
StrCpy $1 "ABC" StrCpy $1 "$1123" DetailPrint $1
output is "ABC123"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With