Concatenate colon
How can to concatenate variable with colon?
$1 = A
$2 = B
StrCpy $3 "$1:$2"
I want to result A:B, but out AB
Archive: Concatenate colon
Concatenate colon
How can to concatenate variable with colon?
$1 = A
$2 = B
StrCpy $3 "$1:$2"
I want to result A:B, but out AB
You're mistaken. StrCpy $3 "$1:$2" is the correct command. If $1 is A and $2 is B, the output to $3 will be A:B .
I use NSIS 2.46 and that version crop the colon. The output is AB.
Some variables are special ($instdir etc) and will strip things that are not valid paths, $3 is normal and strcpy will not strip anything.
ok, so how can I add colon with the variable $INSTDIR
like this:
$1 = localhost
$2 = 123
$INSTDIR\proxy.exe --address=localhost:123
That cannot be done!
Use nsExec, ExecWait or similar way to execute application with your desired parameters.
Originally posted by T.SlappyI need to create shortcut to start application via CreateShortCut
That cannot be done!
Use nsExec, ExecWait or similar way to execute application with your desired parameters.
Originally posted by morkovnikThe manual clearly states how you can supply parameters to your shortcut.
I need to create shortcut to start application via CreateShortCut
Originally posted by MSGI know about manual, but colon not added
The manual clearly states how you can supply parameters to your shortcut.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.4
Please check the link MSG provided. Command line arguments are specified as a separate argument for CreateShortCut.
Stu
yes, it resolved:
CreateShortCut \
"$SMPROGRAMS\Proxy.lnk" \
"$INSTDIR\proxy.exe" \
"--proxy-address=$4 --proxy-backend-addresses=$3" \
"$INSTDIR\proxy.ico" \
0
thanks a lot!