473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1142
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Carol Lyn | last post by:
Could use your assistance with this. I have a window that opens via onclick and it is a small window with info about a site. If the user is interested in visiting that site, there is a link to...
2
by: Juan Garcia | last post by:
Subject says it all. Given: Window A with text field. Window B with a button (onClick opens Window C) Window C with a button (onClick I want it to modify text fields of Window A) I have...
1
by: amith | last post by:
Hi, I have a javascript, calendar.js which i use to enable my client to select the date. This calendar pops up on the click of a gif image. But the problem is that this poped up window is not...
8
by: Renuka | last post by:
I have a confirmation page with an OK button. If this window has an opener then this browser window needs to go to another URL or else the window must close. Thus I have the following javascript...
5
by: NormD | last post by:
Is it possible to rollback an uninstallation from uninstall custom action based on some user input. or any suggestions on how to do this. If the user has an earlier version of the product and...
32
by: Eli | last post by:
How can I POST a form into a new window where I control the size and other attributes of the new window? Also. Are there any implications, perhaps due to browser security (Interne Explorer?)...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
2
by: Jennifer | last post by:
I am new to vb and .net framework. I wonder if I can use vb to creat an application which can install a list of applications from other drives of the machine to my current drive, and uninstall a...
0
by: NickP | last post by:
Hi there, I have a small question regarding the uninstallation of VS.NET 2003/2005 and it's impact on the system. I have an application that functions as desired on all freshly installed...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.