Jump to content

Check an installation

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Paedric

Paedric

    Newbie

  • Members
  • Pip
  • 1 posts
Hello.

I've created an installer that works great, however it sometimes fails to copy correctly all the files. As there are a lot of them (10's of thousands), it's rather hard to check them all.
I would have like to know if there was some way to check it automatically, a bit like a hash checksum, but with location included.

Thanks in advance.

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
I would assume file size of the folder would be a hint. I would find it rather difficult for the corrupted files to somehow remain exact size even though modified. You could store a list of files and its CRC32 checksums (much faster than MD5) and it should not take an extensive amount of time, it is more reliable. Adler-32 is an even faster option, however may be less widely implemented.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users