Automatic Updates

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
108 posts Page 8 of 11
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Re: Automatic Updates
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.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Automatic Updates
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.
http://www.megaapps.tk/
User avatar
wenqing9
Just Registered
Just Registered
Posts: 1
Joined: Fri Apr 01, 2011 12:03 pm

Re: Automatic Updates
wenqing9
Image

Why do i get this error?
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: Automatic Updates
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
Image
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: Automatic Updates
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.
Image
User avatar
lesan101
Top Poster
Top Poster
Posts: 193
Joined: Tue Jun 29, 2010 8:10 am

Re: Automatic Updates
lesan101
umm the google sites doesn't let me upload .exe's ???

HOW AM I SUPPOSE TO UPATE MY PROGRAM THEN?
Image
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Automatic Updates
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.
You can find me on Facebook or on Skype mihai_92b
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Automatic Updates
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.)
You can find me on Facebook or on Skype mihai_92b
User avatar
irana
VIP - Donator
VIP - Donator
Posts: 5
Joined: Tue Jul 26, 2011 8:59 am

Re: Automatic Updates
irana
Is it possibel to run it in VB6?
User avatar
Bogoh67
VIP - Site Partner
VIP - Site Partner
Posts: 656
Joined: Sun Apr 18, 2010 8:20 pm

Re: Automatic Updates
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
108 posts Page 8 of 11
Return to “Tutorials”