PC Review


Reply
Thread Tools Rate Thread

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

 
 
charismatic_evangelist@yahoo.com
Guest
Posts: n/a
 
      24th Sep 2004
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?
 
Reply With Quote
 
 
 
 
Nick Malik
Guest
Posts: n/a
 
      24th Sep 2004
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

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution to: "The specified service does not exist as an installed service." DBF Windows XP Hardware 1 29th Apr 2008 04:31 PM
"The specified service does not exist as an installed service." Andrea Windows Vista Networking 6 23rd Jan 2008 02:05 AM
The specified service does not exist as an installed service =?Utf-8?B?S2Fsa3Vz?= Windows Vista Networking 0 7th Oct 2007 09:21 AM
Add/Remove Programs: The specified service does not exist as an installed service charismatic_evangelist@yahoo.com Microsoft C# .NET 1 25th Sep 2004 01:04 AM
Q: "Specified File Does Not Exist Error" Does Not Make sense..... Nicholas Windows XP Accessibility 1 12th Nov 2003 09:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 PM.