473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Updating VB.NET Program (exe)

Hello, I would I go about letting my Windows VB.NET program connect to a
webserver and update itself if there is a new version of the exe? Sample
code would really be appreciated!

Thanks.
Nov 21 '05 #1
4 2205
Hi,

http://msdn.microsoft.com/msdnmag/is...S/default.aspx

Ken
-------------
"Sarah" <sa********@powertechcanada.com> wrote in message
news:WGuud.17245$U47.7021@clgrps12...
Hello, I would I go about letting my Windows VB.NET program connect to a
webserver and update itself if there is a new version of the exe? Sample
code would really be appreciated!

Thanks.

Nov 21 '05 #2
Hi Sara,

I have made an app downloading a zip using the Internet in a seperate
folder.
Then i add a key to runonce in the registry and tell the user to restart to
update the app.
This will start a simple app just backup the app, check the zip and
unzipping the downloaded files.

BITS is nice but also more complicated to implement.

"Sarah" <sa********@powertechcanada.com> schreef in bericht
news:WGuud.17245$U47.7021@clgrps12...
Hello, I would I go about letting my Windows VB.NET program connect to a
webserver and update itself if there is a new version of the exe? Sample
code would really be appreciated!

Thanks.

Nov 21 '05 #3
Is there ANY other trigger possible? RunOnce is not a very nice way to
do this. One way, that I have been thinking about... is to have my
application check for an update everytime it runs, and if it finds one,
the spawns a small updater engine, and terminates the original
application, when the updater engine is done replacing files or
whatever, it calls the 'new' application, and the update engine shuts
down. All the user sees is the main application stopping and
restarting with no human interaction. As long as you are familar with
the Process Class in .NET? It is not two hard.
Main App Runs (Checks for Pending Update?)
Main App Spawns Update Engine
Main App Shutdown
Update Engine (Download Files, Replace, Etc.)
Update Engine Spawns Main App (Updated, Etc.)
Update Engine Shutdown

Main App Continues...


8)

Nov 21 '05 #4
This is the nice part of .net you nolong need to quit the application to
write over the .dll files

So what I am saying is that you can be running your application. If you see
an update grab the new dlls and
create your object again.
your done

"Blitz Krieg" <Sc*******@DSLExtreme.COM> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Is there ANY other trigger possible? RunOnce is not a very nice way to
do this. One way, that I have been thinking about... is to have my
application check for an update everytime it runs, and if it finds one,
the spawns a small updater engine, and terminates the original
application, when the updater engine is done replacing files or
whatever, it calls the 'new' application, and the update engine shuts
down. All the user sees is the main application stopping and
restarting with no human interaction. As long as you are familar with
the Process Class in .NET? It is not two hard.
Main App Runs (Checks for Pending Update?)
Main App Spawns Update Engine
Main App Shutdown
Update Engine (Download Files, Replace, Etc.)
Update Engine Spawns Main App (Updated, Etc.)
Update Engine Shutdown

Main App Continues...


8)

Nov 21 '05 #5

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

Similar topics

2
by: Greg Siemon | last post by:
I am using URLDownloadToCacheFile to download updates to my system. The downloaded file(s) are packaged in a WinZip exe with a Boot program and a Boot.ini describing the included files, messages,...
0
by: Bob Jones | last post by:
Visual Studio .NET aborts after displaying "Help is updating to reflect your recent changes. This may take several minutes." generates Event Viewer Application error: Faulting application...
2
by: Trygve Lorentzen | last post by:
Hi, I'm developing an app with automatic version checking and updating. It must also track what version is installed for each customer in our customer database. I have made a small client to...
9
by: Jervin Justin | last post by:
Hi, I've been having this problem for some time with Web Forms: I have a web app that sends data to a service when the user presses a button. Based on the data, the server will send several...
1
by: Vavane | last post by:
When we update some files of our ASP.NET application on our customers servers, the vbc.exe process compiles these files "on the fly" at the first call. Right. For one server (running Windows...
3
by: Robert Brown | last post by:
Hi All.. I have written an application that clients of ours use at their business. The application checks our main FTP server for new reports and then downloads them. The download process also...
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
0
by: Mogrin | last post by:
So I have this windows .net form app, and I have the following goals: -Needs to be 1 single file, the executable, in any directory the user decides to download it to. No installation folder, no...
2
Sl1ver
by: Sl1ver | last post by:
Create my app.exe.config file e.g <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="MobileDBPath" value="\Program Files\database.sdf"/> <add...
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
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
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...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
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: 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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.