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

DuplicateFiles Action

· 52CE 我爱测

The DuplicateFiles action duplicates files installed by the InstallFiles action. The duplicate files can be copied to the same directory with a different name or to a different directory with the original name.

The DuplicateFiles action duplicates files installed by the InstallFiles action. The duplicate files can be copied to the same directory with a different name or to a different directory with the original name.

Sequence Restrictions

The DuplicateFiles action must come after the InstallFiles action. The DuplicateFiles Action must also come after the PatchFiles action to prevent duplicating the unpatched version of the file.

ActionData Messages

Field Description of action data
[1] Identifier of duplicated file.
[6] Size of duplicated file.
[9] Identifier of directory holding duplicated file.

Remarks

The DuplicateFiles action processes a DuplicateFile table entry only if the component linked to that entry is being installed locally. For more information, see Component table.

The string in the DestFolder field is a property name whose value is expected to resolve to a fully qualified path. This property can either be any of the directory entries in the Directory table, any pre-defined folder property (CommonFilesFolder, for example), or a property set by any entry in the AppSearch table. If the DestFolder property does not evaluate to a valid path the DuplicateFiles action does nothing for that entry.

If the name of the destination file in the DestName column of the DuplicateFile table is left blank, the destination file name will be the same as the original file name.

Files installed by the DuplicateFiles action are removed by the RemoveDuplicateFiles action when appropriate.

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)

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

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