Editja

Ixxerja permezz ta’


Msival2.exe

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

Windows Installer Development Tools

Internal Consistency Evaluators - ICEs

Released Versions, Tools, and Redistributables