Friday, 9 November 2012

Window Installer Logging\MSI logging


Ways to Enable MSI logging:


Command Line:

msiexec sampleapp.msi /l*v %temp%\sampleapp.log

Registry method:


Execute Regedit.exe and Go to the registry hive
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
And add
Reg_SZ: Logging
Value: voicewarmupx

Group Policy method:

gpedit.msc-->Computer Configuration-->Administrative Templates-->Windows Components-->Windows Installer
Double-click Logging, and then click Enabled.

MsiLogging and MsiLogFileLocation properties:

For clear information about these properties refer the link MsiLogging



v - Verbose output
o - Out-of-disk-space messages
i - Status messages
c - Initial UI parameters
e - All error messages
w - Non-fatal warnings
a - Start up of actions
r - Action-specific records
m - Out-of-memory or fatal exit information
u - User requests
p - Terminal properties
+ - Append to existing file
! - Flush each line to the log
x - Extra debugging information

Note: "*" - Wildcard, log all information except for the v and the x option.
To include the v and the x option, specify "/l*vx"


No comments:

Post a Comment