0

hi,all

Just like the title,i want to programme a update software for my softeware,but i don't know how to start.

Is there a function that can download in VB6?And how to check the version?

Please help me....

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by vb5prgrmr
0

So you are talking about checking over the internet. You will need to create a seperate exe to (these are searchable terms (google/yahoo))...

1.)Check Internet Connection
2.)URLDownLoadToFile
3.)Open statement, Line Input Function, Close Statement, FreeFile Function
4.)ShellExecute

So the suggested process would be to...
1.)Check the internet connection to see if it is active
2.)If active then download text file that has the information to the latest exe version
3.)Open, Read, Close text file and check to see if current running exe is the same version or not.
4.)If not, launch secondary.exe to download new exe and end primary.exe
5.)Secondary.exe launches, waits a couple of seconds for primary.exe to end and then uses URLDownloadToFile to copy exe from http source to local drive.
6.)Secondary.exe then uses shell or shellexecute to launch primary.exe
7.)Secondary.exe ends


NOTE: This version will only work if you do not add dependancies between versions. If you do then you will need to download a new setup package and use that to install a new version.


Good Luck

0

Thanks your advice,but how can i download a file in VB6?
is there a function or API in VB6 can do this?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.