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]
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.