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

TargetImages Table (Patchwiz.dll)

· 52CE 我爱测

The TargetImages table contains information about the target images of the product. A Windows Installer patch package updates a target image into an upgraded image.

The TargetImages table contains information about the target images of the product. A Windows Installer patch package updates a target image into an upgraded image.

A TargetImages table containing at least one record is required in every patch creation database (.pcp file). This table is used by the UiCreatePatchPackage function.

The TargetImages table has the following columns.

Column Type Key Nullable
Target text Y N
MsiPath text N
SymbolPaths text Y
Upgraded text N
Order integer N
ProductValidateFlags text Y
IgnoreMissingSrcFiles integer N

Columns

Target

Identifier for a target image. The patch package updates the target image specified in this column to the upgraded image specified in the Upgraded column. There are one or more target images for each upgraded image. The target image must be a fully uncompressed setup image of the product, such as an administrative image or an uncompressed setup image on a CD-ROM. Note that the UiCreatePatchPackageEx function does not generate binary patches for files in cabinets. The value in this field is used with the value in the Upgraded field to generate the names of the transforms that the installer adds to the patch package.

MsiPath

This field specifies the full path, including the file name, to the location of the .msi file for the target image. This is the location of the source files for the target image.

SymbolPaths

A semicolon delimited list of folders that are to be searched for symbol files that may be used to optimize the generation of the binary patch. Note that the subdirectories of folders specified in this field are not searched. An optimized binary patch may be smaller. Microsoft Visual C++ must be installed on the computer generating the patch and used to create the symbol files. This field is optional, and the installer creates a binary patch even if no symbol files are specified or if the symbol files become unavailable to Patchwiz.dll.

Upgraded

Foreign key to the Upgraded column of the UpgradedImages table. The UiCreatePatchPackageEx function ignores any upgraded image that is not referenced by at least one record of the TargetImages table.

Order

Relative order of the target image. Because multiple targets can be patched to an upgraded image, the Order field provides a means to sequence the transforms in the patch transforms list. Commonly, the order is from oldest to newest image.

ProductValidateFlags

The ProductValidateFlags field is used to specify product checking to avoid applying irrelevant transforms. The value entered in this field must be an 8-digit hex integer and one of the valid values for the iValidation parameter of the MsiCreateTransformSummaryInfo function. The default value is 0x00000922 which equals MSITRANSFORM_VALIDATE_UPDATEVERSION + MSITRANSFORM_VALIDATE_NEWEQUALBASEVERSION + MSITRANSFORM_VALIDATE_UPGRADECODE + MSITRANSFORM_VALIDATE_PRODUCT.

IgnoreMissingSrcFiles

If this field is set to a nonzero value, files missing from the target image are ignored by the installer and left unchanged during patching. This enables patches to be made without requiring the entire image; only the changed files of the product and the .msi file are required. This may reduce the time required to generate the patch.

Note:
Do not use the IgnoreMissingSrcFiles value with TrustMsi set to 1 in the Properties Table.

Remarks

This table accepts environment variables as paths beginning with version 4.0 of Patchwiz.dll.

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)

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

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