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

MsiLogging property

· 52CE 我爱测

The MsiLogging property sets the default logging mode for the Windows Installer package.

The MsiLogging property sets the default logging mode for the Windows Installer package. If this optional property is present in the Property table, the installer generates a log file named MSI*.LOG. The full path to the log file is given by the value of the MsiLogFileLocation property.

Value

The value of this property should be a string of the following characters that specify the default logging mode.

Value Meaning
I Status messages.
w Nonfatal warnings.
e All error messages.
a Start up of actions.
r Action-specific records.
u User requests.
c Initial UI parameters.
m Out-of-memory or fatal exit information.
o Out-of-disk-space messages.
p Terminal properties.
v Verbose output.
x Extra debugging information. Only available on Windows Server 2003.
! Flush each line to the log.

Remarks

This property is available starting with Windows Installer 4.0.

You cannot use the "+" and "*" values of the /L option in the value of the MsiLogging property.

The logging mode can be set using policy, a command-line option, or programmatically. This overrides the default logging mode. For more information about all the methods that are available for setting the logging mode, see Normal Logging in the Windows Installer Logging section.

If the MsiLogging property is present in the Property table, the default logging mode of the package can be modified by changing the value of this property using a database transform. The default logging mode cannot be changed using a Patch Package (a .msp file.)

If the MsiLogging property has been set in the Property table, the default logging mode for all users of the computer can be specified by setting both the DisableLoggingFromPackage policy and Logging policy. Setting both the DisableLoggingFromPackage policy and Logging policy will override the MsiLogging property for all packages.

Requirements

Requirement Value
Version Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer 4.5 on Windows Server 2003 or Windows XP. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.

See also

Properties

Not Supported in Windows Installer 3.1 and earlier versions

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)

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

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