大网数据广告活动
安装更新与部署

Normal Logging

· 52CE 我爱测

The installer records errors and events in its own error log.

The installer records errors and events in its own error log. The type of logging that is performed by the installer is determined by the setting of the logging mode. Logging is enabled and the mode can be set by using the following methods:

  • The logging mode of an installation launched from the command line can be specified by using the /L option of the Command Line Options. If the logging mode is not specified by using the /L command-line option, the default logging mode will be used.
  • The logging mode of an installation process can be specified programmatically by using the MsiEnableLog function or the EnableLog method. If the logging mode is not specified by using the MsiEnableLog function or the EnableLog method, the default logging mode will be used.
  • The default logging mode of a particular installation package can be specified by setting the MsiLogging property in the Property table of the package. This property is available starting with Windows Installer 4.0.
  • If the MsiLogging property is present in the Property table, the default logging mode of the package can be modified by changing the value by using a database transform. The default logging mode cannot be changed by using Patch Packages (a .msp file.)
  • If the MsiLogging property has not been set, the default logging mode for all users of the computer can be specified by using the Logging policy.
  • If the MsiLogging property has been set, the default logging mode for all users of the computer can be specified by setting both the DisableLoggingFromPackage policy and Logging policy.
  • If the logging mode has not been specified by the /L option, MsiEnableLog, EnableLog, MsiLogging property, or the Logging policy, then the default logging mode for the package is the same mode that is obtained as setting the MsiLogging property to 'iwearmo'.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。