function WizardIsComponentSelected(const Components: String): Boolean;
Returns True if the specified component is selected. Multiple components may be specified in the same manner as in a Components parameter.
begin if WizardIsComponentSelected('helpfiles') then // the 'helpfiles' component is selected end;