471,315 Members | 1,448 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

Uninstallation problem in window sservice.

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.

Nov 29 '05 #1
1 1055
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


archana wrote:
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.

Nov 29 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Carol Lyn | last post: by
1 post views Thread by amith | last post: by
8 posts views Thread by Renuka | last post: by
32 posts views Thread by Eli | last post: by
6 posts views Thread by David Hayes | last post: by
4 posts views Thread by alexandre.brisebois | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.