473,320 Members | 1,838 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,320 software developers and data experts.

Add/Remove Programs: The specified service does not exist as an installed service

I am trying to write a Windows Service in C# .NET Version 1.1.

I followed Microsoft's directions:

(http://msdn.microsoft.com/library/de...pplication.asp)

to the letter and everything worked fine.

Then I went into Windows Explorer and changed the name of my files to
what I really want....

When I try to Remove Program MyServiceSetup from Start -> Settings ->
Control Panel -> Add/Remove Programs, I get the error message ...

"An exception occurred while uninstalling. This exception will be
ignored and the uninstall will continue. However, the application
might nut be fully uninstalled after the uninstall is complete. -->
The specified service does not exist as an installed service"

.... and the program stays.

The good news is that my C# .NET framework can still compile and
install the Service that I want, with the same error message, and the
Service is indeed updated, but I would rather not have error messages
appear during my development.

I have also tried from the command line: `installutil /u ...` and I
get similar error messages.

Any ideas on how to install a renamed service without any error
messages?
Jul 21 '05 #1
1 6392
Somewhere along the way, you created a ServiceInstaller object. When you
did, you gave the ServiceInstaller a name with a like of code that looks
like this:
serviceInstaller1.ServiceName = "Hello-World Service 1";

When you renamed your service in Windows Explorer, you did not rename the
ServiceName in the code. The system is attempting to overwrite the same
service.

Rename this value as well.

--- Nick

<ch********************@yahoo.com> wrote in message
news:dd**************************@posting.google.c om...
I am trying to write a Windows Service in C# .NET Version 1.1.

I followed Microsoft's directions:

(http://msdn.microsoft.com/library/de...-us/vbcon/html
/vbwlkwalkthroughcreatingwindowsserviceapplication. asp)
to the letter and everything worked fine.

Then I went into Windows Explorer and changed the name of my files to
what I really want....

When I try to Remove Program MyServiceSetup from Start -> Settings ->
Control Panel -> Add/Remove Programs, I get the error message ...

"An exception occurred while uninstalling. This exception will be
ignored and the uninstall will continue. However, the application
might nut be fully uninstalled after the uninstall is complete. -->
The specified service does not exist as an installed service"

... and the program stays.

The good news is that my C# .NET framework can still compile and
install the Service that I want, with the same error message, and the
Service is indeed updated, but I would rather not have error messages
appear during my development.

I have also tried from the command line: `installutil /u ...` and I
get similar error messages.

Any ideas on how to install a renamed service without any error
messages?

Jul 21 '05 #2

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

Similar topics

5
by: KC | last post by:
Hello I installed MySQL ver 4.0.20d on a Windows XP Professional PC. I created a user and database that I would like to delete, and at this point I would just like to uninstall MySQL and do a...
1
by: charismatic_evangelist | last post by:
I am trying to write a Windows Service in C# .NET Version 1.1. I followed Microsoft's directions: ...
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...
0
by: Charles Leonard | last post by:
I need opinions regarding Web Service Namespace usage and/or suggestions regarding how to handle deployment. Our web service application will exist in two different domains and is likely to...
2
by: Kristopher Wragg | last post by:
hi I'm wondering whether there is a way in C# to be able to see whether a program has been installed or not? I want to create a distributional executeable that will have a few components and...
3
by: craigbennett | last post by:
Hi, I am trying to use std::remove to delete a file and have been encountering some problems. My goal is to pass std::remove a std::string and remove the file of that name, for example. ...
9
by: Coward 9 | last post by:
HI, I created the simplest "ASP .NET Web Service" by using VS 2005 and Visual C#( File | New | Web Site). However, when I tried to access the service from IE 7.0 ...
10
by: Number 11950 - GPEMC! Replace number with 11950 | last post by:
Hi all, Playing VS2005 was more fun than Doom III, and I do enjoy my games. Anyway, it's back to work for me and I'm bogged down in my familiar VB6 stomping grounds because I don't want my...
61
by: arnuld | last post by:
I have created a program which creates and renames files. I have described everything in comments. All I have is the cod-duplication. function like fopen, sprint and fwrite are being called again...
6
by: Jean-Marc Blaise | last post by:
Hi, I have installed DB2 9.5 directly from FP1 on Windows in custom mode with COMP=CONNECT_SUPPORT. I then added my DB2 Server license. I am surprise that db2licm refers to a DB2 Connect...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.