I\'m writing a package in Delphi 2007 containing a component and several classes. I want to \"install\" the classes as well as the components.
To be more precise: wh
To be more precise: when a component is installed, the unit is somehow registered such that it is not necessary to add its path to the search path in the project.
The unit is not registered anywhere. When a component is installed, the bpl package in which it resides is added to the known packages list when the IDE starts, it will call all the Register procedures (note the capital R) in each of the known packages. These Register procedures contain code to get the components registered on the tool palette.
If you set up the component package(s) correctly, the IDE will also know which units to add to a form's uses clause when you drop a component on a form.
The library path in the environment options is not part of all this. If it is being amended by installing a component, that is being done by the component's installation program as a separate action in addition to adding the component's bpl to the IDE.