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

Eliminating Patches

· 52CE 我爱测

A patch that should no longer be used can be eliminated from the patching sequence.

A patch that should no longer be used can be eliminated from the patching sequence. This prevents the patch from being applied when the target application is patched. This is different than removing a patch that is already applied to an application. For information about removing applied patches, see Removing Patches.

**Windows Installer 3.0 and later:  **

Patches that have the MsiPatchSequence table can use this table to eliminate patches from the patching sequence. A patch can eliminate patches that come before it in the patching sequence, and replace the information from those patches with its own information. Both the patch that specifies which patches to eliminate and the patches being eliminated must have a MsiPatchSequence table that contains information.

If the eliminated patches and replacement patch do not have MsiPatchSequence tables, the patch package can specify a list of patches to be eliminated from the patching sequence in its Revision Number Summary property. Windows Installer 3.0 ignores this list if either the eliminated or replacement patches have a MsiPatchSequence table.

When the patch package contains patches with sequence information in the MsiPatchSequence table and some patches without this information, Windows installer 3.0 sequences the patches in the order described in the following section: Sequencing Patches.

For example, Patch1, Patch2, and Patch3 can be three patches that do not have the MsiPatchSequence table. Patch2 can be a patch that is only applicable if Patch1 has already been applied to the application. Patch3 can be a later patch that has all the information in Patch1 and also eliminates Patch1 from the patching sequence. This means that when Patch3 is applied, Patch 2 also becomes inapplicable, because it requires Patch1. Any information in Patch2 alone does not get delivered to the application.

Windows Installer 2.0: Not supported. The only method available is to specify the list of patches to be eliminated from the patching sequence in the Revision Number Summary property.

Note:
Patch authors should use the MsiDeterminePatchSequence and MsiDetermineApplicablePatches functions to determine the sequence of patches that actually get applied to the product because the elimination of some patches can render other patches inapplicable.

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)

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

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