Support Forums

Full Version: [TUT]Auto-Update System[TUT]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You'll need.
1) A host
2) Some coding skills

First off you want to make a php file on your host.
I will name mine update.php.
So in "update.php" put the following in.
<?
echo"1.0"
?>
Change the 1.0 to your programs version.

Now save it.
Code:
Imports System.Net

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim web As New WebClient()
        Dim response = web.DownloadString("http://yoursite.com/update.php") 'Put your site here
        If response = "1.0" Then 'Put your programs version here.
        Else
            Process.Start("http://yoursite.com/download.exe") 'Put the download to the update here.
        End If
    End Sub
End Class

Now what you want to update it, change the 1.0 in the php version to 1.1 or whatever and don't forgot to change the 1.0 in the program too.

Also the download MUST be direct.


If you need any help fell free to pm me.

Hi mate,

I just need this for my program. Thanks for sharing mate.
(12-16-2011, 02:15 PM)Strafeness Wrote: [ -> ]Hi mate,

I just need this for my program. Thanks for sharing mate.

Just glad I could help you out mate.
This helps alot, i suggest adding an execution code so when it downloads, it also executes