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

Word Count Summary property

· 52CE 我爱测

In the summary information of an installation package, the Word Count Summary property indicates the type of source file image.

In the summary information of an installation package, the Word Count Summary property indicates the type of source file image. If this property is not present, it defaults to zero (0).

This property is a bit field. New bits may be added in the future. At present the following bits are available.

Bit Value Description
Bit 0 0 1 0: Long file names. 1: Short file names.
Bit 1 0 2 0: Source is uncompressed. 2: Source is compressed.
Bit 2 0 4 0: Source is original media. 4: Source is an administrative image created by an administrative installation.
Bit 3 0 8 0: Elevated privileges can be required to install this package. 8: Elevated privileges are not required to install this package. Available starting with Windows Installer version 4.0 and Windows Vista or Windows Server 2008.

These are combined to give the Word Count Summary property one of the following values that indicate a type of source file image.

Value Type
0 Original source using long file names. Matches tree in Directory Table. Elevated privileges can be required to install this package.
1 Original source using short file names. Matches tree in Directory Table. Elevated privileges can be required to install this package.
2 Compressed source files using long file names. Matches cabinets and files in the Media Table. Elevated privileges can be required to install this package.
3 Compressed source files using short file names. Matches cabinets and files in the Media Table. Elevated privileges can be required to install this package.
4 Administrative image using long file names. Matches tree in Directory Table. Elevated privileges can be required to install this package.
5 Administrative image using short file names. Matches tree in Directory Table. Elevated privileges can be required to install this package.
8 Elevated privileges are not required to install this package. Use this value when Authoring Packages without the UAC Dialog Box.Available starting with Windows Installer version 4.0 and Windows Vista or Windows Server 2008.

Note that if the package is marked as compressed (Bit 1 is set), the Windows Installer only installs files located at the root of the source. In this case, even files marked as uncompressed in the File Table must be located at the root to be installed. To specify a source image that has both a cabinet file (compressed files) and uncompressed files that match the tree in the Directory Table, mark the package as uncompressed by leaving Bit 1 unset (value=0) in the Word Count Summary property and set msidbFileAttributesCompressed (value=16384) in the Attributes column of the File Table for each file in the cabinet.

In a transform, the Word Count Summary property should be Null.

In the summary information stream of a patch package, the Word Count Summary property indicates the minimum Windows Installer version that is required to install the patch.

Value Meaning
1 The default value, which indicates that MSPATCH was used to create the patch.
2 Requires at minimum Windows Installer 1.2 for the patch to be applied. A patch with a Word Count of "2" fails immediately if used with a Windows Installer version earlier than 1.2.
3 Requires at minimum Windows Installer 2.0 for the patch to be applied. A patch with a Word Count of "3" fails immediately if used with a Windows Installer version earlier than 2.0.
4 Requires at minimum Windows Installer 3.0 for the patch to be applied. A patch with a Word Count of "4" fails if used with a Windows Installer version earlier than 3.0.
5 Requires at minimum Windows Installer 3.1 for the patch to be applied.

This summary property is REQUIRED.

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

See also

Summary Property Descriptions

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)

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

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