Delphi: Can't load package
Posted on 2016-07-01
460 Views
Last Modified: 2016-07-06
I have just started using Delphi 10.1 Berlin on a new workstation and am gradually migrating my own packages and utilities from my soon-to-be-retired Delphi 10 Seattle PC.
Most of my packages have compiled and installed just fine, but two of them compile and then refuse to install. No changes have been made to their source code since being copied from the Delphi 10 machine.
The error I get when attempting to install is rather confusing:
"Can't load package MyPackageName.bpl. The specified module could not be found."
A few seconds before clicking on Install in the project's context menu, Delphi compiled the package and created MyPackageName.bpl, so I presume this cannot be the subject of the statement "The specified module could not be found", can it?
Delphi has just created the BPL file and a quick look in Windows Explorer shows it is in the expected location. So, what is the "specified module"? How can I find out what it is that is missing?
I get exactly the same error if I attempt to use "Install Packages..." from the Component menu.