Uninstallation problem in window sservice.

A

archana

Hi all,
i have created windows service in c# .net.

But at a time of building setuo of that service i forgot to specify
uninstall action in custom actions.

Because of which even if i tried to uninstall the service it is not
getting removed from service control manager.

Can some one tell me how to remove service from scm.

Because exe related to that service is remoted from machine.

Any help will be truely appreciated.

thanks in advance.
 
L

Lenard Gunda

Hi,

I think you might be able to use the installutil.exe which comes with
the .NET Framework. Locate the service executable that is installed on
the machine. Then execute:

INSTALLUTIL /u service.exe

Replace service.exe with your executable.

I think this should work as long as you used the ServiceInstaller class
in the code. By default, that should be used.

The above command line should remove the service from SCM.

If installutil is not in your path, you can find it in the .NET
Framework directory, which is by default:

<windowsdir>\Microsoft.NET\Framework\v[.net version]\

for example:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\



-Lenard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top