MsiPatchMetadata 表MsiPatchMetadata Table

MsiPatchMetadata 表包含有关删除修补程序以及 " 添加/删除程序" 所使用的 Windows Installer 修补程序的信息。The MsiPatchMetadata Table contains information about a Windows Installer patch that is required to remove the patch and that is used by Add/Remove Programs.

如果修补程序数据库中没有此表安装的修补程序 ( .msp 文件) 无法删除,并且缺少来自 添加/删除程序 的某些信息。Patches installed without this table present in the patch database (.msp file) cannot be removed, and are missing some information from Add/Remove Programs. 该表必须位于修补程序文件的数据库中,而不是在修补程序的转换中。The table must be in the database of the patch file and not in a transform in the patch.

MsiPatchMetadata 表包含以下列。The MsiPatchMetadata Table has the following columns.

Column 类型Type Key NullableNullable
CompanyCompany 标识符Identifier YY YY
属性Property 标识符Identifier YY NN
Value 文本Text NN NN

Columns

上市公司Company

公司的名称。The name of the company. 空字段 (Null 值) 指示该行包含 Windows Installer 的一个标准元数据属性。An empty field (a Null value) indicates that the row contains one of the standard metadata properties of the Windows Installer. 有关详细信息,请参阅本主题的 "备注" 部分。For more information, see the Remarks section of this topic.

通过向表中添加行并在此字段中输入公司名称,你可以添加任何公司来扩展属性集。By adding a row to the table and entering a company name in this field, you can add any company to extend the property set.

知识产权Property

元数据属性的名称。The name of a metadata property.

负值Value

元数据属性的值。The value of the metadata property. 此值永远不能为 Null 或空字符串。This can never be Null or an empty string.

备注Remarks

在 Windows Installer 3.0 及更高版本中可用。Available in Windows Installer 3.0 and later.

MsiPatchMetadata 表中的行包含 "公司名称" 字段中的 Null 值,请参阅以下标准 Windows Installer 元数据属性之一。Rows in the MsiPatchMetadata Table that contain a Null value in the CompanyName field refer to one of the following standard Windows Installer metadata properties.

属性Property 描述Description
AllowRemovalAllowRemoval 指示修补程序是否为 可卸载修补程序。Indicates whether or not the patch is an Uninstallable Patch. 如果值字段包含 0 (零) ,则无法删除该修补程序。If the value field contains 0 (zero), the patch cannot be removed. 如果值字段包含一个 (1) ,则修补程序为可卸载修补程序。该属性已注册,可以通过使用 MsiGetPatchInfoEx 函数获取其值。If the value field contains one (1), the patch is an Uninstallable Patch.This property is registered and its value can be obtain by using the MsiGetPatchInfoEx function.
ManufacturerNameManufacturerName 应用程序的制造商的名称。Name of the manufacturer of the application.
MinorUpdateTargetRTMMinorUpdateTargetRTM 指示修补程序以产品的 RTM 版本或最新的主要升级修补程序为目标。Indicates that the patch targets the RTM version of the product or the most recent major upgrade patch. 在包含序列化信息的次要升级修补程序中创作此可选属性,以指示修补程序将所有修补程序都删除到该产品的 RTM 版本,或最新的主要升级修补程序。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. 此属性在 Windows Installer 3.1 及更高版本中可用。This property is available in Windows Installer 3.1 and later.
TargetProductNameTargetProductName 应用程序或目标应用程序套件的名称。Name of the application or target application suite.
其他MoreInfoURL 一个 URL,它提供特定于此修补程序的信息。A URL that provides information specific to this patch. 此属性已注册,可以使用 MsiGetPatchInfoEx 函数获取其值。This property is registered and its value can be obtained by using the MsiGetPatchInfoEx function. 从 Windows XP Service Pack 2 (SP2) 开始,此值可以是 " 添加/删除程序" 中显示的修补程序的支持链接。Beginning with Windows XP with Service Pack 2 (SP2), this value can be the support link for the patch displayed in Add/Remove Programs.
CreationTimeUTCCreationTimeUTC .Msp 文件的创建时间,格式为 mm-dd HH: MM (月-日-年:分钟) 。Creation time of the .msp file in the form of mm-dd-yy HH:MM (month-day-year hour:minute).
DisplayNameDisplayName 适用于公开显示的修补程序的标题。A title for the patch that is okay for public display. 此属性已注册,可以使用 MsiGetPatchInfoEx 函数获取其值。This property is registered, and its value can be obtained by using the MsiGetPatchInfoEx function. 从带 SP2 的 Windows XP 开始,此值是在 " 添加/删除程序" 中显示的修补程序的名称。Beginning with Windows XP with SP2, this value is the name of the patch that is displayed in Add/Remove Programs.
描述Description 修补程序的简短说明。Brief description of the patch.
分类Classification 一个字符串值,其中包含由修补程序的作者定义的任意类别的更新。A string value that contains the arbitrary category of updates as defined by the author of the patch. 例如,修补程序作者可以指定将每个修补程序归类为修补程序、安全汇总、关键更新、更新、Service Pack 或更新汇总。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.
OptimizeCAOptimizeCA 指示 Windows Installer 在应用修补程序时是否应跳过自定义操作。Indicates whether the Windows Installer should skip custom actions when applying the patch. 这可以减少应用修补程序所需的时间。This can reduce the time required to apply the patch. OptimizeCA 属性可以具有以下值之一:The OptimizeCA property can have one of the following values:
  • 0-不跳过任何自定义操作。0 - Do not skip any custom actions.
  • 1-Skip 属性和目录分配自定义操作。1 - Skip property and directory assignment custom actions. 自定义操作类型 35自定义操作类型 51 可以是属性和目录分配自定义操作。Custom Action Type 35 and Custom Action Type 51 can be property and directory assignment custom actions.
  • 2-跳过不属于属性或目录赋值的即时自定义操作。2 - Skip immediate custom actions that do not fall into the property or directory assignments. 直接自定义操作不包括 CustomAction 表的 Type 列中的 msidbCustomActionTypeInScript 选项。The immediate custom actions do not include msidbCustomActionTypeInScript option in the Type column of the CustomAction Table.
  • 4-跳过脚本中运行的自定义操作。4 - Skip custom actions that run within the script.
对于正在安装的所有修补程序,OptimizeCA 的值必须相同,否则不会跳过任何自定义操作。The value of OptimizeCA must be the same for all patches that are being installed or no custom actions are skipped. 例如,如果安装了两个修补程序,并且 OptimizeCA 分别设置为值1和2,则不会跳过任何自定义操作。For example, if two patches are being installed, and OptimizeCA is set to the values 1 and 2 respectively, no custom actions are skipped.
处理多个新的修补程序时,可以组合 OptimizeCA 的值。The values of OptimizeCA can be combined when processing multiple new patches. 如果所有修补程序都有1个 (包含在值中) ,则将跳过所有属性和目录分配自定义操作。If all patches have a 1 (one) included in the values, then all property and directory assignment custom actions are skipped. 如果一个修补程序的值为 3 (三个) 属性,一个修补程序的值为 1 (属性的一个) ,将跳过属性和目录分配自定义操作。If one patch has the value 3 (three)for the property, and one patch has the value 1 (one) for the property, the property and directory assignment custom actions are skipped. 但是,其他即时自定义操作会运行,因为并不会跳过所有请求的修补程序。However, the other immediate custom actions run, because not all of the patches requested are skipped.
OptimizedInstallModeOptimizedInstallMode 如果将此属性设置为1,则在事务中应用的所有修补程序中 (一个) ,则会尽可能优化修补程序的应用程序。If this property is set to 1 (one) in all the patches to be applied in a transaction, an application of the patch is optimized if possible. 有关详细信息,请参阅 修补程序优化For more information, see Patch Optimization. 从 Windows Installer 3.1 开始可用。Available beginning with Windows Installer 3.1.

验证Validation

ICE03ICE03
ICE06ICE06

在 Windows Installer 2.0 及更早版本中不受支持Not Supported in Windows Installer 2.0 and earlier