Sign in Join
FPDoc Onlineexperiment

TCustomInstaller.AddPackageVariant function

Member of TCustomInstallerpublicIn unit fpMkUnit

Adds package variant to installer

Declaration

pascal
function AddPackageVariant(AName: string; AIsInheritable: Boolean; 
 AutoAddToPackage: Boolean=False)
: TPackageVariants

Arguments

AName

Name of package variant to add

AIsInheritable

Whether package variant can be inherited

AutoAddToPackage

Whether to automatically add to package

Function result

Added package variant instance

Description

AddPackageVariant creates and adds a package variant that provides alternative build configurations. Package variants enable different compilation options, target platforms, or feature sets within the same package.

Variants can be inheritable, allowing derived packages to inherit variant settings, and can be automatically added to packages for convenient configuration management.

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