I’m creating some components and after installing and check which components have been registered there are some extra ones which aren’t part of the package I’ve created. They are part of other packages we use in the system. Since the software uses both packages this raises errors about the same component being registered twice.
What’s causing a component not listed in the contains section to be registered in the package?
Delphi 2007
Existence of the
Registerprocedure which calls RegisterComponents.Two possibilities:
Your package is using a unit which registers its components by the standard
Registerprocedure. This unit is not part of any other package, so it gets registered together with your package. In this case, you should get a warning about the implicitly used unit.Your package directly or indirectly depends on the package which contains the components. This package has not been installed yet, so it gets installed together with your package. When a package is loaded in the IDE, all units are enumerated recursively and every found
Registerprocedure is called by the IDE. By installing a package you are effectively also installing all design packages it depends on.