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

Ordering the File Sequence in the CAB of a Multiple Language Merge Module

· 52CE 我爱测

Multiple-language merge modules, language transforms, and cabinet files must be authored such that the order of the files matches the order specified in the File table.

Multiple-language merge modules, language transforms, and cabinet files must be authored such that the order of the files in the .cab matches the installation order of files specified in the File Table, even after the application of the language transform. If the order in the module and in the .cab do not match, the merge module cannot be used.

Assign to each file in the module, a unique sequence number that is independent of its language, and then always use that sequence number for the file. Use the same sequence when building the cabinet file and authoring a language transform.

Because the Installer only installs the files listed in the File Table, the use of a global file sequence in the cabinet, File Table, and language transform enables the merge tool to skip any extra files stored in the cabinet that are not listed in the File Table. Other files may exist in the cabinet, but they must not be listed in the File Table. For example, a module installing Code.dll, English.dat, German.dat, and French.dat can use the following global file sequence order.

File Sequence
Code.Dll 1
English.Dat 2
German.Dat 3
French.Dat 4

Language transforms can then be authored to modify the File Table of the module for English, German, or French.

File Table (partial for English)

File Sequence
Code.Dll 1
English.Dat 2

File Table (partial for German)

File Sequence
Code.Dll 1
German.Dat 3

File Table (partial for French)

File Sequence
Code.Dll 1
French.Dat 4

For more information, see Authoring a Language Transform for a Multiple Language Merge Module and Authoring Merge Module File Tables.

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)

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

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