Solved

Very big deal with MD5 code

Posted on 2006-11-16
3
187 Views
Last Modified: 2010-04-30

Hi here is my big problem I am usig a program that compare the MD5 conversion of a file to know which version it is.

This is my problem in my source folder such as in the support folder of my installer package the MD5 of my file is the same 815d39c5281c7e429f11280068a0990a but when I install it in a computer and I try to get the MD5 of the exe file installed that should be the same of the source and package I get ee3df4f69d43ae50a6e3e80c432eb613 somebody knows why my MD5 changes from the project to the installation and more important somebody could tell me how to avoid this
0
Comment
Question by:pedro_arzac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
fostejo earned 500 total points
ID: 17959421
pedro_arzac,

Have you compared the files, with something like 'fc' at the command prompt for instance, to ensure that they are actually the same as you expect them to be in the support folder and after installation - if they're not, that would be one obvious explanation for the MD5 hash difference.

Is it possible the support folder version of the executable is compressed in some way? Is the file size the same?

Hope that helps..

0
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 17960807
It sounds like the original hash was generated using a compressed version of the file, compare to the hash of an installed file.

Brian
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 17964202
>>compare the MD5 conversion of a file
>>I try to get the MD5 of the exe file installed
>>MD5 changes from the project to the installation

1.  Are you trying take MD5 conversion of the exe file itself? or you are taking some of your project related settings file(say ini, dat file)?

>>when I install it in a computer
2.  Have u tested the same exe in your machine where your project is run?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question