A component procedure (or procedure) is a program that is contained in and manages a component. A component procedure might install, uninstall, or control a component. A procedure is created when you build the component.
You can run a procedure in these ways:
Directly from the Details page of a component, where a plan is generated and then executed
By writing a plan that calls the procedure, then running the plan
Your component can have several procedures. For example, a component might include a control procedure to start or stop the application that it models.
When you create a component that extends from a component type, the component inherits the procedures that are defined by the component type.
When you create a composite component, it inherits default installation and uninstallation procedures. Usually, components inherit procedures from the associated component type.