|
|
#1 |
|
Junior Member
Join Date: Dec 2011
Posts: 13
|
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? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
/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 Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2011
Posts: 13
|
Thank you Afrow
|
|
|
|
|
|
#4 |
|
Senior Member
|
Heh, I did not have knowledge about this call, thanks!
Create cool looking Graphical Installers in NSIS: www.graphical-installer.com -see below I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsigned-softworks.sk Develop NSIS projects directly in Visual Studio 2005-2012: www.unsigned-softworks.sk/visual-installer/ |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|