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
Peter Bromberg [C# MVP] - 15 Nov 2006 16:15 GMT
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

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> 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.
[quoted text clipped - 9 lines]
>
> Thanks
John Timney (MVP) - 16 Nov 2006 22:20 GMT
Usually you can get away with just stopping the service and overwriting the
exe with the new one. You only need to reinstall if something significant
has changed and the entries about the service are different.
--
Regards
John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
>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.
[quoted text clipped - 9 lines]
>
> Thanks
Christof Nordiek - 17 Nov 2006 07:26 GMT
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
> Usually you can get away with just stopping the service and overwriting
> the exe with the new one. You only need to reinstall if something
[quoted text clipped - 21 lines]
>>
>> Thanks
John Timney (MVP) - 17 Nov 2006 15:37 GMT
Can you build your setup to run a batch file that stops the service, and
issues the uninstall command if thats required before your install
commences?
Regards
John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
> Hi John,
>
[quoted text clipped - 30 lines]
>>>
>>> Thanks