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

PatchMetadata Table (PATCHWIZ.DLL)

· 52CE 我爱测

The PatchMetadata Table contains information about a Windows Installer patch that is required to remove a patch and that is used by Add/Remove Programs.

The PatchMetadata Table contains information about a Windows Installer patch that is required to remove a patch and that is used by Add/Remove Programs. All the properties in the PatchMetadata Table are added to the MsiPatchMetadata Table of the .msp file for a patch.

The PatchMetadata Table is required in patch creation properties files (.pcp files) that have a MinimumRequiredMsiVersion equal to 300 in the Properties Table. The table is optional if MinimumRequiredMsiVersion is not equal to 300.

The PatchMetadata Table has the following columns.

Column Type Key Nullable
Company text Y Y
Property text Y N
Value text Y

Columns

Company

The name of the company. An empty field (a Null value) indicates that this row contains one of the standard metadata properties. A company can extend the property set by adding a row to the table, and entering a company name in this field.

Property

The name of a metadata property. The AllowRemoval, ManufacturerName, TargetProductName, MoreInfoURL, DisplayName, Description, and Classification properties are required in the PatchMetadata Table . This field must contain one of the following standard metadata properties if the Company field is empty (a Null value).

Property Description
AllowRemoval An integer value that indicates whether or not the patch is an <a href="uninstallable-patches.md">Uninstallable Patch</a>. If the Value field contains a 0 (zero), the patch cannot be removed. If the Value field contains 1 (one), the patch is an Uninstallable Patch. This property is required.This property is registered and its value can be obtain by using the <a href="/windows/desktop/api/Msi/nf-msi-msigetpatchinfoexa">MsiGetPatchInfoEx</a> function.
ManufacturerName A string value that contains the name of the manufacturer of the application. This property is required.
MinorUpdateTargetRTM Indicates that the patch targets the RTM version of the product or the most recent major upgrade patch. Author this optional property in minor upgrade patches that contain sequencing information to indicate that the patch removes of all patches up to the RTM version of the product, or up to the most recent major upgrade patch. This property is available beginning with Windows Installer 3.1. Note: To require that Windows Installer 3.1 be installed to apply the patch, set the MinimumRequiredMsiVersion property to 310 in the Properties Table of the .pcp file.
TargetProductName A string value that contains the name of the application or target application suite. This property is required.
MoreInfoURL A string value that contains a URL pointing to information for this patch. This required property is registered and its value can be obtained by using the <a href="/windows/desktop/api/Msi/nf-msi-msigetpatchinfoexa">MsiGetPatchInfoEx</a> function. Beginning with Windows XP with Service Pack 2 (SP2), this value can be the support link for the patch displayed in Add/Remove Programs.
CreationTimeUTC A string value that contains the creation time of the .msp file in the form mm-dd-yy HH:MM (month-day-year hour:minute). This property is optional.
DisplayName A string value that contains the title for the patch that is suitable for public display. This property is required. This property is registered and its value can be obtain by using the <a href="/windows/desktop/api/Msi/nf-msi-msigetpatchinfoexa">MsiGetPatchInfoEx</a> function. Beginning with Windows XP with SP2, this value is the name of the patch displayed in Add/Remove Programs beginning with Windows XP with SP2.
Description A string value that contains a brief description of the patch. This property is required.
Classification A string value that contains the arbitrary category of updates as defined by the author of the patch. For example, patch authors can specify that each patch be classified as a Hotfix, Security Rollup, Critical Update, Update, Service Pack, or Update Rollup. This property is required.
OptimizedInstallMode If this property is set to 1 (one) in all the patches to be applied in a transaction, the application of the patch is optimized if possible. For information, see <a href="patch-optimization.md">Patch Optimization</a>. Available beginning with Windows Installer 3.1.

Value

Value of the metadata property. This can never be Null or an empty string. This value can be localized.

Remarks

Available beginning in Windows Installer 3.0.

All properties authored into the PatchMetadata Table are added to the MsiPatchMetadata table of the msp file. AllowRemoval, MoreInfoURL and DisplayName properties are registered and are accessible through the MsiGetPatchInfoEx.

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)

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

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