PDA

View Full Version : Canceling component install during an event



PaulGGardner
08-12-2003, 03:30 PM
Using IS 6.3, is there a way to stop a component from being installed from within the Installing event?

What I'd like to do is ( event-based programming ) is check, in that component's event, whether or not that component should be installed, and if not, stop the installion of that component only, not the entire install.

Thanks,
Paul

ursvenky
08-18-2003, 12:21 AM
You can use
ComponentSelectItem( MEDIA, "Component-x", FALSE ); API if you don't want to install the component based on the condition.

Ex:
if ( Condition is TRUE ) then \\ I wanna install

ComponentSelectItem( MEDIA, "Component-x", TRUE );

else // I don't want to install

ComponentSelectItem( MEDIA, "Component-x", FALSE );

endif;

All the Best