473,695 Members | 3,057 Online
Bytes | Software Development & Data Engineering Community
+ 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 5596
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.formlo ad 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
1262
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 August 16, 2004. At the end of this period (after April 12, 2005), Windows XP SP2 will be delivered to all Windows XP and Windows XP Service Pack 1 systems. **** end quote A **** **** begin quote B **** Windows XP SP2 includes MDAC 2.81.
2
21902
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 successful. I'm now ready to start my service (I think) but the NET START command does not appear to indicate that the service is available to be run. The output for NET START is below as well. The Services list in the W2K administrator...
6
1447
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 has the same problem and can learn from this. Our webservers are running .NET 1.0 and 1.1 side by side, though we are no longer using 1.0 at all. Our web application also runs .NET remoting to talk to middle tier components on other boxes. The...
0
2225
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". There are no other statements to indicate what object cannot be created. Otherwise, everything on the test Windows Server 2003 works fine—all import data updates correctly. Unfortunately, my normal development environment is not Windows...
22
6265
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 client (MS Access vs ..NET Windows Forms) would be preferred over the other. While I have some good arguments on both sides, I would appreciate your points of view on the topic.
4
4178
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 check to see if the status is in stopped or running mode. But that doesn't tell me if it is actually running. I need to know this so that if it happens I can programmatically start the same service on another machine.
1
1929
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 have no idea where to go. Can anyone help? I emailed the Automatic Update helpers, but they just told me to come here. I have gone round in circles with this. Two machines, one fresh install, one about 4 months old. Neither will install these...
0
1198
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 right direction I would appreciate it. -- Thanks, Todd Manchester Chronicle Technologies Inc
60
7983
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type? ----------------------------------------------------------------------- It is not possible with client-side JavaScript. Some browsers accept the Content-Disposition header, but this must be added by the server. Taking the form:- ` Content-Disposition: attachment; filename=filename.ext `
0
8971
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8817
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7651
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5831
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4336
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4571
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2994
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
2
2258
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1970
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.