Old 1st April 2010, 00:31   #1
CrushBug
Senior Member
 
Join Date: May 2005
Posts: 119
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.
CrushBug is offline   Reply With Quote
Old 1st April 2010, 05:55   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
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).
Animaether is offline   Reply With Quote
Old 1st April 2010, 20:08   #3
CrushBug
Senior Member
 
Join Date: May 2005
Posts: 119
Quote:
Originally Posted by Animaether View Post
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.
Quote:
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.
CrushBug is offline   Reply With Quote
Old 31st July 2011, 14:05   #4
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
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.
Instructor is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
nounload, plugin

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