ServiceStopServiceEx2

InstallShield 2019 » InstallScript Language Reference

The ServiceStopServiceEx2 function stops the service that is specified by szServiceName, bStopDependencies.

This function stops the services and its dependencies.

Syntax

ServiceStopServiceEx2 ( szServiceName, bStopDependencies);

Parameters

ServiceStopServiceEx2 Parameters

Parameter

Description

szServiceName

Specifies the name of the service.

bStopDependencies

Specifies to stop all or specific services.

True - Stops all the dependent services
False - Stops only a specific service which doesn’t have any dependent services, or one which has dependencies but all of them are already stopped.

Return Values

ServiceStopServiceEx2 Return Values

Return Value

Description

>= ISERR_SUCCESS

Indicates that the function has stopped the service

Indicates that the function has already stopped the service

< ISERR_GEN_FAILURE

Indicates that the function failed the service

Additional Information

See Also