Auto Update Checker [VB.NET] 02-02-2013, 10:23 PM
#1
This tutorial is created to show you how to make an auto-update checker in Visual Basic.NET.
Right, how this works is by checking a website for a certain string, and if it contains that string, then it'll continue, but if it's something different, it'll open up a link to the new version. Let's get started!
All you have to do is make a few changes to the following code and put it in your Form1_Load:
Have your text document/html documents or anything as plain text with the text "1.0" (without quotation marks) and whenever you have an update out, just change your document to "2.0" (without quotation marks) and it'll automatically display the message box and open a link to your program. Make sure you have the link of what the program is going to be already in the program when you release it, or this'll be pointless.
Enjoy!
Right, how this works is by checking a website for a certain string, and if it contains that string, then it'll continue, but if it's something different, it'll open up a link to the new version. Let's get started!
All you have to do is make a few changes to the following code and put it in your Form1_Load:
Code:
Dim webclient as New WebClient
Dim Response as webclient.DownloadString("http://yourwebsite.com/update.txt") 'Change this link to one of your choice
If Response = "2.0" Then
MsgBox("A NEW UPDATE IS AVAILABLE!", vbInformation, "Update")
Process.Start("http://yourdownloadlink.com/program.exe") 'Enter your download link here :)
End if
Have your text document/html documents or anything as plain text with the text "1.0" (without quotation marks) and whenever you have an update out, just change your document to "2.0" (without quotation marks) and it'll automatically display the message box and open a link to your program. Make sure you have the link of what the program is going to be already in the program when you release it, or this'll be pointless.
Enjoy!