Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 13th June 2012, 07:08   #1
BreezeUADN
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?
BreezeUADN is offline   Reply With Quote
Old 13th June 2012, 10:27   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 13th June 2012, 13:20   #3
BreezeUADN
Junior Member
 
Join Date: Dec 2011
Posts: 13
Thank you Afrow
BreezeUADN is offline   Reply With Quote
Old 15th June 2012, 08:07   #4
T.Slappy
Senior Member
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 364
Send a message via ICQ to T.Slappy
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/
T.Slappy is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump