title: Can't load package %s error while installing a package
body: <p>I'm testing on Delphi 2007 and my groupproject is composed by 2 packages.</p>
  
  <p><a href="https://i.stack.imgur.com/Mk7zS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mk7zS.png" alt="enter image description here"></a></p>
  
  <p><strong>PackageRun.bpl</strong></p>
  
  <p>It's marked as "runtime only" and contains a unit named "uMyTestRun.pas" in which is defined an empty TFrame descendant:</p>
  
  <pre><code>unit uMyTestRun;
  
  interface
  
  uses
    Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 
    Dialogs;
  
  type
    TMyTest = class(TFrame)
    private
      { Private declarations }
    public
      { Public declarations }
    end;
  
  implementation
  
  {$R *.dfm}
  
  end.
  </code></pre>
  
  <p><strong>PackageDes.bpl</strong></p>
  
  <p>It requires PackageRun.bpl, it's marked as "designtime only" and contains a unit named "uMyTestDes.pas" in which I wrote the following code:</p>
  
  <pre><code>unit uMyTestDes;
  
  interface
  
  uses
    Classes,
    uMyTestRun;
  
  procedure Register;
  
  implementation
  
  procedure Register;
  begin
    RegisterComponents('MyComponents', [TMyTest]);
  end;
  
  end.
  </code></pre>
  
  <p>Output directories of both packages are in Library paths (Inside there are bpl, dcp and dcu).</p>
  
  <hr>
  
  <p>Trying to install PackageDes.bpl (Component, Install Packages..., Add...), I'm getting the following error:</p>
  
  <blockquote>
    <p>Can't load package C:\&lt;...>\PackageDes.bpl. Impossibile trovare il
    modulo specificato.</p>
  </blockquote>
  
  <p>The last part of the message is in my OS's language, in english it should be something like "Can't find specified module". (My OS is Windows 10 Pro 64bit).</p>
  
  <p>PackageDes.bpl is exactly in the same path shown in the error message (C:\&lt;...>\PackageDes.bpl).
  After some tests, I found that the error disappear by removing the following line from uMyTestDes.pas unit:</p>
  
  <pre><code>RegisterComponents('MyComponents', [TMyTest]);
  </code></pre>
  
  <p>Is there something wrong in my code/projects/environment?</p>