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





PostPosted: Fri Sep 24 19:04:01 CDT 2004 Top

Visual C#.Net >> 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://www.hide-link.com/ )

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?

DotNet423  
 
 
hOSAM





PostPosted: Fri Sep 24 19:04:01 CDT 2004 Top

Visual C#.Net >> Add/Remove Programs: The specified service does not exist as an installed service 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.





> I am trying to write a Windows Service in C# .NET Version 1.1.
>
> I followed Microsoft's directions:
>
>
(http://msdn.microsoft.com/library/default.asp?url=/library/en-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?