The below parameters can be used together (in any combination) to create a log file during the installation of an MSI package with a bit more information and control. In this case, logging takes place specifically during the installation process.

msiexec /L[i][w][e][a][r][u][c][m][p][v][+][!] [C:/location/logfile.txt]

Option Parameters Meaning
/L i|w|e|a|r|u|c|m|p|v|+|!
/L – Specifies the path to the log file
i – Logs status messages
w – Logs nonfatal warnings
e – Logs all error messages
a – Logs startup of actions
r – Logs action-specific records
u – Logs user requests
c – Logs initial user interface parameters
m – Logs out-of-memory
p – Logs terminal properties
v – Logs verbose output. To use v, specify /L*v
– Appends to existing file
! – Flushes each line to the log
* – Logs all information except for the v option. This is a wildcard.
logfile.txt – Name and path of the text log file.


  • Windows Installer command-line options are not case-sensitive
  • To include the v option in a log file using the wildcard flag, use /L*v
  • Windows Installer log file options can also be used with the uninstall and repair processes


To log an installation process that contains the information related to the status, out-of-memory, and error messages. The command line would like the following line:

msiexec /i Example.msi /Lime logfile.txt

See Microsoft’s article on Msiexec Command-Line Options for further parameter combinations and explanations such as repairing installations and uninstalling.

To learn how to log the execution of a batch script, click here.