Skip to content

TCustomInstaller.AddPackageVariant

Adds package variant to installer

Declaration

Source position: fpmkunit.pp line 1564

public 
function TCustomInstaller.AddPackageVariant(AName: string; 
                                           AIsInheritable: Boolean; 
                                           AutoAddToPackage: Boolean=False)
                                            : TPackageVariants;

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.