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

ICE Message Guidelines

· 52CE 我爱测

ICE custom actions communicate by calling MsiProcessMessage and posting an INSTALLMESSAGE_USER type message.

ICE custom actions communicate by calling MsiProcessMessage and posting an INSTALLMESSAGE_USER type message.

When authoring a message string for an ICE custom action, format the string as follows.

Name of ICE <tab> Message Type <tab> Description <tab> Help URL or location <tab> Table Name <tab> Column Name <tab> Primary Key <tab> Primary Key <tab> Primary Key . . . (repeat for as many primary keys as needed)

The first three fields of the string are required in every message.

The Message Type field specifies whether the ICE reports a Failure, Error, Warning, or Informational message.

Value Message type
0 Failure message reporting the failure of the ICE custom action.
1 Error message reporting database authoring that cause incorrect behavior.
2 Warning message reporting database authoring that causes incorrect behavior in certain cases. Warnings can also report unexpected side-effects of database authoring.
3 Informational message.

If help is not available, the Help URL field may be the empty string.

Error and Warning messages should provide the Table Name, Column Name, and Primary Key fields. If any of these fields are omitted, all of the fields following the first blank field must be left out of the message. For example, a table name is provided without a column name and primary keys or a table name and a column name is provided with no primary keys. However a column name and primary keys cannot be used without a table name. Multiple primary keys may be listed until all the primary keys in that table have been given values.

Examples

The first message illustrated by the Sample ICE in C++:

"ICE01\t3\tCreated 04/29/1998 by <insert author's name here>."

The second message posted by the sample ICE:

"ICE01\t3\tLast modified 05/06/1999 by <insert author's name here>."

The third message posted by the sample ICE.

"ICE01\t3\tSimple ICE to illustrating the ICE concept".

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)

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

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