Skip to content

TCustomInstaller.AddPackage

Adds package to installer collection

Declaration

Source position: fpmkunit.pp line 1563

public 
function TCustomInstaller.AddPackage(const AName: string) : TPackage;

Description

AddPackage creates and adds a new TPackage instance to the installer's package collection. The method returns the newly created package which can then be configured with targets, dependencies, and settings.

Each package added to the installer will be processed during the run operation according to the current run mode, whether for compilation, installation, or other operations.