Archive: /NOUNLOAD question


/NOUNLOAD question
The NSIS 2.42 release notes state that:

"Deprecated /NOUNLOAD and SetPluginsUnload to make scripts simpler and safer"

We are using NSIS 2.45 and I am sure that I am just misunderstanding something. We have a plug-in that we wrote a few years ago under NSIS 2.34 to take control of the installer/uninstaller progress bar and set it to whatever position we want. We have always used the /NOUNLOAD command and upon reading the above release note I tried removing the /NOUNLOAD parameter on our plug-in. This caused the DetailPrint command to crash. I am assuming that it was our plug-in being unloaded and ripping out some pointers. I put the /NOUNLOAD parameter back in and the problem went away.

Can someone explain the meaning of the 2.42 release note? Do we need to rebuild the plug-in using a more recent version of NSIS? Or am I completely missing something.


This thread might be for you:
http://forums.winamp.com/showthread.php?t=301320

In summary:
Your plugin will continue to work and installer authors will continue to have to use /NOUNLOAD (and potentially an unload call).
If that is something you would like to get rid of, that's when you check out the new API and recompile :)

By the way, I'm not sure what your plugin does exactly, but you could look at the RealProgress plugin that at least sounds like it does something similar to what your plugin does (control over the (un.)InstFiles progressbar).


Originally posted by Animaether
This thread might be for you:
http://forums.winamp.com/showthread.php?t=301320

In summary:
Your plugin will continue to work and installer authors will continue to have to use /NOUNLOAD (and potentially an unload call).
If that is something you would like to get rid of, that's when you check out the new API and recompile :)
Thanks a bunch. It does sound like all we need to do us update all of our plug-ins and everything should start working as expected. Thanks for that link as I was having trouble finding related items in the search.
By the way, I'm not sure what your plugin does exactly, but you could look at the RealProgress plugin that at least sounds like it does something similar to what your plugin does (control over the (un.)InstFiles progressbar).
Yes, we were aware of that plug-in and ours does pretty much the exact same thing We cannot use it as the plug-in includes source code which is prohibited by our legal department.

Thanks again for the help.

Why in NSIS 2.46 documentation "4.9.3.1 CallInstDLL" and "4.11 Plug-in DLLs" don't mention /NOUNLOAD parameter? /NOUNLOAD parameter is still required to call plugin without unload, but description was removed after 2.42 release.