473,569 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto update a windows service

Hello,

I have written a windows service in .NET which i want update. Is there an
easy way to let a windows service update itself?
I've written some test programs with the AppUpdater component and this is
working perfect for 'normal' programs but can't be used for services. Maybe
it's possible to write some modifications to the AppUpdater component to
find the latest version and manually start the service??
Anybody aware of some methods to automatically update a service?

Thanks in advance!

Eric
Nov 22 '05 #1
1 4969
You would have to fire up an external program which could:
1) Stop the service
2) Un-Install the service
3) Download the new service
4) Install the new service
5) Start the new service

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"
"Eric Keij" <do*******@hotm ail.com> wrote in message
news:41******** *************** @news.xs4all.nl ...
Hello,

I have written a windows service in .NET which i want update. Is there an
easy way to let a windows service update itself?
I've written some test programs with the AppUpdater component and this is
working perfect for 'normal' programs but can't be used for services. Maybe it's possible to write some modifications to the AppUpdater component to
find the latest version and manually start the service??
Anybody aware of some methods to automatically update a service?

Thanks in advance!

Eric

Nov 22 '05 #2

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

Similar topics

2
3051
by: joo | last post by:
Hi! I need to implement something similar to "Automatic Update" feature which we see in windows 2000. We need this support for our software, basically to provide the software update. How can I exploit .Net technology to implement this? Any idea on this? Thanks.
1
476
by: Eric Keij | last post by:
Hello, I have written a windows service in .NET which i want update. Is there an easy way to let a windows service update itself? I've written some test programs with the AppUpdater component and this is working perfect for 'normal' programs but can't be used for services. Maybe it's possible to write some modifications to the AppUpdater...
0
4132
by: Tiziano | last post by:
I currently have installed .NET Framework 1.1 (_not_ the SDK version, though) on a Win2K PC. I am unable to apply the above-mentioned service pack via Windows Update. In the middle of the update process, Windows Installer informs that the update failed but gives no reason. I downloaded the service pack and tried to install it manually,...
0
1197
by: Peter Bourget | last post by:
I have a Windows service written in C#. I also have a Windows Form application for configuring the service. I have created a deployment project to install both at the same time. When I build the Install package I change the setup project version, this also changes the Product Code and Package code. I have RemovePreviousVersion set to true. ...
3
1655
by: DaveF | last post by:
Is this possible? Any examples???
4
2079
by: henry | last post by:
Hi all, I'm building a website which provides contents that only work for some browser types and versions. I know I can get most of the client browser information using HttpBrowserCapabilities class, but I can't find a way to determine IE update version or service pack number. Any ideas? TIA Henry
9
18822
by: Beowulf | last post by:
I was having this problem: http://groups.google.com/group/microsoft.public.sqlserver.server/msg/e36e423972323378?dmode=source with it taking an inordinate amount of time to enumerate the databases on my local SQL Server instance, so I went through all the local databases and unchecked "Auto Close" on the "Options" tab of the Database...
4
8807
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Following the samples online, we implemented a windows service in .Net. Like most services, there's a worker thread actually doing stuff in the background. The problem we've run into is how to get the service to exit when the worker thread has a fatal error *and* get the SCM to invoke the auto-restart configuration? The worker...
0
9827
NeoPa
by: NeoPa | last post by:
Introduction : I have come across a problem, on a number of occasions, where PCs under my control fail to load new updates successfully. This is true whether they are attempting to apply via the Automatic Updates facility built into the OS or whether accessing the MS Update site directly. Reason : The problem is often associated with DLL...
2
11072
by: Peter | last post by:
Is there a way to automatically update a Windows .NET service, kind of like Click-Once or put a file in the directory and the service would restart it's self and replace the executables or at least replace its DLLs without restarting? I know it's posible, (anything is posible) but is there anything already in place? Thank You Peter
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.