473,770 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9061
Did you reboot your computer after uninstalling?

"tuuky" <tu***@discussi ons.microsoft.c om> wrote in message
news:24******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:24******** *************** ***********@mic rosoft.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.ex e. The /u
option is used to uninstall services. The InstallUtils.ex e 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
26538
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 specified service does not exist as an installed service" However InstallUtil.exe cannot INSTALL the service because "The specified service already exists." Are there some registry entries I have to remove?
7
7947
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 still see my service there. What must be done to remove a windows service written in VB.Net from my system. I'm trying un-install the service because I'm compiling it as a console application to perform debugging. I think it will be easier to...
6
355
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. 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,...
2
1800
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 work. The files are deleted from the application directory but the service is not being unregistered. The instructions I found did not indicate any code changes were necessary, but I have found reference on Google to changing the CanShutdown...
4
2005
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 Installer) 2. My Windows Service is upgraded to .NET 2.0 with deployment project using MSI (Windows Installer) Upgrade code is the same from the .NET 1.1 version to the .NET 2.0 version
0
1229
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 oninstall event,i attached a database ;(create database for attach command) . in windowsservice2 onuninstall event,i deletes the databse using "drop database"; the setup exe installs the windows services successfully.but when i uninstall them,...
1
2060
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 wrong, but I am experiencing something weird and am not sure if it has something to do with the way the WindowServiceInstaller class was created or if i did something wrong in my deployment project. Basically what happens is that after I build the...
3
3033
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 same assemblies and are part of the same solution. Installation of the Windows Service is optional and is to be installed on a single PC on a LAN, the desktop applications install to one or more pcs on the same LAN. Ive added the setup to my...
5
3307
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? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.