MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Validations[Next]: MSI Validation
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Building or Updating MSIs->Validations->Row Validation

Row Validation

As well as validating a completed MSI all data manipulations done via the "Row" command can be validated (see its "@METHOD" and "@VALIDATE" parameters). The "_Validation" table information is used for this.

The validation can be turned off if required using the "@Validation" parameter but I suggest that you leave it on as it takes insignificant time to perform. The parameter is mainly supplied as an escape method if you find some situation where because of row ordering or other issues you can't remove the "problem". It is also possible to filter out specific validation errors if required.

When the row update or insertion fails the failing columns names are displayed along with a reason for each failure.

Some good reasons to leave row validation on:

  1. When a record fails validation the failing record's contents is also dumped.

  2. You don't have to wait until the whole MSI is built before getting any indications of problems. You also know exactly where the problem is.

  3. If the problem would otherwise cause the MSI build to fail then the problem can be much more difficult to diagnose.

Types of Row Validation Errors Detected

Not all of the following errors will be picked up by "Row" commands depending on the value of the "@method" parameter.

Note that you can override the text with your own alternative by creating macros such as "@VALIDATE_TEXT_FOR_MISSINGDATA".


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Validations[Next]: MSI Validation


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.