bidsi01

DLP Installs and upgrades using Windows Installer - MSI logging

Discussion created by bidsi01 Employee on Feb 14, 2012
Latest reply on Feb 15, 2012 by Chris_Hackett
CA DLP Tuesday Tip for 14 February 2012 published by Mark Biddle Snr. Support Engineer.

DLP Installs and upgrades using Windows Installer - MSI logging

MSI Logging is not a CA DLP log, however, it can be very useful when utilized for diagnosis of installations. The instructions below are guidelines to assist with the log inclusion. Please see the Microsoft website for full instruction.

Where installing or upgrading DLP using MSI (Windows Installer), it is advisable to include MSI logging. This logging is OFF by default and must be ‘switched on’ where installation information may be required for analysis.
We suggest a verbose setting where all detail is required.
To enable verbose MSI logging, add the following registry key settings.
Open the registry with Regedit.exe and create the following path and keys:

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer

Reg_SZ: Logging
Value: voicewarmup

We have added the meanings of the value below as an addendum for those interested.

Please note that a wgncheck (CA DLP log collector) does not pick these logs up, so they will need to be collected manually and uploaded for any inspection.

The location of the MSI logs is configurable via the “environment variable %temp%”, however the default location is in the folder C:\documents and
settings\<user>\Local Settings\Temp\ where <user> is the name of the user who
executed the install.
However: if the user is System, the MSI logs are held in the windows temp folder

To Enable Windows Installer logging with Group Policies;
You can enable logging with Group Policies by editing the appropriate OU or Directory Group Policy. Under Group Policy, expand Computer Configuration, expand Administrative Templates, expand Windows Components, and then select Windows Installer.

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.

For more information about MSI logging, please see Windows Help. To do so, search using the phrase "msi logging" and select "Managing options for computers through Group Policy".

Note; The addition of the "x" flag is available natively on Windows Server 2003 and later operating systems, and on the MSI redistributable version 3.0, and on later versions of the MSI redistributable.

Windows Installer supports logging enabled in the following ways:
Command-line: If installing an MSI package from the command-line, the /L switch can be used to enable logging. For example, the following command installs Package.msi and outputs verbose logging to c:\Package.log:
msiexec /i Package.msi /l*v c:\Package.log
Windows Registry: The following registry value can be used in Windows Server 2003, Vista, and XP to enable verbose logging:
Key: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
Value Name: Logging
Type: REG_SZ
Data: voicewarmupx
The following local policy must be changed in Windows Server 2008. The above registry key is no longer used:
Start > Run and type gpedit.msc to open the local group policy editor.
Expand Administrative Templates > Windows Components > Windows Installer
Select "Logging" choose the "Enabled" and in the option box on the left type "voicewarmupx" without quotes.
The resulting log is named MSI<name>.log (where "<name>" is a unique random identifier) and is placed in the user's Temp directory.


ADDENDUM

Windows Installer logging values:
The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letter's actual function is as follows for MSI version 1.1:
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. The "x" flag is available only on Windows Server 2003 and later operating systems, and on the MSI redistributable version 3.0, and on later versions of the MSI redistributable.
"*" - Wildcard, log all information except for the v and the x option. To include the v and the x option, specify "/l*vx".
Note: Only for troubleshooting purposes and should not be left on. Each time you use the Add/Remove Programs tool in Control Panel, a new Msi*.log file is created.

Outcomes