473,327 Members | 2,012 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,327 software developers and data experts.

Windows Service uninstall

I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the service
was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new one.
However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.
Jul 21 '05 #1
6 9022
Did you reboot your computer after uninstalling?

"tuuky" <tu***@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the service was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new one. However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.

Jul 21 '05 #2
Possibly the initial uninstall failed due to "old" service still running.

Services show under CP's Windows Services when there are registry entries
for it still.

I'd try something like:

Make sure the old one isn't still running
Reinstall the old on top of the old
Uninstall the old
Reinstall the new

Worst case: Hunt down the registry entries for the service with regedit...

Services typically install and uninstall just fine...

"tuuky" wrote:
I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the service
was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new one.
However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.

Jul 21 '05 #3
I did and it was still there.

"Peter Rilling" wrote:
Did you reboot your computer after uninstalling?

"tuuky" <tu***@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the

service
was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new

one.
However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.


Jul 21 '05 #4
That's just what I had to do.
I found the key in the registry and deleted it.
I had to reboot after that, but the service was gone and I was able to
reinstall the new version.

From now on, I'm just going to overwrite the .exe instead of reinstalling
the service.

Thanks for your help.

"Ben Solomon" wrote:
Possibly the initial uninstall failed due to "old" service still running.

Services show under CP's Windows Services when there are registry entries
for it still.

I'd try something like:

Make sure the old one isn't still running
Reinstall the old on top of the old
Uninstall the old
Reinstall the new

Worst case: Hunt down the registry entries for the service with regedit...

Services typically install and uninstall just fine...

"tuuky" wrote:
I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the service
was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new one.
However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.

Jul 21 '05 #5
PHS
Another, more reliable fix is to right click on your installer project file
in .net. Notice the product code in the properties window? Click on the ...
button and then click New Code. It generates a new guid and when you rebuild
the project you'll be able to reinstall it. I often shag my installer by
making lots of changes but I forget to uninstall first. This has saved my a$$
on many occasions. Otherwise, spin through the registry and wipe out the
obvious. There is a tool Microsoft make available that cleans up the
installer environment (I forget it's name). I've had mixed fortunes with it
though.

"tuuky" wrote:
That's just what I had to do.
I found the key in the registry and deleted it.
I had to reboot after that, but the service was gone and I was able to
reinstall the new version.

From now on, I'm just going to overwrite the .exe instead of reinstalling
the service.

Thanks for your help.

"Ben Solomon" wrote:
Possibly the initial uninstall failed due to "old" service still running.

Services show under CP's Windows Services when there are registry entries
for it still.

I'd try something like:

Make sure the old one isn't still running
Reinstall the old on top of the old
Uninstall the old
Reinstall the new

Worst case: Hunt down the registry entries for the service with regedit...

Services typically install and uninstall just fine...

"tuuky" wrote:
I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the service
was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new one.
However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.

Jul 21 '05 #6
JXT
Instead of using the Add/Remove programs, use the InstallUtils.exe. The /u
option is used to uninstall services. The InstallUtils.exe is a part of the
..NET Framework tool set, and it works great for installing/uninstalling
services. There are a ton of articles on the web on how to use it.

"tuuky" wrote:
I've created a Windows Service in C# and an installer project for it.

I installed the service using the packaged installer project and the service
was installed correctly and it runs fine.

I've since made some changes to this service.
I then proceded to uninstall it (Add/Remove Programs) to install the new one.
However, the service still shows under Services, but the .exe is gone.

I can't install the new version of the service, because the installer says
that the service is already installed.

Someone please help me get this mess straightened out.

Thanks.

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jacobus Terhorst | last post by:
I created a simple windows service. However when I built it again a couple of days later I could no longer install the service. The InstallUtil.exe cannot UNINSTALL the service because "The...
7
by: Larry Bird | last post by:
I have a windows service that want to un-install. When I run "installutil /u serivcename" I get the error that the serivce is not installed on my machine. However, when view the serivce console I...
6
by: tuuky | last post by:
I've created a Windows Service in C# and an installer project for it. I installed the service using the packaged installer project and the service was installed correctly and it runs fine. ...
2
by: russ.haley | last post by:
I have created a small windows service in C# that installs using the service installer classes and a deployment project. I have been able to install the service but the uninstallation does not...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
0
by: =?Utf-8?B?c3VqaXRo?= | last post by:
i have a setup project setup1 which deploys two windows services windows service1,windows service2.i also added some custom installation actions into it using projectinstaller.cs.In windowsservice1...
1
by: kirk.quinbar | last post by:
Have you ever used a .net deployment project to install a windows service? If so, then i ran into an issue recently that maybe you could shed some light on. I am sure I probably did something...
3
by: Claire | last post by:
Hi (Visual studio 2005) My windows installer Setup project needs to install a desktop application plus an optional Windows Service, into a single destination folder. Both applications share the...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...

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.