Re: Comparing two EXEs




"Bob" <rcf2@xxxxxxxxx> skrev i en meddelelse
news:42cbff76$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> When we make builds of our products, our QA department wants to check
> the executables to ensure that the ones that were not supposed to
> change in fact did not change. So they do a byte compare of the new
> release with the last release. Unfortunately, when we build, we
> recompile all EXEs. There must be date/time information (or something
> else?) in the EXEs that make this byte compare fail even if the code
> did not.

Up to and including Delphi3 each compile gave the exact same exe.
But starting with Delphi4 unused areas in the exe-file are filled with
random garbage on each compile.

> My question: Is there a way to compare an EXE to a previous compile of
> the same EXE and determine if there were actual code changes?

I can't see how to do that except by doing some very complicated examination
of the exe file and I wouldn't know how to do that.
Instead of trying to compare exe files, it think it would be better to check
if the source files have changed.
--
Finn Tolderlund


.



Relevant Pages

  • Re: VB6 Compiler
    ... various types of sections within the .EXE; ... sections, readable and writeable sections, executable code sections, common ... I've also noticed that the EXE file size ... loading the project to compile. ...
    (comp.lang.basic.visual.misc)
  • Re: VB6 Compiler
    ... the EXE file contains more than just the executable ... I've also noticed that the EXE file size can ... loading the project to compile. ... that the vb6 compiler gives random data on every compile... ...
    (comp.lang.basic.visual.misc)
  • Re: Question on exe size
    ... There are a lot of Active Reports, which I suppose could inflate the size of the exe ... If I take the code from my new box, and compile it on my laptop, I get a file of around 26mb, 96 on my new box. ... Are there any other native code compilers out there for VB6 that I could try? ... I'm wondering if you're not seeing large sector allocation on a bigger disk and reporting that rather than actual .exe file size? ...
    (microsoft.public.vb.general.discussion)
  • Re: Exe Size
    ... of how big anyone's exe has gotten that actually has an application that is ... It's a tough thing to compare... ... sizes depending on how resources are handled. ... stuff such as database access programs (one of the ones I'm working on ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Getting MD5 of EXE
    ... I'm just starting out here so i need a little more help, if you don't mind. ... FileStream for the EXE file and pass that to the ComputeHash method on the ... which you can compare to your stored value. ... specified MD5. ...
    (microsoft.public.dotnet.languages.csharp)