Updating VB.NET Program (exe)

  • Thread starter Thread starter Sarah
  • Start date Start date
S

Sarah

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.
 
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.
 
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
Main App Continues...

8)
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top