473,379 Members | 1,355 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,379 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 1141
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?

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.