12-16-2011, 05:13 AM
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.
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.
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.