Archive: Automatically Hide sections by InstType...


Automatically Hide sections by InstType...
  Hi...

I love NSIS.
but, some new feature...

It is hide section by InstType.

see below.. ani-gif. eg.

http://user.chollian.net/~webcomrade/nsis.gif

some sample...


OutFile test_nsis.exe

SilentInstall normal
WindowIcon on
HideSection on; off

ComponentText "Select components" "" ""
>InstType 'Preset 1'
>InstType 'Preset 2'
>InstType 'Full'
>InstType /UnselectAll "/CUSTOMSTRING=Custom"

>Name "NSIS Test"

>Section "Section 1"
>SectionIn 1 2 3
SectionEnd

SectionDivider

Section "Section 2"
>SectionIn 1 3
SectionEnd

Section "Section 3"
>SectionIn 2 3
SectionEnd
>

I wish add to next version of nsis. ;)

I'm not certain, but you can probably accomplish this with the .onSelChange callback, and new section modification calls that were added for 1.98

-Scott


But what happens when I select Custom???

-Duane