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

ICE32

· 52CE 我爱测

ICE32 validates that keys and foreign keys in the .msi file are of the same size and column definition types.

ICE32 validates that keys and foreign keys in the .msi file are of the same size and column definition types. This ICE custom action makes the comparison using the _Validation table and using the definition types that are returned by MsiViewGetColumnInfo. For more information, see Column Definition Format.

Result

ICE32 posts errors if the .msi file contains any foreign keys to keys of a different column length or column data type.

Example

ICE32 posts two errors for the example shown:

  • There is a foreign key and key defined that differ in size.
  • There is a foreign key and key defined that differ in their definition type.

_Validation Table (partial)

Table Column KeyTable KeyColumn
File Version File 1
Flap Column8 Flap 1

Column Definitions (partial)

Table Column Type Size
File File s 72
File Version S 32
Flap Column1 i 2
Flap Column8 S 32

The Version column of the File table can be a foreign key to another file in the File table. This occurs with companion files. However, the Version column only allows a string length 32, whereas the File column allows a string length 72. To fix this error change the string lengths to match.

There is a foreign key and key defined that differ in their definition types. Column8 of the Flap Table is listed as a foreign key to Column1. Column8 is a string column and Column1 is an integer column. The foreign key and key pairs must be defined so that their data types match.

Related topics

ICE Reference

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)

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

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