ReserveCost Table

[This is preliminary documentation and subject to change.]

The ReserveCost table is an optional table that allows the author to reserve a specified amount of disk space in any directory, depending on the installation state of a component.

The ReserveCost table has the following columns.

Column Type Key Nullable
ReserveKey Identifier Y N
Component_ Identifier N
ReserveFolder Identifier Y
ReserveLocal DoubleInteger Y
ReserveSource DoubleInteger Y

Columns

ReserveKey
Primary key that uniquely identifies a particular ReserveCost table entry.
Component_
Reserve a specified amount of space if this component is to be installed.

External key to column one of the Component Table.

ReserveFolder
This column contains the name of a property that is the full path to the destination directory. This property name will typically be the name of a directory in the Directory table or the name of a property set obtained using the Appsearch action. This will add the amount of disk space specified in ReserveLocal or ReserveSource to the volume cost of the device containing the directory.
ReserveLocal
Disk space to reserve if the linked component is installed locally.
ReserveSource
Disk space to reserve if the linked component is installed to run from the source location.

Remarks

Reserving cost in this way could be useful for authors who want to ensure that a minimum amount of disk space will be available after the installation is completed. For example, this disk space might be reserved for user documents or for application files (such as index files) that are created only after the application is started following installation. The ReserveCost table also allows custom actions to specify an approximate cost for any files, registry entries, or other items that the custom action might install.