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

MsiServiceConfig Table

· 52CE 我爱测

The MsiServiceConfig table configures a service that is installed or being installed by the current package.

The MsiServiceConfig table configures a service that is installed or being installed by the current package.

Windows Installer 4.5 or earlier: Not supported. This table is available beginning with Windows Installer 5.0.

The MsiServiceConfig table has the following columns.

Column Type Key Nullable
MsiServiceConfig Identifier Y N
Name Formatted N N
Event Integer N N
ConfigType Integer N N
Argument Formatted N Y
Component_ Identifier N N

Columns

MsiServiceConfig

This is the primary key of this table.

Name

This column contains the name of a service that is a part of this package or that is already is installed.

Event

This column specifies when to change the service configuration. The following values can be combined to represent multiple operations. Any values included other than these are ignored.

Constant Description
msidbServiceConfigEventInstall1 Takes the action during installation of the component.
msidbServiceConfigEventUninstall2 Takes the action during uninstallation of the component.
msidbServiceConfigEventReinstall4 Takes the action during reinstallation of the component.

ConfigType

The value in this field, combined with the value in the Arguments field, specify what change to make to the service configuration. The specified change takes effect the next time the system is started.

Config Description
SERVICE_CONFIG_DELAYED_AUTO_START3 Configure the time delay of an auto-start service. Enter 1 in the Argument field to start the service after other auto-start services plus a time delay. Enter 0 in the Argument field to turn off the auto-start service delay. Applies only to installed auto-start services or services installed by this package with SERVICE_AUTO_START in the StartType field of the ServiceInstall table.
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO6 Change the list of privileges required by the service. Enter a list of requested privileges in the Argument field. The Formatted string value in the Argument field lists the Privilege Constants for the requested privileges. You can use the [~] syntax of the Formatted string to insert a null character. Separate the privilege constants in the list by [~].
SERVICE_CONFIG_SERVICE_SID_INFO5 Add a service SID type to the process token containing this service. Enter in the Argument field a valid service SID type for the SERVICE_SID_INFO structure: SERVICE_SID_TYPE_NONE (0x00), SERVICE_SID_TYPE_RESTRICTED (0x03), or SERVICE_SID_TYPE_UNRESTRICTED (0x01).
SERVICE_CONFIG_PRESHUTDOWN_INFO7 Configure the length of the time the Service Control Manager (SCM) waits before proceeding with other shutdown operations. The SCM waits for this period of time after sending the SERVICE_CONTROL_PRESHUTDOWN notification to the service. Enter the time delay length, in milliseconds, in the Argument field. Leave the Argument field empty to reset the time delay to the default of 3 minutes.
SERVICE_CONFIG_FAILURE_ACTIONS_FLAG4 Configure when to run the failure actions for this service. This setting is ignored if the service has no configured failure actions. Enter 0 to run the actions only if the service terminates without reporting SERVICE_STOPPED. Enter 1 to run the actions if the service terminates reporting SERVICE_STOPPED and the dwWin32ExitCode member of SERVICE_STATUS structure is not ERROR_SUCCESS. Configured failure actions are also run if the service terminates without reporting SERVICE_STOPPED.

Argument

The value in this field, combined with the value in the ConfigType field, specify what change to make to the service configuration. The specified change takes effect the next time the system is started.

Component_

External key to the Component column of the Component Table.

Validation

ICE102
ICE03
ICE06
ICE32
ICE45
ICE46
ICE69

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)

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

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