Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ComponentCosts Property

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.


propVal = Session.ComponentCosts

Property value


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:

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




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




IID_ISession is defined as 000C109E-0000-0000-C000-000000000046



Community Additions

© 2015 Microsoft