Call .NET DLL methods plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 19: Line 19:


* support for callbacks
* support for callbacks
* a much cleaner way of specifying method parameters
* a cleaner way of specifying method parameters
* both native NSIS plugin and plugin called via System::Call
* both native NSIS plugin and plugin called via System::Call
* Source code when it's ready


== Download ==
== Download ==

Revision as of 19:41, 20 August 2008

Author: claesabrandt (talk, contrib)


NSIS forum thread

Description

This is a NSIS plug-in, that can call methods in your managed .NET DLL.

While the plug-in is fully functional, it still undergoes some development and changes.

Sample NSIS script calling a method in a .NET DLL:

SetOutPath $PLUGINSDIR
File "SomeAssembly.dll" ; some test .NET assembly
File "CLR.dll" ; this plugin
System::Call `CLR::Call(w 'SomeAssembly.dll::SomeNamespace::SomeClass::SomeMethod( \
  "some string value",12,"15,8",false)') w .r0`

Coming soon

  • support for callbacks
  • a cleaner way of specifying method parameters
  • both native NSIS plugin and plugin called via System::Call
  • Source code when it's ready

Download

Version 0.1 of the plugin is available here CLR.zip (35 KB) for testing purposes.