all groups > visual studio .net setup > november 2006 >
You're in the

visual studio .net setup

group:

Upgrading a Service fails



RE: Upgrading a Service fails Peter Bromberg [C# MVP]
11/15/2006 8:15:02 AM
visual studio .net setup: 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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




[quoted text, click to view]
Upgrading a Service fails Christof Nordiek
11/15/2006 2:51:47 PM
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

Re: Upgrading a Service fails John Timney (MVP)
11/16/2006 10:20:12 PM
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


[quoted text, click to view]

Re: Upgrading a Service fails Christof Nordiek
11/17/2006 12:00:00 AM
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

"John Timney (MVP)" <x_john@timney.eclipse.co.uk> schrieb im Newsbeitrag
news:r5WdnTVZ4LySecHYnZ2dnUVZ8qSdnZ2d@eclipse.net.uk...
[quoted text, click to view]

Re: Upgrading a Service fails John Timney (MVP)
11/17/2006 3:37:46 PM
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


[quoted text, click to view]

AddThis Social Bookmark Button