Trouble with replay of downloaded files

Topics: Updater Application Block
Sep 27, 2005 at 9:12 AM
originally posted by: BiztalkOPhile

I've been having some trouble with keeping track of which files have already been downloaded. Essentially, the updater.CheckForUpdates() always returns results, even after I have applied the updates in that manifest.

I'm sure that I'm just doing something wrong...what are the rest of you doing to ensure that you are only downloading updates once?
Sep 27, 2005 at 3:21 PM
originally posted by: dcrowe


An update can be downladed more than when the BITS records are deleted. These are files that go in the BasePath (set in the config).

In my situation you can't rely on these settings remaining intact, so the other option is to use the hashing function. You provide a Hash for each file in the update, and the update block will compare the hash of the file on the server with that of the local file. The update will still be found when you do a CheckForUpdates, but there will be no files in the update's file listing.