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

Installing Multiple Patches

· 52CE 我爱测

Beginning with Windows Installer 3.0, multiple patches can be applied to a product in a constant order, regardless of the order that the patches are provided to the system.

Beginning with Windows Installer 3.0, multiple patches can be applied to a product in a constant order, regardless of the order that the patches are provided to the system.

Windows Installer 2.0: Not supported. Windows Installer versions earlier than version 3.0 always install patches in the order that they are provided to the system.

Windows Installer 3.0 and later: The installer can use the information provided in the MsiPatchSequence table to determine which patches are applicable to the Windows Installer package and in which order the patches should be applied. Applications can use the MsiDetermineApplicablePatches and MsiDeterminePatchSequence functions.

The MsiDetermineApplicablePatches function determines which patches apply to the Windows Installer package and in what sequence. The function can account for superseded or obsolete patches. This function does not account for products or patches that are installed on the system that are not specified in the set.

The MsiDeterminePatchSequence Sequence function can determine the best sequence of application for the patches to a specified installed product. This function accounts for patches that have already been applied to the product, and accounts for obsolete and superseded patches.

When the patch package does not have a MsiPatchSequence table, the installer always applies the patches in the order that they are provide to the system.

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

A Windows Installer package can install no more than 127 patches when installing or updating an application. When many updates are necessary, they should be combined and previous obsolete patches should be eliminated from the patching sequence.

A patch that should not 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 has already been applied to an application. For more information about eliminating patches from the patching sequence, see Eliminating Patches. For information about removing applied patches, see Removing Patches.

For an example of how Windows Installer applies multiple patches when all have MsiPatchSequence tables, see the Multiple Patching Example.

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)

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

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