Archive: 2.05 released


2.05 released
2.05 was released a couple of hours ago. Changelog and release notes can be found at:

http://sourceforge.net/project/shown...ease_id=302407

Downloads can be found at:

http://sourceforge.net/project/showf...ease_id=302407

Known problems:

All of the these problems were already fixed in the latest CVS version. I predict some more glitches will be found because of all of the changes in the components code. Therefore, I will not release a fix-up version right now, but 2.06 next week.

Will 2.06 be bugfix-only or will there be room for something like an updated VPatch plug-in? This depends of course on the time schedule because VPatch should be tested properly before it is put into a stable NSIS.


VPatch 3 RC3 is feature-ready (NSIS-wise): VPatch 3 RC topic

Only the GUI needs some work and the documentation (the NSIS one is up to date though, just not the stand-alone one).


Bug fix only.


I think adding hidden Section still doesn't fix all problems with groups. In my script in some cases I need to hide and deselect some other sections inside groups, so in components page pre-function I use

SetSectionFlags ${sec} 0
SetSectionText ${sec} ""

And I don't see this section in components page. But when I leave this page, selection bit in section flags is set (and I can see it in page leave-function), so my Section installs.

All works fine in 2.04.

I'm trying to isolate this bug, writting some simple script, but can't reproduce it, and it's very strange...


It's not a bug, it's a fixed bug.

Invisible sections weren't always affected by a change of the installation type (bug #1045722)

OK, waiting for 2.06


AdvSplash and LangDLL plug-ins problem in the NSIS 2.05 - installer goes to background after splash/lang window disappears. AdvSplash worked fine in 2.03 (and probably in 2.04, but I am not sure). LangDLL had the same problems in 2.04 (and may be earlier).
This happens on the one of my comps only - Win2K Server Rus SP2, PII-350 256 MB (and bad video card). On the other comp with Win2K Pro Eng SP4, PIII-533 128 MB plug-ins work fine. The same with MSI Banner plug-in. My NewAdvSplash still works correct on both comps. May be first comp works too slowly? But why AdvSplash plug-in worked correct on the same comp in 2.03 version? Any "fixed bugs"? ;)


Forgot to attach test script - reproduces situation with AdvSplash.


It works fine for me on both slow and fast computers. Since it only happens on one of your computers, maybe it's a problem with it? Have you tried running it in safe mode where some programs will not interfere? Have you tried finding the differences between "your NewAdvSplash" and the other plug-ins?


I only wanted to help with 2.05. First versions of my plug-in had this problem, but I did few iterations and made it working like AdvSplash in previous NSIS releases (i.e. correct). I don't want my post looks like advertisement (and this is why I not gave any links :) ), may be this is my problem only, I know how to solve it for me and it's OK ;)


I was not suggesting you're trying to advertise anything. I was simply putting up suggestion to solve this problem of yours. But now you tell me you already have the solution. So why not just submit a patch instead of just reporting the problem?


As you all have probably noticed already, I didn't release 2.06 last weekend. I didn't have too much time last weekend, and I won't have this time too. Other than the Russian language file bug, there aren't any major problems with 2.05 that affect everyone, so it's not that bad anyway. 2.06 should be released in two or three weeks, on schedule. Hopefully, it will include some more automated testing to prevent problems, such as the language file problem, in the future.


KichiK, I have not clear understanding of "background" problem in AdvSplash. This is why while adding my little changes to base version (C-file header includes change history from Justin to my add-ons) I had to repeat changes step-by-step moving from old to new version and finally it began and continue working (and this is my solution ;) ). AdvSplash.c 2.03 and 2.05 "diff -B --ignore-all-space" 7 kB shows that someone worked hard with file formatting (and made little changes in "state" var). But finally I do not see any reasons for AdvSplash to change behavior, something weird again..


CVS provides a log:

http://cvs.sourceforge.net/viewcvs.p...sh/advsplash.c

Nothing was changed in AdvSplash. The only thing that was changed in 2.03 is in Ui.c:

http://cvs.sourceforge.net/viewcvs.p...1.215&r2=1.216


(I'm using latest NSIS available via the menu->Update latest
development and this is the AbiWord installer.)
I'm not sure if this is a bug (either in NSIS or my script) or a change somewhere between 2.02 and 2.05, but my installer script builds fine but there are two major differences:
- the default install type is now custom instead of typical
Is there a new command that must be used (or maybe one I
should have been using) to indicate the default one?
- subsections don't work like they used to, in particular,
when only partial subitems are selected the check box in
the parent remains clear or selected (whichever it was)
instead of the former grey+check, even unselecting all
items does not clear the parent (group) checkbox (only
directly clicking on it). Is this the expected bevahiour,
part of the bugs you are talking about above, or something
that requires a change in my installer [if so I would
appreciate directions as what to look into]?

Thanks for helping me determine where the problem is.


According to the latest abi/src/pkg/win/setup/NSISv2/AbiWord.nsi, you have a section group (subsection) as the very first section. This is the trigger for the second known problem described in the first post. Your description also matches the bug symptoms. Simply add an invisible section before the first section group to avoid this bug.

Using the latest from CVS didn't help because you probably didn't recompile makensis.exe. I no longer upload a new version of makensis.exe to CVS for every change. I only upload a new version when I release a new version of NSIS. I intend to remove all executables from CVS once I finish a build system I'm currently working on. The new build system will build the entire NSIS package so it'll be easy to make a complete nightly package.


Thanks, I recompiled latest cvs version and using it the
selection of sections within groups now appears to be fine,
however, the default install type is still always Custom.
I added an initial hidden empty section and it made no
difference regarding the install type, I even added explicit
calls to SetCurInstType (1st tried in .onit function, and
then even tried in my 1st section). Should I file a bug for
this or do you have any ideas/suggestions I should try first? Thank you.


I have tried to reproduce this with the latest CVS version, but couldn't get it to start with the custom install type selected. It always starts with typical. It might be because of the many changes I've made to the script.

I couldn't find anything in the script that would make SetCurInstType in .onInit, placed after !insertmacro SectionList "InitSection", not work. Any chance you can get a smaller script reproducing this problem?


I narrowed down my problem to the add/remove aspect of
my installer. When a previous install exists (ie it finds
the list of installed components) it should set the
corresponding sections to match, but apparently is failing
somewhere and pretty much just deselects everything;
but when I remove the entries so as to mimic a fresh
install it does correctly start with typical.
I will do some more testing and see if I can track down
what is causing the difference.


There was another change in 2.05 that might have caused this. Selecting a section group with SetSectionFlags now affects its children too, just like when the user clicks a section group. However, I didn't notice any section groups on the list in SectionList. Is there another place in the script that might set flags for section groups?


That is it then, as groups are also set/unset.
Thanks for the help, I will change the installer
to check and skip [un]selection for groups.


AdvSplash - GlobalFree(bad pointer) bug I guess. Updated code of my plug-in is here http://forums.winamp.com/showthread....19#post1612419


Thanks, fixed.