Click here to Skip to main content
Licence CPOL
First Posted 1 May 2008
Views 26,405
Downloads 807
Bookmarked 23 times

AutoUpdate for VB.NET

By | 1 May 2008 | Article
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)

About the Author

pimb2



Netherlands Netherlands

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralAutoUpdate-2 Pinmemberbhogsett3:05 13 Feb '10  
AnswerRe: AutoUpdate-2--The Zip files Pinmemberbhogsett3:22 13 Feb '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberpimb23:30 13 Feb '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett4:16 13 Feb '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberjuan321121:48 16 Mar '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett2:52 17 Mar '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberjuan32113:43 17 Mar '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett4:41 17 Mar '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberpimb25:31 17 Mar '10  
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett6:53 17 Mar '10  
GeneralName ' Autoupdate ' is not declared - error Pinmembervidhyaej17:27 9 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb28:00 10 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej23:42 10 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej1:11 11 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb24:00 11 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej17:50 12 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb20:29 13 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej18:26 15 Feb '10  
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb29:53 16 Feb '10  
General'Ionic.Utils.Zip.ZipFile' is not defined Pinmembervidhyaej19:12 7 Feb '10  
GeneralRe: 'Ionic.Utils.Zip.ZipFile' is not defined Pinmemberpimb219:42 7 Feb '10  
QuestionAbout the updater PinmemberMatthewAuld23:05 23 Apr '09  
AnswerRe: About the updater Pinmemberpimb24:37 24 Apr '09  
AnswerRe: About the updater PinmemberMatthewAuld20:58 25 Apr '09  
QuestionAn example? Pinmemberdavistv22:19 22 Jun '08  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 1 May 2008
Article Copyright 2008 by pimb2
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid