Session.ComponentCosts property

The ComponentCosts property of the Session object returns a RecordList object enumerating the disk space per drive required to install a component. This information is used by the user interface to display the disk space required for all drives. The returned disk space costs are in multiples of 512 bytes.

The ComponentCosts property should only be used after the installer has completed file costing and after the CostFinalize action.

This property is read-only.

Syntax

propVal = Session.ComponentCosts

Property value

Remarks

To obtain the total cost, add the costs for all components plus the installer engine cost (Component = "").

ComponentCosts returns a RecordList object. Each record in the returned RecordList object has the following fields:

Field Description
1 Volume/Drive name
2 Final disk space cost in multiples of 512 bytes.
3 Temporary disk space cost in multiples of 512 bytes.

 

Requirements

Requirement Value
Version
Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP
DLL
Msi.dll
IID
IID_ISession is defined as 000C109E-0000-0000-C000-000000000046