Wiki

Clone wiki

delphipi / Configuration and Installation

Configuration and Installation

The easiest way to use DelphiPI:

First of all do not install DelphiPI yet, but create a folder structure similar like this first:

..\components
   |
   |--- ...
   |--- ...
   |--- packages
   |    |___my first package
   |    |___my second package
   |  
   |--- source
   |    |___my first source
   |    |___my second source
   |
   |--- win32
   |--- win64

In every package folder create a runonly and/or a designonly package (or multiple).

Example runonly in ..\components\packages\my first package:

#!delphi

package_one_runonly;

{$R *.res}
{$DEBUGINFO OFF}
...
{$RUNONLY}
{$IMPLICITBUILD ON}

requires
  rtl;

contains
  my_component in '..\..\source\my first source\my_component.pas';

end.

Example designonly in ..\components\packages\my first package:

#!delphi

package_one_designonly;

{$R *.res}
{$DEBUGINFO OFF}
...
{$DESIGNONLY}
{$IMPLICITBUILD ON}

requires
  vcl,
  designide,
  package_one_runonly;

contains
  my_source_regfile in '..\..\source\my first source\my_source_regfile.pas';

end.

Install DelphiPI

Install DelphiPI in the just created components folder. In this folder you will see DelphiPI.exe, DelphiPIConsole.exe and a Sample.script.

Start DelphiPI

Select the folder where your packages (.dpk) reside. In this example it would be packages*.

(There is no need to fill the whole folder structure like c:\..\components\packages. DelphiPI will translate the relative path into a absolute path internally.)

Select the desired Delphi version if you have multiple versions installed.

Specify a pattern that matches for your Delphi installation. If you don't want to use a pattern just leave it as *.dpk.

...click next...

The BPL output folder and the DCP output folder are already filled based on your selected Delphi version.

Select the DCU output folder. In this example it would be win32. (There is no need to fill the whole folder structure)

If your Delphi version support x64 it will automatically compiles the .dcu for x64 in win64*.

...click next...

Now you will see your packages in a tree layout.

...click compile...

Last step

If your packages are compiled successfully you can save this setup in a script file.

Please use DelphiPI.script as a filename.

The next time you start DelphiPI it will automatically load this script file and the only thing you have to do is pressing the compile button.

Updated