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

Applying Small Updates by Patching the Local Installation of the Product

· 52CE 我爱测

A small update can be applied to an application by patching the local installation of the application.

A small update can be applied to an application by patching the local installation of the application.

To apply a small update patch to a local installation of the product

  1. Launch the installation of the patch from the command line or by using an executable. To launch from the command line, use msiexec /p patch.msp REINSTALL=[Feature list] REINSTALLMODE=omus. To launch from an executable, call MsiApplyPatch or the ApplyPatch Method and provide the same command line arguments.
  2. When patching a client installation, the installer ignores the installation source and proceeds to patch the files that are already installed on the user's computer.
  3. The installer changes any patched components marked as run-from-source to run-locally. Users are unable to run these components from the source as long as the patch remains on the computer.
  4. The installer adds any transforms used to update the .msi file or adds patch-specific information to the user's profile.
  5. The installer caches the .msi file on the user's computer so that it can perform installation-on-demand, reinstall, and repair of the application. After a patch is applied to a standalone installation, the installer references two or more source lists to external files: one for the original source and one for each patch that has been applied.

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)

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

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