Archive: Bugs with Section management


Bugs with Section management
Hi

I'll take a basic script : one-section.nsi (in Examples folder). I'll use the macros (because it's more simpler to write ;) ) !
If i change the
!insertmacro SelectSection ${sec1}
into
!insertmacro UnselectSection ${sec1}

... the 1st section should normally unselected ! That's what i expected ! That's not what happends...
The first section's still selected :(

I hope you'll fix that soon ;)

Regards

Julien


What do you mean? It works fine for me. If you want to change the required section, you have to add a define to the Section command.


Hi

Here is the new .oninit function for the one-section.nsi ...
Function .onInit
Push $0
StrCpy $1 ${sec1} ; Gotta remember which section we are at now...
!insertmacro UnselectSection ${sec1}
!insertmacro UnselectSection ${sec2}
!insertmacro UnselectSection ${sec3}
!insertmacro UnselectSection ${sec4}
Pop $0
FunctionEnd

As i said, i'm using the macros.. the only change between that script and the original one is that i want that sec1 section is unselected !

I'm using yestreday's cvs snapshot, and for this do not work !
The sec1 section is still selected :( !
Do i understand badly the use of these macros ?

Regards

Julien


That's because one-section.nsi always selects one section, that's what .onSelChange does. Remove that function and it works.


I'm confused.. i tried to get a simple example for my problem and i gave a wrong one !
In fact, there's an additionnal parameter, : in my installer i have several install types. The section i want to unselect belongs to the default install type (which is displayed by default). Because of that, my setting is overwritten when the component page is displayed. Raaaaaah, i'll have to find another way to unselectect it (maybe by removing it from all install types....) !

Thanks for answers !