[VB6] update program

Custom Title Activated
Loyal Member
Joined
May 25, 2007
Messages
1,023
Reaction score
31
I'm developing a program, and it's almost at completion point, but it has something missing; an auto-updater. I'm no pro with VB6, but I can work my way round, and I wanted to ask does anybody who knows how to do this, tell me how to?
So it's like 'Program 01.0 gets released with auto updater--> Program 01.1 gets released, and when the next time the user opens 01.0, the program notifys him/her and offers an option to update or not. If the user chooses 'no', the program auto updates itself upon next opening'.
Thanks.
 
Re: Visual Basic 6; update program

i dont program in that noobie language, but if its a single exe you need updated 1 way is to

1) open connection to webserver
2) check program.exe file date on webserver (last updated)
3) match to own program date
4) if newer on webserver, ask to update.

OR

you can do it as a text file with version number in it.

if alot of files, you can choose to do MD5 check on all files, download a MD5 txt list from webserver and match if its same or new.

dont know if this will be of help (as i said, i dont ever use visual basic).

http://www.vb-helper.com/howto_get_file_from_web.html
 
Re: Visual Basic 6; update program

Thanks, I know it's a 'noobie' language, but since I failed at learning C# six months ago, it was the only option.

EDIT:
That shows how to download a file from the web, I already knew how to do that, I need specific help on how to do this update thing. :59:
 
Well, to do this you have 2 methods..

1. You can use the Internet Transfer Controls to Download files.
Initially you can download an ini file specifing the Latest Version and then download and update the files accordingly.

2. You can setup an FTP Server and use Third Party FTP ActiveX Controls to access and download the files.

As far as updating is concerned, you can use the Microsoft Scripting Runtime Reference and use the FileSystemObject to perform File operations like copying and replacing.
Furthermore, if you want to Compress the update contents, you can use command line software unpacking which is easily available in the internet!

Hope this Helps!

I recommend the FTP setup because it has few advantages like Getting the Remote File Size, Transfer Rate etc.
 
Back