大网数据广告活动
安装更新与部署

ReserveCost Table

· 52CE 我爱测

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

The ReserveCost table is an optional table that allows the author to reserve an amount of disk space in any directory that depends 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 N
ReserveFolder Identifier N Y
ReserveLocal DoubleInteger N N
ReserveSource DoubleInteger N N

Columns

ReserveKey

Primary key that uniquely identifies a ReserveCost table entry.

Component_

External key to column one of the Component table. Reserves a specified amount of space if this component is to be installed.

ReserveFolder

This column contains the name of a property that is the full path to the destination directory. This property name is typically the name of a directory in the Directory table or the name of a property set obtained using the Appsearch action. This adds the amount of disk space specified in ReserveLocal or ReserveSource to the volume cost of the device containing the directory.

ReserveLocal

The number of bytes of disk space to reserve if the linked component is installed to run locally.

ReserveSource

The number of bytes of disk space to reserve if the linked component is installed to run from source.

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.

You can use the ReserveCost table to enable custom actions to specify an approximate cost for any files, registry entries, or other items that the custom action might install. Custom actions that add entries to the ReserveCost table should be sequenced between the CostInitialize and FileCost actions. This is necessary for the FileCost action to correctly initialize the costing of all components affected by entries in the ReserveCost table.

Validation

ICE03
ICE06
ICE32

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。