Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TCustomInstaller.AddPackage

Adds package to installer collection

Declaration

Source position: fpmkunit.pp line 1539

public function TCustomInstaller.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.


Documentation generated on: Dec 15 2025