Page 8 of 11

Re: Automatic Updates

Posted: Thu Mar 17, 2011 9:16 pm
by CodenStuff
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:
Code: Select all
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
Then change: http://www.YOURSITE.com/UpdatedAPP.exe to the URL of your updated.exe file you need to download.

That should work.

Re: Automatic Updates

Posted: Thu Mar 17, 2011 9:29 pm
by Cheatmasterbw
Just something to let people know, you can upload exe files to google sites by changing the file name to something else (like .zip, etc.) and make your program change it back to .exe once downloaded.

This helps because Google Sites does not allow the uploading of .exe files.

Re: Automatic Updates

Posted: Fri Apr 01, 2011 1:25 pm
by wenqing9
Image

Why do i get this error?

Re: Automatic Updates

Posted: Fri Apr 01, 2011 3:34 pm
by hungryhounduk
Hey
This is annoying little reminder that either someone has miswritten the URL, or deleted the file ( no File Exists ).

So check your Code, the ERROR will be in there

Chris

Re: Automatic Updates

Posted: Fri Apr 01, 2011 3:50 pm
by Usman55
Actually, I got it fixed by registering at imageshack. But I think you have to stay logged in, in order to see the pics.

Re: Automatic Updates

Posted: Mon Apr 04, 2011 10:19 pm
by lesan101
umm the google sites doesn't let me upload .exe's ???

HOW AM I SUPPOSE TO UPATE MY PROGRAM THEN?

Re: Automatic Updates

Posted: Tue Jun 07, 2011 2:50 pm
by XTechVB
i'm a member for over a year now and when i registered i was just starting programing and this code looked very complicated but now i've tested it and it works perfectly! nice tutorial Craig Thanks.

Re: Automatic Updates

Posted: Tue Jun 07, 2011 2:52 pm
by XTechVB
lesan101 wrote:
umm the google sites doesn't let me upload .exe's ???

HOW AM I SUPPOSE TO UPATE MY PROGRAM THEN?
for websites that dont allow .exe files for direct upload the only option is FTP (but i dont think that Google has ftp. you should try other webhosts.)

Re: Automatic Updates

Posted: Fri Jul 29, 2011 10:04 pm
by irana
Is it possibel to run it in VB6?

Re: Automatic Updates

Posted: Sat Jul 30, 2011 6:16 am
by Bogoh67
um that my dear friend is called bumping and i dont think so because VB6 code works different than VB2k5 Vb2k8 and Vb2k10 and most likely vb2k12