MsiServiceConfig 表MsiServiceConfig Table

MsiServiceConfig 表配置当前包安装或安装的服务。The MsiServiceConfig table configures a service that is installed or being installed by the current package.

Windows Installer 4.5 或更早版本 不支持。Windows Installer 4.5 or earlier: Not supported. 此表从 Windows Installer 5.0 开始可用。This table is available beginning with Windows Installer 5.0.

MsiServiceConfig 表包含以下列。The MsiServiceConfig table has the following columns.

Column 类型Type Key NullableNullable
MsiServiceConfigMsiServiceConfig 标识符Identifier YY NN
名称Name Formatted NN NN
事件Event 整数Integer NN NN
ConfigTypeConfigType 整数Integer NN NN
参数Argument Formatted NN YY
组件_Component_ 标识符Identifier NN NN

Columns

MsiServiceConfigMsiServiceConfig

这是此表的主键。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
msidbServiceConfigEventInstall 1msidbServiceConfigEventInstall 1
在组件安装期间采取措施。Takes the action during installation of the component.
msidbServiceConfigEventUninstall 2msidbServiceConfigEventUninstall 2
在组件卸载过程中执行此操作。Takes the action during uninstallation of the component.
msidbServiceConfigEventReinstall 4msidbServiceConfigEventReinstall 4
在组件重新安装期间采取措施。Takes the action during reinstallation of the component.

Configtype&gtConfigType

此字段中的值与 "参数" 字段中的值相结合,可指定对服务配置进行哪些更改。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.

ConfigConfig 描述Description
服务 _配置 _ 延迟 _ 自动 _ 启动 3SERVICE_CONFIG_DELAYED_AUTO_START 3
配置 自动启动服务的时间延迟。Configure the time delay of an auto-start service.
在 "自变量" 字段中输入1,以在其他自动启动服务和时间延迟后启动服务。Enter 1 in the Argument field to start the service after other auto-start services plus a time delay.
在 "参数" 字段中输入0,以关闭自动启动服务延迟。Enter 0 in the Argument field to turn off the auto-start service delay.
仅适用于在 ServiceInstall 表的 StartType 字段中通过 服务 _ 自动 _ 启动,安装了此包的自动启动服务或服务。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.
服务 _配置 _ 所需的 _ 权限 _ 信息 6SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO 6
更改服务所需的特权列表。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. 您可以使用 [ ~ ] 带格式字符串的语法来插入 null 字符。You can use the [~] syntax of the Formatted string to insert a null character. 将列表中的特权常数隔开 [ ~ ] 。Separate the privilege constants in the list by [~].
服务 _配置 _ 服务 _ SID _ 信息 5SERVICE_CONFIG_SERVICE_SID_INFO 5
将服务 SID 类型添加到包含此服务的进程令牌。Add a service SID type to the process token containing this service.
在参数字段中输入 服务 _ sid _ 信息 结构的有效服务 sid 类型: 服务 _ sid _ 类型 _ 无 (0x00) 、 服务 _ sid _ 类型 _ 受限 (0x03) 或 服务 _ sid _ 类型不 _ 受限制 (0x01) 。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).
服务 _配置 _ PRESHUTDOWN _ 信息 7SERVICE_CONFIG_PRESHUTDOWN_INFO 7
配置 服务控制管理器 (SCM) 等待的时间长度,然后再继续执行其他关闭操作。Configure the length of the time the Service Control Manager (SCM) waits before proceeding with other shutdown operations. 在将 服务 _ 控制 _ PRESHUTDOWN 通知发送到服务后,SCM 会等待此时间段。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. 将 "参数" 字段留空,将时间延迟重置为默认值3分钟。Leave the Argument field empty to reset the time delay to the default of 3 minutes.
服务 _配置 _ 失败 _ 操作 _ 标志 4SERVICE_CONFIG_FAILURE_ACTIONS_FLAG 4
配置运行此服务的失败操作的时间。Configure when to run the failure actions for this service. 如果服务没有配置失败操作,则会忽略此设置。This setting is ignored if the service has no configured failure actions.
输入0,以仅在服务在未 _ 停止 的情况下终止的情况下运行操作。Enter 0 to run the actions only if the service terminates without reporting SERVICE_STOPPED.
输入1以在服务终止 reporting service _ 停止 并且 服务 _ 状态结构的 dwWin32ExitCode 成员不是 错误 _ 成功 时运行操作。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

此字段中的值与 "Configtype&gt" 字段中的值相结合,指定对服务配置进行的更改。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

ICE102ICE102
ICE03ICE03
ICE06ICE06
ICE32ICE32
ICE45ICE45
ICE46ICE46
ICE69ICE69