Archive: Programmatically select of components


Programmatically select of components
I have a installer with two pages. In the first page the user select a group, and the second is the components page.
When the user have selected a special group, i want to select some special components. I do this with SectionSetFlags, and this works fine, but when i select a section programmatically the installtype in the components page, was changed from typical to custom.
How can i select a component programmatically, without changing the installtype.
I have tried with IF-Else in the components page, but this doesn't works.

Thank you in advance.
Regards,
Boian


Add a install type that "aligns" with that selection of section


Thank you, for the reply. I have found a solution and done this, using the SetSelectionInInstType and ClearSelectionInInstType. So i can dynamically define the content of a install type, and this is exact that what i want. Maybe not the best solution, but works for me.

Regards,
Boian