Upgrading a Service fails

  • Thread starter Thread starter Christof Nordiek
  • Start date Start date
C

Christof Nordiek

I have a C#-Project with a Service and an Installer-Class for intalling the
service. I also have a Setup-Porject for installing the Service.

When I make a new Version of my Service by changing the Version and the
ProductCode i can't install this Service over the older Version. It gives a
message: "specified service already exists".

Uninstalling the existing version (via the Software control panel) in
installing the new works.

Has anyone an idea what's the problem? Any workaround?

Thanks
 
You still need to stop and uninstall the existing service first. If you are
using an MSI Installer, you can mark it specifically to uninstall previous
versions. An alternative could be to simply stop the service, overwite the
executable and any related assemblies that are supposed to be "upgraded" and
restart the service.
Peter
 
Hi John,

thank you for responding.
This is all very well in my development/testing environment. But how can I
get this into a setup for our clients. Ideally it should work with and
without older installed version.

Christof
 

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

Back
Top