Archive: How hide section on custom page?


How hide section on custom page?
I have next custom page:


[Settings]
NumFields=6

[Field 1]
Type=Label
Left=0
Top=0
Right=393
Bottom=10
Text=Your nickname:

[Field 2]
Type=Text
Left=0
Top=10
Right=300
Bottom=23
State=

[Field 3]
Type=Label
Left=0
Top=30
Right=393
Bottom=40
Text=Folder

[Field 4]
Type=DirRequest
Text=Select a directory...
State=C:\Program Files\NSIS
Left=0
Top=40
Right=300
Bottom=53

[Field 5]
Type=Label
Left=0
Top=71
Right=300
Bottom=91
Text=Config your IP:

[Field 6]
Type=Droplist
ListItems=
State=
Left=0
Top=91
Right=300
Bottom=100


I wish to have an opportunity hide any field from installer, before show this page. Maybe exist field's value like "visible=true|false"?

You can have the fields you want to hide as the last fields and then change NumFields accordingly. You could also use an invalid Type value.