Sign in Join
FPDoc Onlineexperiment

Installer function

In unit fpMkUnit

Gets the current installer instance

Declaration

pascal
function Installer(InstallerClass: TInstallerClass): TCustomInstaller
 ; overload

Arguments

InstallerClass

Installer class to instantiate

Function result

Current installer object

Description

Installer returns the current installer instance or creates a new one using the specified installer class. Note that only one class can be instantiated. This function provides access to the global installer object for package management operations.

The installer instance manages the build process, package compilation, installation, and other package lifecycle operations within the fpmake system.

If no class is specified and no instance is present yet, the TFPCInstaller class is used to create the installer class.

See also

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