How to enable windows installer logging

Включения ведения журнала установщика Windows

Windows включает службу ведения журнала с активацией реестра, которая помогает диагностировать проблемы установки Windows. В этой статье описывается, как включить эту службу ведения журнала.

Оригинальная версия продукта: Windows 10 — все выпуски, Windows Server 2012 R2
Исходный номер КБ: 223300

Запись реестра в этой статье действительна для всех операционных систем Windows.

Ведение журнала установщика Windows

Установщик Windows может использовать ведение журнала для устранения неполадок при установке пакетов программного обеспечения. Этот журнал включен путем добавления ключей и значений в реестр. После того как записи были добавлены и включены, можно повторить установку проблемы, и установщик Windows будет отслеживать ход и размещать ее в папке Temp. Имя файла нового журнала является случайным. Однако первыми буквами являются Msi, а имя файла имеет расширение журнала. Чтобы найти папку Temp, введите следующую строку в командной строке:

Чтобы включить ведение журнала установщика Windows вручную, см. в следующем разделе.

Включить ведение журнала установщика Windows вручную

В этот раздел, описание метода или задачи включены действия, содержащие указания по изменению параметров реестра. Однако неправильное изменение параметров реестра может привести к возникновению серьезных проблем. Поэтому следует в точности выполнять приведенные инструкции. Для дополнительной защиты создайте резервную копию реестра, прежде чем редактировать его. Так вы сможете восстановить реестр, если возникнет проблема. Дополнительные сведения о том, как создать и восстановить реестр, см. в этой информации, как создать и восстановить реестр в Windows.

Чтобы включить ведение журнала установки Windows самостоятельно, откройте реестр с помощью Regedit.exe, а затем создайте следующие подкайки и клавиши:

  • Путь: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
  • Тип: Reg_SZ
  • Значение: ведение журнала
  • Данные: voicewarmupx

Буквы в поле значения могут идти в любом порядке. Каждая буква включает отдельный режим ведения журнала. Фактическая функция каждой буквы следующим образом для версии MSI 1.1:

  • v — выход verbose
  • o — сообщения из дискового пространства
  • i — Сообщения о состоянии
  • c . Исходные параметры пользовательского интерфейса
  • e . Все сообщения об ошибках
  • w — Предупреждения, не несуществующие смертельным исходам
  • a . Запуск действий
  • r — Записи, определенные для действий
  • m — сведения о выходе из памяти или с летальным исходом
  • u . Запросы пользователей
  • p — Свойства терминала
  • + — Приложение к существующему файлу
  • ! — Смыть каждую строку в журнал
  • x . Дополнительные сведения об отладки. Флаг x доступен только в Windows Server 2003 и более поздних операционных системах, а также в MSI-версии 3.0, а также в более поздних версиях MSI, которые можно перераспределить.
  • * — Под диктовка. Войдите все сведения, кроме параметра v и x. Чтобы включить параметр v и x, укажите /l*vx.

Это изменение должно использоваться только для устранения неполадок и не должно быть оставлено на месте, так как оно будет иметь негативные последствия для производительности системы и дискового пространства. При каждом использовании элемента Добавить или Удалить программы в панели управления создается новый файл Msi*.log. Чтобы отключить ведение журнала, удалите значение реестра журнала.

Включить ведение журнала установщика Windows с помощью групповых политик

Вы можете включить ведение журнала с помощью групповых политик, редактировать соответствующую политику группы OU или Directory. В соответствии с групповой политикой расширяйте конфигурацию компьютера, расширяйте административные шаблоны, расширяйте компоненты Windows, а затем выберите установщик Windows.

Дважды щелкните журнал журнала и нажмите кнопку Включено. В поле Ведение журнала введите параметры, которые необходимо ввести в журнал. Файл журнала Msi.log отображается в папке Temp тома системы.

Дополнительные сведения о журнале MSI см. в справке по Windows. Для этого выберите поиск с помощью журнала msi фразы, а затем выберите параметры управления для компьютеров с помощью групповой политики.

Добавление флага x доступно в Windows Server 2003 и более поздних операционных системах, в MSI-версии 3.0, а также в более поздних версиях MSI, которые можно перераспределить.

Enable Windows Installer logging

Windows includes a registry-activated logging service to help diagnose Windows Installer issues. This article describes how to enable this logging service.

Original product version: В Windows 10 — all editions, Windows Server 2012 R2
Original KB number: В 223300

The registry entry in this article is valid for all Windows operating systems.

Windows Installer logging

Windows Installer can use logging to help assist in troubleshooting issues with installing software packages. This logging is enabled by adding keys and values to the registry. After the entries have been added and enabled, you can retry the problem installation and Windows Installer will track the progress and post it to the Temp folder. The new log’s file name is random. However, the first letters are Msi and the file name has a .log extension. To locate the Temp folder, type the following line at a command prompt:

Читайте также:  Windows explorer 9 rtm

To enable Windows Installer logging manually, see the following section.

Enable Windows Installer logging manually

This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.

To enable Windows Installer logging yourself, open the registry by using Regedit.exe, and then create the following subkey and keys:

  • Path: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
  • Type: Reg_SZ
  • Value: Logging
  • Data: voicewarmupx

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 in 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 the v and the x option. To include the v and the x option, specify /l*vx.

This change should be used only for troubleshooting and should not be left on because it will have adverse effects on system performance and disk space. Each time that you use the Add or Remove Programs item in Control Panel, a new Msi*.log file is created. To disable the logging, remove the Logging registry value.

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, see Windows Help. To do this, search by using the phrase msi logging, and then select Managing options for computers through Group Policy.

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

How to enable Windows Installer logging on Windows 10

Windows includes a Registry-activated logging service to help diagnose Windows Installer issues. In today’s post, we will describe the steps on how to enable this Windows Installer logging service on Windows 10. Windows Installer is the standard Microsoft technology for deploying applications. It offers a format for packaging an application and an engine to unpack and install an application. MSI packages are used instead of proprietary installation systems, allowing your installer to run on any Windows platform from Windows 95 to Windows 10.

Windows Installer can use logging to help assist in troubleshooting issues with installing software packages. This logging is enabled by adding keys and values to the registry. After the entries have been added and enabled, you can retry the problem installation and Windows Installer will track the progress and post it to the Temp folder. The new log’s file name is random. However, the first letters are “Msi” and the file name has a “.log: extension. To locate the Temp folder, type the following line at a command prompt:

Enable Windows Installer logging on Windows 10

You can enable Windows Installer logging manually, using either of these two ways:

  1. Via Registry Editor
  2. Via Local Group Policy Editor.

Now let’s take a look at both the procedures.

1] Enable Windows Installer logging via Registry Editor

Since this is a registry operation, it’s recommended you back up the registry or create a system restore point as a precautionary measure in case the procedure goes wrong.

Once you have done any of the above actions, you can now proceed as follows.

  • Launch Registry Editor (press Windows key and type regedit, then hit Enter).
  • Navigate to the following registry key:

If you don’t see a Installer key (folder) below the Windows folder, right-click the Windows folder and select New > Key. Name it Installer.

You can then create the following subkey and keys:

Читайте также:  Файл winload exe для windows 10

Type: Reg_SZ
Value: Logging
Data: voicewarmupx

Right-click the Installer key (folder) in the left pane and select New > String Value.

Name the value Logging.

Double-click the entry to edit it’s properties and set the Value data as voicewarmupx.

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 the v and the x option. To include the v and the x option, specify “/l*vx”.

Click OK.

You can now exit Registry Editor and restart PC for changes to take effect.

Note: This change should be used only for troubleshooting and should not be left on because it will have adverse effects on system performance and disk space. Each time that you use the Add or Remove Programs item in Control Panel, a new Msi*.log file is created. To disable the logging, remove the Logging registry value.

How to Enable Microsoft Installer logging and Verbose logging to gather additional troubleshooting Information

Symptoms

Windows Installer uses logging to help you troubleshoot issues that may occur when you install software packages. After you enable logging, you can try the unsuccessful installation again. Windows Installer tracks the progress and records the data in a log file. These logs can then be reviewed by support professionals to help determine the issue.

Cause

Microsoft Installer issues can be caused by data corruption, corrupted installations and many other different issues.

Resolution

To troubleshoot these issues, you have to enable logging for two processes, and then try to install the updates again. When you enable logging, the actual error codes that are generated by Windows Installer are captured. As soon as the error codes are captured, you can determine the actual issue and the resolution for that issue. These errors will require you to contact Microsoft Support to resolve the issue. However, you have to do several things before you contact Microsoft Support.

To enable and collect the Windows Installer logs, follow the steps for your operating system.

Step 1: Enable Microsoft Installer logging and Windows Update verbose logging

To have us enable logging for you, go to the «Here’s an easy fix» section. If you prefer to fix this problem manually, go to the «Let me fix it myself» section.

Here’s an easy fix

To fix this problem automatically, click the Download button. In the File Download dialog box, click Run or Open, and then follow the steps in the easy fix wizard.

This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.

If you’re not on the computer that has the problem, save the easy fix solution to a flash drive or a CD, and then run it on the computer that has the problem.

For Windows 8, Windows 7

For Windows Vista, Windows XP, Windows Server 2008, Windows Server 2003

For computers that are running Windows 2000, Windows XP, or Windows Server 2003

Click Start, click Run, type Notepad, and then click OK.

Type the following commands in Notepad.

On the File menu, click Save As.

In the Save in list, click Desktop.

In the File name box, type LoggingOn.reg, click All Files in the Save as type list, and then click Save.

On the desktop, double-click the LoggingOn.reg file to add the registry keys to the Windows registry.

Click OK in the message box.

Try to install the update again to capture the additional error information in the Windows Installer .log file.

For computers that are running Windows Vista and Windows Server 2008

Click Start
, and then in the Start Search box, type Notepad.

In the Programs list, click Notepad.

Type the following commands in Notepad.

On the File menu, click Save As.

In the Save in list, click Desktop.

In the File name box, type LoggingOn.reg, click All Files in the Save as type list, and then click Save.

On the desktop, double-click the LoggingOn.reg file to add the registry values to the Windows registry.


If you are prompted for an administrator password or confirmation, type the password or click Continue.

Читайте также:  Нет разрешения экрана 1366x768 для windows 10

Click Yes, and then click OK.

Try to install the update again to capture the additional error information in the Windows Installer .log file.

Step 2: Try to install updates again to create the log filesTo try to install the updates again, visit the following Microsoft Update Web site:

http://update.microsoft.comNote It can take several minutes to collect these logs, and the update process may not seem to be functioning correctly. Allow for the necessary time for the process to finish.

Step 3: Disable Microsoft Installer logging and Windows Update verbose loggingImportant As soon as Windows Update or Microsoft Update has finished, disable Windows Installer logging. Having logging enabled can require too much time every time that you install updates, can slow down your computer, and can create large log files that require large amounts of disk space.

To have us disable logging for you, go to the «Here’s an easy fix» section. If you prefer to fix this problem manually, go to the «Let me fix it myself» section.

Here’s an easy fix To fix this problem automatically, click the Download button. In the File Download dialog box, click Run or Open, and then follow the steps in the easy fix wizard.

This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.

If you’re not on the computer that has the problem, save the easy fix solution to a flash drive or a CD, and then run it on the computer that has the problem.

For Windows 8, Windows 7

For Windows Vista, Windows XP, Windows Server 2008, Windows Server 2003

To disable Windows Installer logging, follow the steps for your operating system.

For computers that are running Windows 2000, Windows XP, or Windows Server 2003

Click Start, click Run, type Notepad, and then click OK.

Type the following commands in Notepad.

On the File menu, click Save As.

In the Save in list, click Desktop.

In the File name box, type LoggingOff.reg, click All Files in the Save as type list, and then click Save.

On the desktop, double-click the LoggingOff.reg file to remove the registry values from the Windows registry.

Click OK in the message box.

Delete the LoggingOn.reg and LoggingOff.reg files from the desktop

Contact Microsoft Support for help, and reference this Microsoft Knowledge Base article when you speak to the support agent. For more information about how to contact Microsoft Support, visit the following Microsoft Web site:

For computers that are running Windows Vista and Windows Server 2008

Click Start
, and then type Notepad in the Start Search box.

In the Programs list, click Notepad.

Type the following commands in Notepad.

In Notepad, click Save As on the File menu.

In the Save in list, click Desktop.

In the File name box, type LoggingOff.reg, click All Files in the Save as type list, and then click Save.

On the desktop, double-click the LoggingOff.reg file to remove the registry values from the Windows registry.


If you are prompted for an administrator password or confirmation, type the password or click Continue.

Click Yes, and then click OK.

Delete the LoggingOn.reg and LoggingOff.reg files from the desktop.

Contact Microsoft Support for help, and reference this Microsoft Knowledge Base article when you speak to the support agent. For more information about how to contact Microsoft Support, visit the following Microsoft Web site:

In most cases, the Windows Installer log starts with msi, ends with a .log extension, and includes a group of characters. For example, the Windows Installer log will have a file name that resembles the following:

msib3a6g.log On computers that are running Windows 2000, Windows XP, or Windows Server 2003, the installer log is located in the following directory:

C:\Documents and Settings\ \Local Settings\Temp\ To open this directory, click Start, click Run, type %temp%, and then click OK.

Note This information assumes that Windows is installed to the default drive C. If this is not the case, adjust the drive letter for the folder path to match the installation drive.

On computers that are running Windows Vista or Windows Server 2008, the installer log is located in the following directory:

C:\Users\, type %temp% in the Start Search box, and then press ENTER.

Note This information assumes that Windows is installed to the default drive C. If this is not the case, adjust the drive letter for the folder path to match the installation drive.

For more information about how to enable Windows Installer logging, click the following article number to view the article in the Microsoft Knowledge Base:

314852 How to enable Windows Installer logging in Windows XP

Оцените статью