Guglielmo
16th January 2009 16:06 UTC
NSIS Plug-in versus C/C++ DLLs
Hi,
I'm writing some C/C++ code to extend the functionality of my installer and I'm undecided if I should write the code as NSIS plug-in or as a simple DLL. Can someone help me understanding the pro and cons of using an NSIS plug-in versus a normal C/C++ DLL? Right now, the only difference I see is that a plug-in is automatically loaded by NSIS and I don't need to extract it, while a DLL needs to be extracted.
Are other differences?
Thanks!
Guglielmo
kichik
16th January 2009 16:16 UTC
You also get access to NSIS internals and can easily pass parameters on the stack.
Guglielmo
16th January 2009 16:23 UTC
Thanks kichik,
Can you give me an example of NSIS internals?
Joel
16th January 2009 20:17 UTC
In my low experience, It's better to use the plugin, because you'll need to call the system plugin and later your plugin.
With your plugin well be more easier to handle the input, although, the system plugin supports struct and pointers...handy and some circumstances.