When a software installation that uses the Windows Installer Package fails, you enable Windows Installer logging and re-run the setup to capture the output to a log file for troubleshooting. Logging can be done using the Registry Editor, the Group Policy Editor, or the msiexec.exe command with the required parameters.
The first two methods are documented in the article How to Enable Windows Installer Logging. The third method uses the msiexec.exe command-line parameter. Here is an example:
msiexec /l*v "%temp%\verbose.log" /i "C:\Users\Ramesh\Downloads\7z465-x64.msi"
This starts the 7-Zip .msi installation (7z465-x64.msi) and records all the results, including verbose output, to a log file named verbose.log in the %TEMP% folder.
Do you find it difficult to type the entire command-line every time you need to log application setups? You can implement this in the context menu for .msi files to launch the installation with verbose logging.Read more