Click here to Skip to main content
Click here to Skip to main content

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

Comments and Discussions

 
GeneralAutoUpdate-2 Pinmemberbhogsett13-Feb-10 4:05 
AnswerRe: AutoUpdate-2--The Zip files Pinmemberbhogsett13-Feb-10 4:22 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberpimb213-Feb-10 4:30 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett13-Feb-10 5:16 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberjuan321116-Mar-10 22:48 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett17-Mar-10 3:52 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberjuan321117-Mar-10 4:43 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett17-Mar-10 5:41 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberpimb217-Mar-10 6:31 
GeneralRe: AutoUpdate-2--The Zip files Pinmemberbhogsett17-Mar-10 7:53 
GeneralName ' Autoupdate ' is not declared - error Pinmembervidhyaej9-Feb-10 18:27 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb210-Feb-10 9:00 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej11-Feb-10 0:42 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej11-Feb-10 2:11 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb211-Feb-10 5:00 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej12-Feb-10 18:50 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb213-Feb-10 1:29 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmembervidhyaej15-Feb-10 19:26 
GeneralRe: Name ' Autoupdate ' is not declared - error Pinmemberpimb216-Feb-10 10:53 
General'Ionic.Utils.Zip.ZipFile' is not defined Pinmembervidhyaej7-Feb-10 20:12 
GeneralRe: 'Ionic.Utils.Zip.ZipFile' is not defined Pinmemberpimb27-Feb-10 20:42 
QuestionAbout the updater PinmemberMatthewAuld24-Apr-09 0:05 
AnswerRe: About the updater Pinmemberpimb224-Apr-09 5:37 
AnswerRe: About the updater PinmemberMatthewAuld25-Apr-09 21:58 
QuestionAn example? Pinmemberdavistv22-Jun-08 23:19 
AnswerRe: An example? Pinmemberpimb28-Dec-08 9:28 
GeneralAdding a feature PinmemberMember 165764123-May-08 6:34 
GeneralRe: Adding a feature [modified] Pinmemberpimb28-Dec-08 9:14 
QuestionWhat about app.exe? PinmemberMegalan4-May-08 6:34 
AnswerRe: What about app.exe? Pinmemberpimb25-May-08 2:53 
GeneralRe: What about app.exe? PinmemberMegalan5-May-08 4:27 
GeneralRe: What about app.exe? Pinmemberpimb26-May-08 3:05 

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.

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