Command Reference

Delete Service

Deletes a service from the service database.

The Service Control Manager deletes the service by deleting the service key and its subkeys from the registry. This action does NOT delete the actual binary executable of the service from the system.

NOTE: This action only works on Windows NT/2000/XP and has no effect on Windows 9x/ME. For more information about services, please read a book on the subject or search for more information online. You should not haphazardly experiment with the services on your or anyone else's system as this could cause major problems with the operating system. The service actions were put into this product for those who know how to use them and require their functionality.

Action ID: 60
Action Category: Services

Settings

Display Name

Find service by display name:

If checked, the setup will attempt to find the service by it's display name.

Display name:

The display name that the setup will use in order to find the service if Find service by display name is checked.

Key Name

Find service by key name:

If checked, the setup will attempt to find the service by it's key name.

Key name:

The key name that the setup will use in order to find the service if Find service by key name is checked.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

Failed to delete service.

Iterate services failed.
<<Display Name>>
<<Key Name>>

2

Failed to delete service.

Query service failed.
<<Display Name>>
<<Key Name>>

3

Failed to delete service.

Service not found.
<<Display Name>>
<<Key Name>>

4

Failed to delete service.

 Command failed.
<<Display Name>>
<<Key Name>>

Example

None available.

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab