Re: Automatic Updates
Posted: Thu Mar 17, 2011 9:16 pm
Hello Marve25,
I think your getting that error because the page: https://sites.google.com/site/tvilsomme ... nload.html doesnt exist. This page needs to have the URL to where your updated *.exe is located.
If you still have trouble you can just hard code the link to your updated *.exe file like this. change the Form_load code to this:
That should work.
I think your getting that error because the page: https://sites.google.com/site/tvilsomme ... nload.html doesnt exist. This page needs to have the URL to where your updated *.exe is located.
If you still have trouble you can just hard code the link to your updated *.exe file like this. change the Form_load code to this:
Code: Select all
Then change: http://www.YOURSITE.com/UpdatedAPP.exe to the URL of your updated.exe file you need to download.Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim page As String = "http://www.YOURSITE.com/UpdatedAPP.exe"
Dim WebUpdate As System.Net.WebClient
WebUpdate = New System.Net.WebClient()
AddHandler WebUpdate.DownloadProgressChanged, AddressOf OnDownloadProgressChanged
AddHandler WebUpdate.DownloadFileCompleted, AddressOf OnFileDownloadCompleted
WebUpdate.DownloadFileAsync(New Uri(page), Application.StartupPath & "\Updated.exe")
End Sub
That should work.