Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create an MSI log file

I have been trying to create a log file for an issue with our installer with the following commands:

msiexec /i "installer.msi" /l*v "log.log" msiexec /i "installer.msi" /l*v msiexec /l*v /i "installer.msi" msiexec /l*v "log.log" /i "installer.msi" 

and several other variations of the command, but it always pops up the window that states what command line parameters are valid for msiexec. What is the correct way to have the msi file create a log? I have windows installer 4.5.

like image 646
Bender the Greatest Avatar asked Aug 19 '11 18:08

Bender the Greatest


People also ask

How do I get MSI logs?

Double-click Logging, and then click Enabled. In the Logging box, enter the options you want to log. The log file, Msi. log, appears in the Temp folder of the system volume.

How do I create an MSI file from a folder?

In order to create MSI package from your project, navigate to the Package -> MSI tab, update Application Details like name, publisher, version and click Build MSI. Click Go to…, located next to the MSI file name field, to open the package containing folder in Windows Explorer.

How do I enable verbose logging on MSI?

Run the command ”msiexec /i SafeSend. msi /qn REBOOT=ReallySuppress /L*V example. log” in order to get a verbose log file from the Windows Installer.


2 Answers

The first and the last command lines are correct:

msiexec /i "installer.msi" /l*v "log.log" msiexec /l*v "log.log" /i "installer.msi" 

And you can drop quotes in this particular case.

like image 89
Alexey Ivanov Avatar answered Nov 10 '22 11:11

Alexey Ivanov


If you are using Visual Studio 2008, use capital "/L" for the log option. Lower-case "/l" is ignored.

msiexec /i "installer.msi" /L*v "log.log" 

This appears to have been fixed in later versions of msiexec.

like image 33
Mark Lakata Avatar answered Nov 10 '22 12:11

Mark Lakata