VCR
2nd February 2005 17:46 UTC
Calling KillProc.dll from source location
Hi all,
I want to kill an exe using KillProc.Dll. But I want to call this DLL from my source path and not from NSIS Plugin directory. I tried by calling it as
System::Call '$EXEDIR\MyDLL\KillProc::("MyExe.exe") i(r0).r1'
Plz tell me, where am I wrong?
Regards
VCR
Afrow UK
2nd February 2005 18:48 UTC
Use CallInstDLL:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.1
-Stu
Comm@nder21
2nd February 2005 21:08 UTC
why do you want to call it from install location?
don't understand that ...
also, for the right syntax see the readme.txt from killproc (or archive page)
think it must be something like this:
KillProc::Kill "myprog.exe"
VCR
3rd February 2005 05:48 UTC
Thanks for reply..
I don't want to call it from $INSTDIR, I want to call it from $EXEDIR.
Means generally If a user try to compile my delivered NSIS source code without keeping KillProcDll in his NSIS Plug-in directory, he will get an error as Dll not found.
So I want to keep the KillProcDLL in my source path DLL, means my code will always search the KillProcDLL from its source path and not from NSIS Plugin directory.
Regards
VCR
Afrow UK
3rd February 2005 12:13 UTC
Like I said before, use CallInstDLL...
File "/oname=$EXEDIR\KillProc.dll" "KillProc.dll"
Push "myprog.exe"
CallInstDir "$EXEDIR\KillProc.dll" "Kill"
-Stu
VCR
12th February 2005 09:18 UTC
Thanks for reply.
Its working fine now.
Regards
VCR