
Originally Posted by
NextGen1
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 "https://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