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

  • Thread starter charismatic_evangelist
  • Start date
C

charismatic_evangelist

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

I followed Microsoft's directions:

(http://msdn.microsoft.com/library/d...kthroughcreatingwindowsserviceapplication.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?
 
H

hOSAM

Windows installer keeps track of installed files by recording their names
and locations, and whenever necessary the commit and rollback commands (in
this case the installutil). Whe you try to uninstall a program, the
installer searches for te files, if they are not found, or their locations
change, then -logically-, the uninstall operation fails.

If you changed the names of files, and you want to uninstall, then simply
revert the file names back to their original names. And if necessary, if you
have uninstalled any service that the installer registers, then try to
register it back using installutil. Afterwards, run the uninstaller,
otherwise you will not be able to remove the application automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top