Skip to content

TCustomInstaller

Base class for package installers

Declaration

Source position: fpmkunit.pp line 1523

type

  TCustomInstaller = class(TComponent)
  public
    constructor Create;
    destructor destroy;
    function AddPackage : TPackage;
    function AddPackageVariant : TPackageVariants;
    function AddPackageFromDir : TPackage;
    function Run : Boolean;
    property FPMakeOptionsString: string; {r}
    property BuildEngine: TBuildEngine; {r}
    property Packages: TPackages; {r}
    property RunMode: TRunMode; {r}
    property ListMode: Boolean; {r}
    property NotifyEventCollection: TNotifyEventCollection; {r}
  end;

Description

TCustomInstaller is the base class for implementing package installation systems. It provides the framework for managing packages, coordinating with the build engine, and handling different installation modes.

The installer manages a collection of packages, provides access to the build engine, and supports different run modes including compilation, installation, cleaning, and archiving. It serves as the bridge between the command-line interface and the build system.

Properties

Member Visibility Description
BuildEngine read only public Build engine instance used for compilation and installation
FPMakeOptionsString read only public String representation of FPMake options
ListMode read only public Mode for listing package information
NotifyEventCollection read only public Collection of notification event handlers
Packages read only public Collection of packages managed by this installer
RunMode read only public Current operation mode of the installer
See all Properties

Methods

Member Visibility Description
AddPackage public Adds package to installer collection
AddPackageFromDir public
AddPackageVariant public Adds package variant to installer
Create public Creates a new installer instance
destroy public Destroys installer instance and frees resources
Run public Executes the installer with the current configuration
See all Methods

See also

Name Description
TBuildEngine Main build engine for compiling and installing packages
TPackage Central class for package management and building
TPackages Collection of packages
TRunMode Build system execution modes