Archive: GetCurInstType question...


GetCurInstType question...
I have gone though the help and this forum to see if I
could understand the behavior of GetCurInstType call.

I have 3 install types, namely, Complete, Update Files,
and Custom.

The Custom install type is put together by calls to
SectionSetFlags to enable/disable specific sections.

When running the installer, I get to the components page
the Custom install type shows up. This is fine. If I
change to Complete and then to Update Files and back
to Custom, in my .onSelChange function, GetCurInstType
returns 1 (corresponding to Update Files) and not 2
(corresponding to Custom). Also, the sections that were
enabled/disabled for Custom go away and section selections
are the same as Update Files.

Is this the expected behavior?

Thanks,

Rishi.


GetCurInstType returns the installation type according to the selection. If the user selected Custom but selected the same components that would be selected for another installation type, GetCurInstType will not return Custom.

As for the selection going away when selecting Update Files and then Custom, that's because Custom is a special installation type. It has not sections associated with it. If the user selects it, nothing will really change.