Session.ComponentCosts Property

Windows Installer

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.

Syntax

Script
Session.ComponentCosts

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

VersionWindows Installer 5.0 on 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, Windows XP, and Windows 2000
DLLMsi.dll
IIDIID_ISession is defined as 000C109E-0000-0000-C000-000000000046

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.