PDA

View Full Version : Checking validity of my build



rashdir
05-05-2004, 01:05 PM
I'm trying to see if it's possible to detect corruption of a setup.exe we created. This is an InstallScript project.

I was reading about MD5 and from our configuration(setup.ini) I can see that it's enabled. A search on help talks about OnSelfRegistrationError() being called when the installer detects an error with MD5.

I'm lost here. What am I supposed to do other than turn on MD5 for the file corruption to be detected? I also included the OnSelfRegistrationError() method and was expecting it to be called but it never is.

FYI, I'm editing the setup.exe using a hex-editor and corrupting hundreds of bytes of this executable. I still don't see the OnSelf...() being called.

An alternative would be to do md5 on the setup.exe outside of InstallScript and then informing user's to validate themselves that they downloaded our application correctly.