Q:

How do you determine from a BPL if it is design time only

We build all our packages to the same output directory.  
The directory includes both design time and runtime packages.
Looking at the resulting BPL's is there a way to determine that a packages is Design Time only?
I want to be able to filter these out of my deployment list, as I am building with runtime packages.
In the past I have built custom lists, of the run time packages.   I am looking for away to automate this process.
We are using Delphi XE if there is a version specific answer.

A:

Use GetPackageInfo and check for pfDesignOnly in the Flags parameter.
Or, if you'd like to skip the unnecessary enumeration of contained units and required packages, have a look at PackageInfoTable in SysUtils (which is, unfortunately, hidden in the implementation section).

