Home » Questions » Computers [ Ask a new question ]

What tool is used to uninstall service in Windows 2008?

What tool is used to uninstall service in Windows 2008?

I could not find the tool InstallUtil.exe to uninstall a service in Windows 2008 Server. Not sure if there is an alternative tool in Win 2008 Server for services?

Asked by: Guest | Views: 115
Total answers/comments: 2
Guest [Entry]

"Use sc.exe

http://technet.microsoft.com/en-us/library/cc742045(WS.10).aspx

Try sc delete MyServiceName.

This doesn't rely on the .NET Framework.

Note that this simply deletes the service from the registry - it doesn't do any cleanup or try to stop the service."
Guest [Entry]

"You need the .NET Framework installed on your server for InstallUtil.

If you are running this:

C:\Program Files(86x)\MyApp\InstallUtil /u myService.exe

it will search for InstallUtil in the MyApp directory. You will need to run it like this:

InstallUtil /u ""C:\Program Files(86x)\MyApp\myService.exe""

note the necessary quotes as well, since Program Files has a space in it."