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

Patch Information Caching (Patchwiz.dll)

· 52CE 我爱测

Generating a new patch may require significant time.

Generating a new patch may require significant time. After you have generated a patch using Patchwiz.dll, you may need to change the update image again and generate another patch. Patch information caching can reduce the time required to generate subsequent patches by reusing existing patches. For example, the time required to create service packs can be reduced by using the binary patches generated from previous patches. Patchwiz.dll can use PATCH_CACHE_DIR to find an existing binary patch and add it to the service pack's cabinet without having to re-create the binary patch.

Patch information caching requires the use of Patchwiz.dll. To activate patch caching, set the PATCH_CACHE_ENABLED and PATCH_CACHE_DIR properties in the Properties Table (Patchwiz.dll) of the patch creation properties file (.pcp file). Patchwiz stores all patch creation information in the folder identified by the PATCH_CACHE_DIR property and creates this folder if necessary. The next time you attempt to create a patch, Patchwiz checks this folder to see whether the files to be compared match the files in the cache. If the files match, Patchwiz uses the cached information rather than regenerating the binary patch for the file. If the files do not match, or if the information is missing from the cache, Patchwiz generates the patch for the file.

To use patch information caching, the folder specified by PATCH_CACHE_DIR must be preserved after creating a .msp file. If the folder is deleted, PatchWiz has to re-generate binary patches for subsequent .msp files. For more information about preserving information in selected regions of a target file see Patching Selected Regions of a File.

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)

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

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