You should explicitly reference each of the units mentioned in the dialog in the contains section of the DPK file. The dialog only shows units that are implicitly (= not listed in contains) included and suggests requiring the package they originally belong to.
+4
A:
Uwe Raabe
2009-08-10 07:59:41
+1. Also, look for the pointers to help avoid this in this answer: http://stackoverflow.com/questions/1215664/is-implicitly-imported-always-a-bad-thing-in-delphi-packages/1216131#1216131
Cobus Kruger
2009-08-10 13:34:32
Thank you Uwe! So basically, if a package is installed that contains one of the units that isn't *explicitly* required, it will require the package... instead of giving you a list of units that it has implicitly linked in (as is that case normally).
Nat
2009-08-12 10:21:38
I think the units are also linked in implicitly in the first place, but it is suggested to require those packages. If you click OK it is actually done.
Uwe Raabe
2009-08-12 12:11:05
+2
A:
If delphi is requiring this package is because you are using some units that are not in the package itself or in the required packages.
By the way, if Delphi is prompting you for use this package is because Delphi "knows" a package with these units you need and you are not declaring, also the package will be compiled with these units "implicity" imported. This could produce an inconsistent application if you are working with packages. Remember a Unit only can be loaded one time in an application.
Francis Lee
2009-08-10 08:15:44