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

Msival2.exe

· 52CE 我爱测

Msival2.exe is a command line utility that can run a suite of Internal Consistency Evaluators - ICEs.

Msival2.exe is a command line utility that can run a suite of Internal Consistency Evaluators - ICEs.

This tool is only available in the Windows SDK Components for Windows Installer Developers.

For more information about ICEs and the CUB file, see Using Internal Consistency Evaluators.

Syntax

Msival2 {database} {CUB file} [-f] [-l {logfile}] [-i {ICE Id}[:{ICE Id}...]]

Arguments

{database}

The Windows Installer database (.msi file) to validate.

{CUB file}

A .cub file is a standard Windows Installer database that contains only ICEs and their required tables, used to store and provide access to ICE custom actions. For more information, see Building an ICE Database.

{ICE Id}

An Internal Consistency Evaluator (ICE) is a custom action that scans the database for entries that are valid individually but may cause incorrect behavior in the context of the whole database. For more information, see Internal Consistency Evaluators - ICEs. For a list of predefined ICEs, see ICE Reference.

Command Line Options

Msival2.exe uses the following case-insensitive command line options. A slash delimiter may also be used in place of a dash.

Option Description
-f Filter out all informational messages from the displayed results. All other types of messages are displayed.
-i Run only the ICEs listed on the command line in the order specified. Each ICE custom action should be listed as it appears in the CustomAction table of the CUB file. If this option is omitted, the tool runs the default set of ICEs specified by the author of the CUB file.
-l Write results to the specified file. The file must not already exist. If the file exists, it is not overwritten.

Example

The following example validates the database mypackage.msi using the ICE database darice.cub, running only ICE01, ICE02, and ICE03, and writing the results to validation.log:

msival2.exe mypackage.msi darice.cub -i ICE01:ICE02:ICE03 -l validation.log

Related topics

Windows Installer Development Tools

Internal Consistency Evaluators - ICEs

Released Versions, Tools, and Redistributables

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 03/18/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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