Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUT]Auto-Update System[TUT]
#1
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.

Reply
#2
Hi mate,

I just need this for my program. Thanks for sharing mate.
Reply
#3
(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.
Reply
#4
This helps alot, i suggest adding an execution code so when it downloads, it also executes
NEED TO CONTACT ME? FIND ME ON HACKFORUMS HERE
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to hook the keyboard. [VB.NET] [TuT] Vorfin 92 61,034 09-23-2019, 11:55 AM
Last Post: Jamimartin
  [TUT]Creating Advanced Web Browser with Awesome Theme Imaking31 0 1,320 05-25-2013, 03:12 AM
Last Post: Imaking31
  VB.NET Port Scanner [TUT] Fragma 30 14,498 11-27-2012, 11:26 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] MD5 Encrypter & Finder [VB.NET] Fragma 12 7,869 11-25-2012, 10:36 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 62,028 10-07-2012, 06:56 AM
Last Post: a99

Forum Jump:


Users browsing this thread: 1 Guest(s)