kalinga
16th June 2004 22:10 UTC
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
Joost Verburg
16th June 2004 23:14 UTC
Why are you using CallInstDLL instead of the plug-in syntax?
kalinga
17th June 2004 12:09 UTC
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.
Joost Verburg
17th June 2004 12:22 UTC
Right. Can you give the error message?
kichik
17th June 2004 18:23 UTC
Are you sure it finds netstat? Does it work with full path or other applications?
kalinga
17th June 2004 21:42 UTC
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
17th June 2004 21:47 UTC
9x/ME or NT/2000/XP?
kalinga
18th June 2004 17:47 UTC
os is xp home
kichik
18th June 2004 18:51 UTC
Fixed in latest CVS version. CVS is probably still behind, so the compiled DLL is attached.
kalinga
19th June 2004 09:03 UTC
thank you kichik.