SetupData.SetPackageProperties

SetupData.SetPackageProperties ( 

string PackageName,

table  Properties )

Description

Sets the properties of a given package.

Tip: If using the Select Packages screen, there are also DlgSelectPackages actions to manipulate the properties of the categories containing the packages.

Parameters

PackageName

(string) The name of the package whose properties you want to set.

Properties

(table) A table containing the properties you want to set, indexed by the following keys:

KEY

TYPE

DESCRIPTION

AdditionalDiskSpace

number

The value in KB that you want to add to the package size calculation. This value can also be defined at design time using the Additional disk space field of the package's properties dialog. You can set this property using tb.AdditionalDiskSpace = 590 or {AdditionalDiskSpace=590}.

DisplayName

string

The localized display name you want the package to have. You can set this property using tb.DisplayName = "New Name" or {DisplayName="New Name"}.

Description

string

The localized description you want the package to have. You can set this property using tb.Description = "New Description" or {Description="New Description"}.

Install

boolean

Set the package to be installed. If true is passed, the package will be set to be installed. If false is passed it will not. You can set this property using tb.Install = true or {Install=true}.

Enabled

boolean

Enable the package if shown on the "Select Packages" screen. If true is passed, it will be enabled. If false is passed, it will not. You can set this property using tb.Enabled = true or {Enabled=true}.

Note: Only the properties you want to change need to be set.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions