Skip to content
⌘ NSIS Forum Archive

Unicode and CLR plug-in

7 posts

kzh125#

Unicode and CLR plug-in

I find a problem.
I am using NSIS v3.0rc1 now. And I use "CLR:Call" to call .net assemblies.
The CLR.dll was downloaded from "http://nsis.sourceforge.net/Call_.NET_DLL_methods_plug-in" and wat copied to "NSIS\Plugins\x86-ansi\" and "NSIS\Plugins\x86-unicode\".
It's OK to call .net dlls, but when I add "unicode true" to my script, it shows "Error calling .NET Dll method\n can't find file "...tmp\M.dll" "
I want to use "unicode true" to properly display all languages, but I also want to use CLR:Call.
What's the problem? Help please.
Anders#
You need to use Unicode plug-ins with Unicode installers! The wiki seems to link to one you can try.
kzh125#
the unicode version link can't be opened....
http://taralex.us/CLR.rar 404 Not Found
Thanks to your reply anyway..
kzh125#
I find an alternative solution...

InitPluginsDir
SetOutPath $PLUGINSDIR
File "My.dll"
File "CLR.dll"
CallAnsiPlugin::Call "*$pluginsdir\CLR" Call 5 "My.dll" "SomeNamespace.SomeClass" "func" 1 "param"
CallAnsiPlugin::Call "*$pluginsdir\CLR" Destroy 0
kzh125#
Originally Posted by Anders View Post
You probably don't want the * at the start of the path in the last call...
Got it... the last call is to unload the dll..

Thank you.