I need help with this updater

Posts 1–4 of 4 · Page 1 of 1
I need help with this updater
i need help with this updater thing.

http://www.youtube.com/watch?v=

um i can get it to kinda work after I've been playing with that code for like 2 hours i went blank idk what to do. im just 100% out of ideas because no matter what it says that there is a new version available even if its the newest. and if some one helps me with that i want to make it so if there is as newer version it will show the dl link for the newest version plz.
We can't know what you are doing wrong without seeing the code,

And just a side note, VB.net has a built in auto update feature


And I can tell you one thing, I know using One_click is buggy when it comes to autoupdates and check for updates ( I didn't watch the tut, but if they use it...) Manually upload the files to the server via ftp client, Thats what I do.

Quote Originally Posted by NextGen1 View Post
We can't know what you are doing wrong without seeing the code,

And just a side note, VB.net has a built in auto update feature


And I can tell you one thing, I know using One_click is buggy when it comes to autoupdates and check for updates ( I didn't watch the tut, but if they use it...) Manually upload the files to the server via ftp client, Thats what I do.

well to be honest... i don't get ftp's/ftp clients at all.
but heres the code for the updater.

button 1
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Button1.Enabled = False
        Label1.Text = "Checking For Updates"
        WebClient1.DownloadFileAsync(New Uri("*"), "Version.txt") 'replace * with Where file is E.G "http://cozmo195studios.*********/Version/update.txt"
    End Sub
yes i have put my uri in the "" where the star is.

Webclient
Code:
    Private Sub WebClient1_DownloadFileCompleted(ByVal sender As System.Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles WebClient1.DownloadFileCompleted
        'note 1.00 would be 1.0.0
        Dim read As String = My.Computer.FileSystem.ReadAllText("Version.txt")
        If Not read = "2.00" Then
            If read = "" Then
                Label1.Text = "Could not check for updates, Please try again later"
            Else
                Label1.Text = "Newer Version Available!" & "(" & read & ")"
            End If
        Else
            Label1.Text = "Newer Version Available!" & "(" & read & ")"
        End If
    End Sub
... Auto updates check a webclient, you are connecting via FTP using OneClick (in VS) or a FTP client, If you drag your compiled code to your ftp site, it will work, if you use oneclick to upload 80% of the time, it doesn't work
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?