Click here to Skip to main content
12,689,349 members (24,655 online)
Click here to Skip to main content
Add your own
alternative version

Stats

46.9K views
2.5K downloads
29 bookmarked
Posted

AutoUpdate for VB.NET

, 1 May 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
This is a DLL library to check for updates for your application.

Introduction

You can use this library for checking for updates for your application. It's simple and small (only one function). The update package must be a zip file.

Using the Code

The DLL only contains one function: CheckForUpdates in the AutoUpdate namespace.

It has the following arguments:

  • NewestVersionLocation As String - This is the file location on the Internet where your newest version is placed, in plaintext. The file can only contain, for example: 2.0.
    You can use a *.txt file for this, but any extension is possible.
  • NewestVersionDownloadLocation As String - This is the file location on the Internet where your newest application (files) are stored in a zip file.
  • UnzipDir As String - This is the directory where the files must be extracted. If you use an empty string, or you omit this argument, the startup path of the application is used.
  • DisplayWindow As Boolean - With this, you can choose to display the download window or not.
  • MsgBoxText As String - This is the message displayed in a MsgBox if there is an update available.
  • MsgBoxTitle As String - This is the title of that MsgBox.

For the source code, download the zip file above, it has comments on my own written code.

Using an empty string for the last four arguments means the same as omitting them.

Example to Use

AutoUpdate.CheckForUpdates(http://yourdomain.com/versions/app.txt, _
    "http://yourdomain.com/update_downloads/app.zip", "", True, _
    "Newer version available. Download it?", "")

References

History

  • 1st May, 2008: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

pimb2
Netherlands Netherlands
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralAutoUpdate-2 Pin
bhogsett13-Feb-10 4:05
memberbhogsett13-Feb-10 4:05 
AnswerRe: AutoUpdate-2--The Zip files Pin
bhogsett13-Feb-10 4:22
memberbhogsett13-Feb-10 4:22 
GeneralRe: AutoUpdate-2--The Zip files Pin
pimb213-Feb-10 4:30
memberpimb213-Feb-10 4:30 
GeneralRe: AutoUpdate-2--The Zip files Pin
bhogsett13-Feb-10 5:16
memberbhogsett13-Feb-10 5:16 
GeneralRe: AutoUpdate-2--The Zip files Pin
juan321116-Mar-10 22:48
memberjuan321116-Mar-10 22:48 
GeneralRe: AutoUpdate-2--The Zip files Pin
bhogsett17-Mar-10 3:52
memberbhogsett17-Mar-10 3:52 
GeneralRe: AutoUpdate-2--The Zip files Pin
juan321117-Mar-10 4:43
memberjuan321117-Mar-10 4:43 
GeneralRe: AutoUpdate-2--The Zip files Pin
bhogsett17-Mar-10 5:41
memberbhogsett17-Mar-10 5:41 
GeneralRe: AutoUpdate-2--The Zip files Pin
pimb217-Mar-10 6:31
memberpimb217-Mar-10 6:31 
GeneralRe: AutoUpdate-2--The Zip files Pin
bhogsett17-Mar-10 7:53
memberbhogsett17-Mar-10 7:53 
GeneralName ' Autoupdate ' is not declared - error Pin
vidhyaej9-Feb-10 18:27
membervidhyaej9-Feb-10 18:27 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
pimb210-Feb-10 9:00
memberpimb210-Feb-10 9:00 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
vidhyaej11-Feb-10 0:42
membervidhyaej11-Feb-10 0:42 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
vidhyaej11-Feb-10 2:11
membervidhyaej11-Feb-10 2:11 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
pimb211-Feb-10 5:00
memberpimb211-Feb-10 5:00 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
vidhyaej12-Feb-10 18:50
membervidhyaej12-Feb-10 18:50 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
pimb213-Feb-10 1:29
memberpimb213-Feb-10 1:29 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
vidhyaej15-Feb-10 19:26
membervidhyaej15-Feb-10 19:26 
GeneralRe: Name ' Autoupdate ' is not declared - error Pin
pimb216-Feb-10 10:53
memberpimb216-Feb-10 10:53 
General'Ionic.Utils.Zip.ZipFile' is not defined Pin
vidhyaej7-Feb-10 20:12
membervidhyaej7-Feb-10 20:12 
GeneralRe: 'Ionic.Utils.Zip.ZipFile' is not defined Pin
pimb27-Feb-10 20:42
memberpimb27-Feb-10 20:42 
QuestionAbout the updater Pin
MatthewAuld24-Apr-09 0:05
memberMatthewAuld24-Apr-09 0:05 
AnswerRe: About the updater Pin
pimb224-Apr-09 5:37
memberpimb224-Apr-09 5:37 
AnswerRe: About the updater Pin
MatthewAuld25-Apr-09 21:58
memberMatthewAuld25-Apr-09 21:58 
QuestionAn example? Pin
davistv22-Jun-08 23:19
memberdavistv22-Jun-08 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170113.4 | Last Updated 1 May 2008
Article Copyright 2008 by pimb2
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid