Archive: using nsExec through callinstdll


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


Why are you using CallInstDLL instead of the plug-in syntax?


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.


Right. Can you give the error message?


Are you sure it finds netstat? Does it work with full path or other applications?


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
;//


9x/ME or NT/2000/XP?


os is xp home


Fixed in latest CVS version. CVS is probably still behind, so the compiled DLL is attached.


thank you kichik.