wntSvcDelete

Marks a service for deletion from the service control manager database.

Syntax:

wntSvcDelete( server, service-name, flags)

Parameters:

(s) server-name: the UNC name of the server on which the function will execute (eg, "\\MYSERVER"), or "" for the local computer.

(s) service-name: the name of a service.

(i) flags: specifies the type of name that "service-name" represents:
0 display name (the name shown in Control Panel)
1000 service name (the actual registry key name)

Returns:

(i) @TRUE on success, or @FALSE if the specified service has already been marked for deletion.

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

DisplayName="Browser" wntSvcDelete( "", DisplayName, 0) Message("Done","Marked Broswer service for deletion from the service control manager database.") Exit
See Also:

wntSvcCreate