Monday, April 04, 2005

Logging Windows Installer Actions

Windows Installer can generate a verbose log file, and then you can analyze the verbose log file looking for the source of the error. A helpful utility for analyzing verbose log files is the WILogUtl.exe tool provided in the Windows Installer SDK. Logging can be enabled via Windows Installer logging policy or by appending "/L*v path to logfile" to your MSIExec command line. To generate a detailed verbose log file through policy, use the following registry key: • HKLM\Software\Policies\Microsoft\Windows\Installer • Set: Logging = REG_SZ voicewarmup • Set: Debug = REG_DWORD 0x7 Log files generated through the policy key will be of the form msiXXXXX.log in the user's %temp% folder. Note: Logging through the command line overrides any logging policy settings. The following MSDN site has a lot more info about Windows Installers. Frequently Asked Questions About Windows Installer

No comments: