473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Upgrading a Service fails

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
Nov 15 '06 #1
4 1422
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


"Christof Nordiek" wrote:
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
Nov 15 '06 #2
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:u9*************@TK2MSFTNGP03.phx.gbl...
>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

Nov 16 '06 #3
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_****@timney.eclipse.co.ukschrieb im Newsbeitrag
news:r5******************************@eclipse.net. uk...
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:u9*************@TK2MSFTNGP03.phx.gbl...
>>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


Nov 17 '06 #4
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
"Christof Nordiek" <cn@nospam.dewrote in message
news:et**************@TK2MSFTNGP03.phx.gbl...
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_****@timney.eclipse.co.ukschrieb im Newsbeitrag
news:r5******************************@eclipse.net. uk...
>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
"Christof Nordiek" <cn@nospam.dewrote in message
news:u9*************@TK2MSFTNGP03.phx.gbl...
>>>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



Nov 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Russ McDaniel | last post by:
Originally posted to microsoft.public.dotnet.distributed_apps with no response. Reposted here with additional thoughts. --- Hello, I'm writing a Windows service which performs some...
29
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some...
4
by: Spurry Moses | last post by:
I know it's in Beta 2, but I can't report any good experiences with upgrading a project form 2003 to 2005. I tried to upgrade a 2003 project to C# Express 2005. My application has hardly...
8
by: Manfred Braun | last post by:
Hello All! I am writing a management application, which has to access remote machines registry via System.Diagnostics.EventLog.CreateEventSource . For each machine, I connect to, I create a...
0
by: Tony | last post by:
After upgrading from XP SP1 to XP SP2 get "operation is not allowed when the object is open" error messege. the app in production stop working properly. The refresh method is available, but fails....
4
by: ThunderMusic | last post by:
Hi, We have many servers setup as a cluster. When one server crashes, another one take the relay... We want to know if it's possible (I suppose it is) to make a Windows service developed with .NET...
0
by: Vids | last post by:
Hi, We are doing migration of web service from VS2003 to VS2005 After upgrading the project I m trying to add a web reference to the web service. While adding web reference it shows all the web...
22
by: robertgregson | last post by:
Using C#, .NET3.5, Visual Studio 2008 and WCF on Windows VISTA SP1, I have written a service, service host (as a C# console application) and a client. The service uses...
10
by: tshad | last post by:
I have a Windows Service that I need to put to sleep for about 10-20 minutes. The problem is that if you try to shut it down during this time, it will tell you that the service didn't respond in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.