Verify that the version of a file is correct before Compiling

0

A file of the Delphi7's own LIBs has been changed, for a specific need. Since we have several programmers, I need to make sure everyone has this change, and in the future as well.

As Delphi libs are installed and are not versioned, I need to check if it is in the correct version.

I wanted to do this before compiling the version.

What I was able to do is to create a hash of the file so I guarantee it was not modified

  {$IF  getMD5('C:\Delphi7\Lib\arquivo.dcu') = 'B1C1CBE80477S09AC4C1B39C28FE9619'}
    {$Message Fatal 'Versão do arquivo arquivo.dcu na Lib do Delphi7 esta errada.}
  {$IFEND}

That way it does not work, because every moment returns the message of [Fatal Error]

Any ideas?

    
asked by anonymous 02.08.2018 / 15:57

0 answers