SetupData.SetPackageProperties

SetupData.SetPackageProperties ( 

string PackageName,

table  Properties )

Example 1

tProp = SetupData.GetPackageProperties("Default");

Gets the properties of package "Default" and stores them in table "tProp."

Example 2

tProp = SetupData.GetPackageProperties("Default");

tProp.Install = not tProp.Install;

SetupData.SetPackageProperties("Default", tProp);

Gets the properties of package "Default" and stores them in table "tProp."  The value of tProp.Install is then toggled (from true to false, or false to true), and the Package properties are set to the new value.

Example 3

sOSName = System.GetOSName();
if sOSName == "Windows XP" then
    SetupData.SetPackageProperties("XP_Drivers", {Install=true});
end

Sets the package "XP_Drivers" install flag to true, including this package in the default install, if the current operating system is Windows XP.

See also:  Related Actions