Skip to content
⌘ NSIS Forum Archive

Managing insttypes with multiple component pages

8 posts

sdbarker#

Managing insttypes with multiple component pages

I have an installer with more than one components page. When I change the install type on one components page, it changes the sections which are selected on the other components page. Each components page contains different sections, and uses different labels for the install types. What am I doing wrong, here?

Here's the installer source that's acting oddly...

-Scott
kichik#
Install types set invisible sections too so you'd have to save, clean and reset the selection of the other components on each components page just like you do with the names.

BTW, you can do both with a loop and some temporary storage file.
sdbarker#
I found a problem with your example... the Space Required isn't updated properly. Attached is a modified version, utilizing AddSize to show this.

The problem is that the Space Required only reflects the sections on that are displayed on the current components page.

-Scott
kichik#
It works as I'd expect to work. If you want both components pages to show the accumulated required size of both you can create an empty section and set its size to the other components page's required size using SectionGetSize and SectionSetSize.