ICEM12
ICEM12 验证 ModuleSequence 表中的标准作具有序列号,自定义作具有 BaseAction 和 After 值。
此 ICEM 在 Windows Installer 2.0 SDK 及更高版本中提供的 Mergemod.cub 文件中可用。 有关详细信息,请参阅 适用于 Windows Installer 开发人员的 Windows SDK 组件。
结果
ICEM12 在以下情况下发布错误:
- 它发现模块包含没有序列号 标准作。
- 它发现标准作在 ModuleAdminUISequence 表的 BaseAction 或 After 字段中输入了值,ModuleAdminExecuteSequence 表, ModuleAdvtExecuteSequence 表、ModuleInstallUISequence 表或 ModuleInstallExecuteSequence 表。
- 它发现模块包含一个 自定义作,而没有任何值输入到序列中, ModuleAdminUISequence 表的 BaseAction 或 After 字段、ModuleAdminExecuteSequence 表、ModuleAdvtExecuteSequence 表、ModuleInstallUISequence 表或 ModuleInstallExecuteSequence 表。
如果 ICEM12 找到指定了序列号的自定义作,但在 BaseAction 或 After 字段中没有值,则发布警告。
请注意,CustomAction 表中找到的所有作都被视为自定义作。 所有其他作都被视为标准作。
例
ICEM12 针对包含如下所示的数据库条目的模块发布以下错误和警告消息:
Error. Custom actions should use the BaseAction and After fields and not use the
Sequence field in the Module Sequence tables. The custom action 'Action1' uses the Sequence field
and does not use the BaseAction and After fields in the ModuleInstallExecuteSequence table.
Error. Custom actions should not leave the Sequence, BaseAction, and After fields
of the Module Sequence tables all empty. The custom action 'Action3' leaves the Sequence,
BaseAction, and After fields empty in the ModuleAdminExecuteSequence table.
Error. Standard actions should not use the BaseAction and After fields in Module
Sequence tables. The standard action 'Action2' has a values entered in the BaseAction
or After fields of the ModuleAdminExecuteSequence table.
Error. Standard actions must have a entry in the Sequence field of Module Sequence
tables. The standard action 'Action2' does not have a Sequence value in the
ModuleExecuteSequence table.
行动 | 类型 | 源 | 目标 |
---|---|---|---|
Action1 | 30 | source1 | target1 |
Action3 | 30 | source3 | target3 |
行动 | 序列 | BaseAction | 后 | 条件 |
---|---|---|---|---|
Action2 | Action1 | 1 | 真 | |
Action3 | 真 |
行动 | 序列 | BaseAction | 后 | 条件 |
---|---|---|---|---|
Action1 | 1 | 真 |
若要修复这些错误,请尝试以下作:
- 删除自定义作 Action1 的序列号,改用 BaseAction 和 After 字段。
- 在自定义作 Action3 的 Sequence、BaseAction 或 After 字段中输入值。 将 BaseAction 和 After 字段保留为空的标准作 Action2。
- 不要将“序列”字段留空标准作 Action2。
相关主题