Sign in Join
FPDoc Onlineexperiment

TCustomInstaller.AddPackage function

Member of TCustomInstallerpublicIn unit fpMkUnit

Adds package to installer collection

Declaration

pascal
function AddPackage(const AName: string): TPackage

Arguments

AName

Name of package to add

Function result

Added package instance

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.