SetupData.GetPackageList

table SetupData.GetPackageList ( 

 )

Example 1

packages = SetupData.GetPackageList();

Gets the packages available in the current install and stores them in table 'packages'.

Example 2

tPackageList = SetupData.GetPackageList();

if tPackageList then
    sMessage = "Packages available in this install:" .. "\r\n";
    for nIndex, sName in pairs(tPackageList) do
        sMessage = sMessage .. sName .. "\r\n";
    end
else
    sMessage = "There are no packages available in this install.";
end

Dialog.Message("Packages Available", sMessage);

Gets the packages available in the current install, stores them in table 'tPackageList', and outputs them to the user.  If there are no packages available in the current install, the user is informed.

See also:  Related Actions