3

I'm often tasked to examine MSI installation logs in order to find why some installation fails. But such logs are VERY large and has hundred of strings with "error" text in them. Moreover, it's a lot of steps logged that are unclear what they are doing, and sometimes an error in operation "calculating cost" says nothing about error origins since where is no info what "calculating cost" is expected to do.

Is it a good manual available that explains all MSI actions that are performed during installation? Ideally with a short hints how they will look in log file

ivan_pozdeev
  • 353
  • 4
  • 13
grigoryvp
  • 3,415
  • 11
  • 38
  • 58
  • Preet Sangha's answer is excellent. I just want to add that it is almost impossible to debug MSI log files without knowing how the basic technology behind Windows Installer works. For system administrators I would recommend reading up on windows installer sequences: http://blogs.technet.com/b/alexshev/archive/2008/02/21/how-windows-installer-engine-installs-the-installation-package.aspx . – Stein Åsmul May 27 '11 at 21:12
  • Rob Mensching - the WIX creator provides the following advice for dealing with a log file in an easy "tool free" way: http://robmensching.com/blog/posts/2010/8/2/the-first-thing-i-do-with-an-msi-log/ – Stein Åsmul May 09 '14 at 00:47

2 Answers2

4

Not sure about a guide but this page lists a utility called WiLogUtl.exe, or the Windows Installer Verbose Log Analyzer. This page gives information about some version limitations and a workarounds with the tool. Finally this page lists some other resources that may be useful. Personally I find them extremely difficult to decode.

The last link offers this advice

Return Values After each action the Installer will record the 'return value' in the log. This is an indicator of the success or otherwise of the action. Possible values are:

Value Meaning

  • 0 Action was invoked, but did not run (not necessarily a bad thing, maybe there was nothing for it to do)
  • 1 Action was a success
  • 2 Action was cancelled by user
  • 3 An unrecoverable error has occurred
  • 4 The installation was suspended awaiting a reboot
Preet Sangha
  • 2,727
  • 1
  • 24
  • 25
2

how about a utility like View Verbose MSI Log

alt text
(source: dennisbareis.com)

at least it show the errors coloured ... it might help :)

Glorfindel
  • 1,213
  • 3
  • 15
  • 22
balexandre
  • 557
  • 2
  • 13
  • 25
  • If you haven't got this tool available, use Rob Mensching's advice: http://robmensching.com/blog/posts/2010/8/2/the-first-thing-i-do-with-an-msi-log/ – Stein Åsmul May 09 '14 at 00:48