473,396 Members | 1,767 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,396 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 9024
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.