473,470 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Vb.net Windows Service with Automatic Updates

I have read approximately 30 articles now on various methods to make your
vb.net application automatically update itself and I can't see how they apply
to a vb.net windows services projects. The goal of the project is to write a
windows service in vb.net that runs on many workstations that can
automatically update itself from a central web server or share (either or
doesn’t matter). I do not want the service to re-install itself each time
there is an update. I wanted to use the model used to run forms remotely but
cannot seem to find any examples of loading remote classes for use in
services. If anyone has any ideas or could point me to any articles on the
subject I would be most appreciative.
TIA,
Blax…

Nov 21 '05 #1
4 5557
When people talk about automatically updating applications, they are usually
referring to automatically downloading new applications bits, to the local
machine (the machine where the service is running), shutting down the current
app, and starting the new one. It doesn't sound like this is what you're
looking for, but if it is, the Application Updater Application Block will do
this for you.

If you really want your Windows Service to run functionality in a class
that's not on the local machine, you should look into Web services. This
would let you put functionality on a central server, and call it from your
local Windows service.

Scott Swigart
www.swigartconsulting.com

"Blaxer" wrote:
I have read approximately 30 articles now on various methods to make your
vb.net application automatically update itself and I can't see how they apply
to a vb.net windows services projects. The goal of the project is to write a
windows service in vb.net that runs on many workstations that can
automatically update itself from a central web server or share (either or
doesn’t matter). I do not want the service to re-install itself each time
there is an update. I wanted to use the model used to run forms remotely but
cannot seem to find any examples of loading remote classes for use in
services. If anyone has any ideas or could point me to any articles on the
subject I would be most appreciative.
TIA,
Blax…

Nov 21 '05 #2
I think normally a web service would be the way to go, but in this case I
don't know if or how that can help me. What I really need to be able to do is
change out the core code at will. Functions, subs and events that would
normally be housed in a class in a DLL included with the app. This DLL must
be able to interact with the local machine for example process.start
something on the local workstation. I can't see how to do that from a web
service without a significant ammount of logic being in the service itself
which is what I want to avoid.

Basically I want a "dummy" windows service running on a workstation that
will run subs in a class that is on a remote machine. A blank canvas, as it
were. Does that make sense?

TIA,
Blax...

"Scott Swigart" wrote:
When people talk about automatically updating applications, they are usually
referring to automatically downloading new applications bits, to the local
machine (the machine where the service is running), shutting down the current
app, and starting the new one. It doesn't sound like this is what you're
looking for, but if it is, the Application Updater Application Block will do
this for you.

If you really want your Windows Service to run functionality in a class
that's not on the local machine, you should look into Web services. This
would let you put functionality on a central server, and call it from your
local Windows service.

Scott Swigart
www.swigartconsulting.com

"Blaxer" wrote:
I have read approximately 30 articles now on various methods to make your
vb.net application automatically update itself and I can't see how they apply
to a vb.net windows services projects. The goal of the project is to write a
windows service in vb.net that runs on many workstations that can
automatically update itself from a central web server or share (either or
doesn’t matter). I do not want the service to re-install itself each time
there is an update. I wanted to use the model used to run forms remotely but
cannot seem to find any examples of loading remote classes for use in
services. If anyone has any ideas or could point me to any articles on the
subject I would be most appreciative.
TIA,
Blax…

Nov 21 '05 #3
Not to split hairs, but you don't actually want a "windows service running on
a workstation that will run subs in a class that is on a remote machine".
You want a windows service that downloads an assembly with subs, but you need
those subs to run on the local machine (you mentioned process.start, for
example).

In this case, check out the Application Updater Application Block. It does
exactly what you're looking for. There's a dummy AppStart process that runs
the latest version of your code. When a new version is available, it's
downloaded from the server, the current version stops, and the new version
starts. AppStart always runs the latest version, so this would be the
service you would register.

What you're looking to do isn't trivial, esp with a service, but the App
Updater is the best bet.

"Blaxer" wrote:
I think normally a web service would be the way to go, but in this case I
don't know if or how that can help me. What I really need to be able to do is
change out the core code at will. Functions, subs and events that would
normally be housed in a class in a DLL included with the app. This DLL must
be able to interact with the local machine for example process.start
something on the local workstation. I can't see how to do that from a web
service without a significant ammount of logic being in the service itself
which is what I want to avoid.

Basically I want a "dummy" windows service running on a workstation that
will run subs in a class that is on a remote machine. A blank canvas, as it
were. Does that make sense?

TIA,
Blax...

"Scott Swigart" wrote:
When people talk about automatically updating applications, they are usually
referring to automatically downloading new applications bits, to the local
machine (the machine where the service is running), shutting down the current
app, and starting the new one. It doesn't sound like this is what you're
looking for, but if it is, the Application Updater Application Block will do
this for you.

If you really want your Windows Service to run functionality in a class
that's not on the local machine, you should look into Web services. This
would let you put functionality on a central server, and call it from your
local Windows service.

Scott Swigart
www.swigartconsulting.com

"Blaxer" wrote:
I have read approximately 30 articles now on various methods to make your
vb.net application automatically update itself and I can't see how they apply
to a vb.net windows services projects. The goal of the project is to write a
windows service in vb.net that runs on many workstations that can
automatically update itself from a central web server or share (either or
doesn’t matter). I do not want the service to re-install itself each time
there is an update. I wanted to use the model used to run forms remotely but
cannot seem to find any examples of loading remote classes for use in
services. If anyone has any ideas or could point me to any articles on the
subject I would be most appreciative.
TIA,
Blax…

Nov 21 '05 #4
Actually that is exactly what I want, I want the service to dynamically load
a class (dll) and run subs contained within. The assembly.formload looks
about as close to what I want to do, however, the only documentation I have
found is all based around using windows forms which of course you do not have
in a service.

The application updater block does exactly what I do not want to do.
Blax...

"Scott Swigart" wrote:
Not to split hairs, but you don't actually want a "windows service running on
a workstation that will run subs in a class that is on a remote machine".
You want a windows service that downloads an assembly with subs, but you need
those subs to run on the local machine (you mentioned process.start, for
example).

In this case, check out the Application Updater Application Block. It does
exactly what you're looking for. There's a dummy AppStart process that runs
the latest version of your code. When a new version is available, it's
downloaded from the server, the current version stops, and the new version
starts. AppStart always runs the latest version, so this would be the
service you would register.

What you're looking to do isn't trivial, esp with a service, but the App
Updater is the best bet.

"Blaxer" wrote:
I think normally a web service would be the way to go, but in this case I
don't know if or how that can help me. What I really need to be able to do is
change out the core code at will. Functions, subs and events that would
normally be housed in a class in a DLL included with the app. This DLL must
be able to interact with the local machine for example process.start
something on the local workstation. I can't see how to do that from a web
service without a significant ammount of logic being in the service itself
which is what I want to avoid.

Basically I want a "dummy" windows service running on a workstation that
will run subs in a class that is on a remote machine. A blank canvas, as it
were. Does that make sense?

TIA,
Blax...

"Scott Swigart" wrote:
When people talk about automatically updating applications, they are usually
referring to automatically downloading new applications bits, to the local
machine (the machine where the service is running), shutting down the current
app, and starting the new one. It doesn't sound like this is what you're
looking for, but if it is, the Application Updater Application Block will do
this for you.

If you really want your Windows Service to run functionality in a class
that's not on the local machine, you should look into Web services. This
would let you put functionality on a central server, and call it from your
local Windows service.

Scott Swigart
www.swigartconsulting.com

"Blaxer" wrote:

> I have read approximately 30 articles now on various methods to make your
> vb.net application automatically update itself and I can't see how they apply
> to a vb.net windows services projects. The goal of the project is to write a
> windows service in vb.net that runs on many workstations that can
> automatically update itself from a central web server or share (either or
> doesn’t matter). I do not want the service to re-install itself each time
> there is an update. I wanted to use the model used to run forms remotely but
> cannot seem to find any examples of loading remote classes for use in
> services. If anyone has any ideas or could point me to any articles on the
> subject I would be most appreciative.
>
>
> TIA,
> Blax…
>

Nov 21 '05 #5

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

Similar topics

5
by: Lyle Fairfield | last post by:
**** begin quote A **** UPDATE: Time is running out! Please note that the mechanism to temporarily disable delivery of Windows XP SP2 is only available for a period of 240 days (8 months) from...
2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
6
by: Chris Lewis | last post by:
Hi, We have just experienced a very frustrating and time-consuming problem after applying Windows 2K updates to our webservers over the weekend, and I though I'd share this in case anyone else...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
22
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
1
by: =?Utf-8?B?UGVkcm9Bc2FuaQ==?= | last post by:
I am having trouble with 3 Updates for XP x64. Service pack 2, RDC update 925876 and Security Update 928843. I have enabled verbose logging, followed the steps in 873148, but there is no Error 5. I...
0
by: =?Utf-8?B?VG9kZA==?= | last post by:
I need to be able to set Windows "Automatic Updates" to "Download updates for me, but let me choose when to install them" on my clients computers programmatically. If someone could point me in the...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
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
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...
0
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...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.