valentz142
26th December 2006 07:58 UTC
How to use .net library in NSIS Script
Hello all,
I have googled for a few day, read wiki, read forum but I cannot find what I need. I need your help.
I have create two function(sayhello and sayhellowithparam for example) in my custom .net library (example mydll.dll).
How to call this function from NSIS? Is it any plugin that needed? Since I have tried to use:
1. system::call "mydll::sayhello(v) t .r0"
2. system::call "mydll::sayhellowithparam(t 'helloworld') t .r0"
3. i put it in $plugindir, and load it just like a plugin
4. I have already tried to use regasm first or just only use setoutpath for point 1 and 2
Please help...
:(
Afrow UK
26th December 2006 14:05 UTC
This has already been mentioned before. You can't call a .NET library with the System plugin.
-Stu
valentz142
29th December 2006 02:37 UTC
and then, how to communicate with .net library? to use .net library?
:(
kichik
29th December 2006 10:41 UTC
Create a non-managed DLL that calls that .NET DLL. You could also try creating a non-managed exported function in the .NET DLL itself, but I don't know if that's possible.
valentz142
3rd January 2007 09:38 UTC
Thank you,
Perhaps, I will combine all suggestion that i get.
Create an executable that load .net dll and use exectostack to get its return.
I'll try..
Thank you,
Backland
3rd January 2007 09:54 UTC
It might be easier to create your own NSIS plugin to call the .NET library, instead of an executable so you might want to do that.
kesavan
28th May 2008 12:15 UTC
Hello,
I am having same issue.. I am new to NSIS.
It would be helpful, if you provide step by step guide to call the .net dll in NSIS script.
Please advise.
Thanks in advance.
Regards,
Kesavan