Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Upgrading a Service fails

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christof Nordiek - 15 Nov 2006 13:51 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.