Archive: an alternateve for /NOUNLOAD ?


an alternateve for /NOUNLOAD ?
Hello
I've been wondering if there is an alternative to /NOUNLOAD. I can see that it is unsafe so the reason to deprecate it is clear, but how can I do the following thing without it?
There is a struct in my pluginXyz that is filled/modified every time I call
pluginXyz::generate /NOUNLOAD "aaaModule"
pluginXyz::generate /NOUNLOAD "bbbModule"
...
pluginXyz::generate /NOUNLOAD "zzzModule"
in various places of a script, and then when it's ready I call
pluginXyz::writeAll "x:\TEMP\somepath\"
Am I doing it right? If not, is there another way to do it right?


/NOUNLOAD is deprecated because now plug-ins can register themselves to not be unloaded by NSIS when a call completes (instead it will be unloaded on installer exit). You register using the extra->RegisterPluginCallback() function. Once this is done, your plug-in will stay loaded after all calls (note that you can call RegisterPluginCallback() multiple times without any side effects).

Stu


Thank you Afrow


Heh, I did not have knowledge about this call, thanks!