Skip to content
⌘ NSIS Forum Archive

using nsExec through callinstdll

10 posts

kalinga#

using nsExec through callinstdll

need help to make the following code work
;//
push '"netstat" -e'
CallInstDLL "$R2\nsExec.dll" "ExecToStack" ;$R2 cotains the path where the dll is placed
pop $1
pop $2
;//

when run i get a error message
thank you in advance
kalinga#
i am creating a stand alone application using NSIS Script.
so, i would like to use the dll from a specific location
and not for the temp dir where it is extracted to by default
when the plug-in function is used.
kalinga#
to Joost Verbung:
for the following code
;//
push '"netstat" -e'
CallInstDLL "E:\Program Files\net\nsExec.dll" 'ExecToStack'
pop $1
pop $2
detailprint $1
detailprint $2
;//

the output:
error

completed
;end of output

to kichik:
(the following details tested after your post)
it does find the netstat program if there is no space in the address path of the dll
as in the following:
;//
push '"netstat" -e'
CallInstDLL "E:\Program\net\nsExec.dll" 'ExecToStack'
pop $1
pop $2
detailprint $1
detailprint $2
;//
kichik#
Fixed in latest CVS version. CVS is probably still behind, so the compiled DLL is attached.