Turning logging on during installation

If you get into trouble with your installer, it may help to run it with logging turned on. To do so, install your package from a command prompt using msiexec with the arguments /l*v and the name of a file to write the log to. For example, if you had an installer called myInstaller.msi, you could use this command to write a log during the installation to a file called myLog.txt:

msiexec /i myInstaller.msi /l*v myLog.txt

Every event that occurs during installation will be recorded here. It works for uninstalls too. Simply use the /x argument instead of /i. The log can be pretty helpful, but also very verbose. If your installer fails midway through, you might try searching the log for the text return value

Get WiX: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.