Solved

Windows service

Posted on 2004-04-19
2
562 Views
Last Modified: 2010-04-24
I've made a windows service which I installed but It didn't work, so I uninstalled it and corrected the problem.
But when I tried to reinstalled it it say that there already is a service with that name, how do I remove that faulty service
0
Comment
Question by:RonaldBiemans
2 Comments
 
LVL 6

Accepted Solution

by:
zulu_11 earned 500 total points
ID: 10859284
Hi,

Whenever you create a service and install it, the OS makes an entry in the Registry about the service name and the event viewer..now you say that you unistalled the application..then these entries should have been removed automatically by the unistallation process..but that has not happened.
To correct this you'll have to manually remove the entries from the Registry..

1   Open your registry editor..type regedit in run window
2   goto  HKEY_LOCAL_MACHINE\System\CurrentControSet\Services
3. Now look for the folder with the service name that you had created previously..say TestService..
    Delete that folder..
4. Now, look for the EventLog folder under the Services folder..this folder contains all the Event Viewer loggin information.
5. If you did not specify any event viewer loogin information in you code then by default the errors in your code would be put into the Application Log..so open the Application Log and remove the folder with the name of you service...
6. Save the registry and restart..
This should solve your problem,,

Regards

Zulu
0
 

Expert Comment

by:poojasureshkumar
ID: 15033010
Hi Zulu,
I have installed the service through installer.I got display "Installed successfully",but my service is not displayed on Services list.
I followed the same procedure on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod29.asp

Second issue is,
i created the same application in different system and installed the service.When i uninstall the service,still i am getting the outpur result.Also the Respective service is not listed in Services .

My email id is sureshunique@gmail.com

Pls help me out.

Thanks in Advance,
Suresh
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now