PDA

View Full Version : how do you make an updater in visual basic 6.0 or 2005


jeremy6996
11-23-2006, 03:15 PM
Can enyone here tell me how to create and updater in visual basic 2005 or 6.0

Reedbeta
11-23-2006, 06:51 PM
What do you mean by an updater?

cypher543
11-23-2006, 10:34 PM
When the application loads, generate a hash from the data files, then compare it with a hash that you have stored on an update server. If the hashes are different, download the new data files from the update server and replace the old ones on the local machine.

You'll need to use a mix of the System.Cryptography and System.Net classes for that type of thing (assuming you are using VB2005). VB6 will need Sockets and I'm not sure if VB6 has an MD5 algorithm built-in. Plus, you'll have to build a simple server to listen for requests, compare hashes, and serve data files for download.