Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Visual Basic 2008 Tutorial - Automatic Program Update

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
15,885
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 14, 2010

http://www.cannabis-seeds-bank.co.uk/affiliates/jrox.php?id=2405_1_tlid_44

Visual Basic 2008 Tutorial - Automatic Program Update
In this video ill be showing you how to check for updates globally and alert your clients when a new version is available.


Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load CheckForUpdates() End Sub Public Sub CheckForUpdates() Dim file As String = Application.StartupPath & "/version.txt" Dim MyVer As String = My.Application.Info.Version.ToString If My.Computer.FileSystem.FileExists(file) Then My.Computer.FileSystem.DeleteFile(file) End If My.Computer.Network.DownloadFile("http://teamfearclan.com/version.txt", file) Dim LastVer As String = My.Computer.FileSystem.ReadAllText(file) If Not MyVer = LastVer Then MsgBox("Update Available") 'My.Computer.Network.DownloadFile("http://mysite.com/program.exe", "") Else MsgBox("Program is up to date") End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click CheckForUpdates() End Sub
End Class


Ignore these tags:
how to computer tutorials hacks cmd never again will i be able to make money online with youtube ebay myspace hacks crack white black facebook he was so cute irfanview audacity photoshop retouching effects sony vegas platinum eight 8 1 2 3 4 5 6 7 8 9 10 lol he got owned everyone lets party like a rock star rockstar sean paul ownage hitting drunk these are my tags lol coming for pizza eating pig squealing technician techie making cash with your profile account on youtube haha charlie bit me smosh fred fred gets his finger bit off the song charlie the unicorn funny stuff to look at making cash online scratched chalk videos scratchedchalkvideos we own the tutorial making industry the how to masters

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (KillaBeMe1)

  • it constantly syas: update avalible and then there is a error: file already exist

    what do i need to do?????

  • @TheDesius

    Follow the damn video tutorial, i mean how much easier can it get.

  • So, OTHER people on OTHER computers can download the update I added AFTER I let them download the first version? Or do I need to make the newest version before I launch the first version? (cuz thats pointless)

  • @sarranoob

    Once you add this feature then your program will be able to update as long as u leave the feature in ur program.

Top Comments

  • @TDAproductionsGGG You have to go to My Project then click on Assembly Information... and then change the assembly and the file version in the version of your version.txt

    THUMPS UP so everybody cloud see it!

see all

All Comments (66)

Sign In or Sign Up now to post a comment!
  • very good

  • Where will the update save to???

  • 1/10 zoom in i hate it

  • @MalwareExperts

    sorry for the late reply, i don't code vb.net anymore. But it looks to me that the file exists so you need to do a check for that file, delete if it exists and re-download the new file. ie 2:30 of the video.

  • Awesome thanks!

  • @TheDesius i also get this.. is there anyway to replace the old file with the new 1?

  • thank-you sooo much has helped a TON. Thumbs up for you

  • @GhostFire218

    no, MyVer and lastver have to be exactly the same otherwise it will trigger an update, reguardles if the version is higher or lower.. this means that no matter what clients are running the most current version

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more