The DeleteServices action stops a service and removes its registration from the system. This action queries the ServiceControl table.
Sequence Restrictions
The services actions must be used in the following sequence:
- StopServices
- DeleteServices
- Any of the following actions: InstallFiles, RemoveFiles, DuplicateFiles, MoveFiles, PatchFiles, and RemoveDuplicateFiles actions.
- InstallServices action
- StartServices
ActionData Messages
Field | Description of action data |
---|---|
[1] | Service display name. |
[2] | Service name. |
Remarks
This action requires the user be an administrator or have elevated privileges with permission to delete services or that the application be part of a managed installation.
Send comments about this topic to Microsoft
Build date: 8/13/2009
© 2009 Microsoft Corporation. All rights reserved.