sdbarker
14th December 2003 19:54 UTC
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
14th December 2003 21:06 UTC
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
15th December 2003 10:00 UTC
I'm not sure what you mean. Do you happen to have an example anywhere?
-Scott
kichik
15th December 2003 15:01 UTC
example
sdbarker
15th December 2003 15:12 UTC
Looks like this is going to be a pain...
sdbarker
15th December 2003 15:19 UTC
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
15th December 2003 15:27 UTC
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.
sdbarker
15th December 2003 15:28 UTC
What a mess.