How to change windows service name after creating it
Do the following:
- Stop the service. You will probably confuse the service control manager if you do this on a running service. (You may confuse it anyhow, this is very hacky.)
- Open
regedit.exe
(Registry Editor). - Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
and find the subkey with your service's name. - Right-click the key you found in step #3, and select Rename. Enter the new name for the service.
- Restart the computer.
Services.exe
, the process that hosts the service control manager, won't see the change unless you do; attempts to start the renamed process (or otherwise interact with it at all, actually) will fail.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.