How can I use a C# DLL in NSIS
Is it possible to use the C# DLL in NSIS? If so how? are there any other alternatives.
Archive: How can I use a C# DLL in NSIS
How can I use a C# DLL in NSIS
Is it possible to use the C# DLL in NSIS? If so how? are there any other alternatives.
http://nsis.sourceforge.net/Docs/Chapter2.html#2.6
http://nsis.sourceforge.net/Calling_...tem.dll_plugin
You can't call .NET DLL's with System plug-in IIRC.
You will have to make an exe istead and call it with nsExec::ExecToStack to get its output.
Stu
IMHO better do NOT use a DLL in an installer that depends on .NET, please write a native DLL in C++, or Delphi for the Win32API.
TIP:
Better refrase your question e.g.
"I need my nSIS based installer to do XYZ, how can I best do that?"
then maybe we can help you proposing an alternative solution to your C# DLL issue.
Thanks a lot for the useful feedback guys. I am new to NSIS, so I really appreciate your advice.
hello All,
I am having c# dll(C# class library project by using vs 2005). I want to call the method in NSIS Script.
I am finding the solution and its very hard to find the solution.
Please provide any sample source codes to call the C# dll using NSIS Script.(I am new to NSIS Script :( )
Kindly help me!!
Thanks in Advance.
Regards,
Kesavan
Did you miss my post above?
Stu
I don't know if that is possible, but maybe you can write a NSIS plugin DLL in C++ and use that as a wrapper to load/call your C# DLL. At least I know it is possible the other way around (call C++ DLL with a wrapper DLL from C# application). In case it's NOT possible, you'll have to create C# executable that calls your C# DLL. You can run the EXE as suggested by Afrow UK. But anyway you will have to make sure the user has the .NET framework installed first...
I have posted a solution on how to call a managed .NET DLL from NSIS. See my post here: http://forums.winamp.com/showthread.php?s=&threadid=295881