#1 2011-11-15 02:53

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

MSI files are detected as ppt/xls/doc files

Hi Denis,

There is a problem with the Extension rule: The binary signature of a msi file is falsely detected as doc/ppt/xls.

How I found the problem:

My downloader's renaming mask was set wrongly. As a result, it changed the extension of a newly downloaded file to "flv".
It also had changed the file's name also, so I had no clue as to what the file really was.

So I used ReNamer's Extension rule and detected the extension based on its binary signature. It detected the file as doc/ppt/xls.
I renamed the file as doc, ppt and xls in turn, but that did not work. Finally I went to the downloader's history to find it was an msi.

Last edited by narayan (2011-11-15 02:54)

Offline

#2 2011-11-17 17:45

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: MSI files are detected as ppt/xls/doc files

Hi Narayan,

Microsoft formats: DOC, PPT, XLS, MSI, PUB, and many more - all have have same file signature. There is no way of detecting the difference between them just by the file signature. Their header hex dump is:

D0 CF 11 E0 A1 B1 1A E1

There is nothing I can do, unfortunately.

Offline

#3 2011-11-17 18:17

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: MSI files are detected as ppt/xls/doc files

Ah. But in that case the suggestions should include pub and msi as well. Especially pub, as this extension is gaining more popularity (thanks to iTab).

Offline

#4 2011-11-18 12:34

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Offline

#5 2011-11-18 23:44

Andrew
Senior Member
Registered: 2008-05-22
Posts: 542

Re: MSI files are detected as ppt/xls/doc files

DUBS TrID

I know it's overkill for most users, but TrID is so vastly superior, why would anyone who wants to decipher correct extensions on a regular basis want to waste time trying to decide between wildly varying formats such as DOC/PPT/XLS/MSI etc.?

Last edited by Andrew (2011-11-18 23:44)

Offline

#6 2011-11-19 11:20

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: MSI files are detected as ppt/xls/doc files

Hi Andrew,

I cannot find this TrID pas either in the menu or in the folder. Where is it?

Offline

#7 2011-11-19 20:46

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: MSI files are detected as ppt/xls/doc files

narayan wrote:

Hi Andrew,

I cannot find this TrID pas either in the menu or in the folder. Where is it?

Second page of
http://www.den4b.com/forum/viewtopic.php?id=550


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#8 2011-11-20 04:58

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: MSI files are detected as ppt/xls/doc files

Hi Andrew,

I found that a link from the "Extension" rule page of wiki leads to this page: http://www.den4b.com/wiki/ReNamer:Scripts:TrID
However, that script is dated 16 Dec 2008.

But now Stefan has pointed to your script posted at forum.
Your version was written a month later; and has some improvements.
Could you please update the wiki page with the new script?
I could have done a simple "copy and paste" in the wiki, but you would be a better judge about what needs to be done.

Thanks in advance!

Last edited by narayan (2011-11-20 05:00)

Offline

#9 2011-11-20 05:42

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: MSI files are detected as ppt/xls/doc files

BTW I downloaded the zips and extracted the dll and trd files in ReNamer's folder.
I also saved Andrew's script (v5) as a new pas file and ran it.
But the script reports an error: It cannot find the dll and trd files.

Currently the dll and trd files are in the top-level folder of ReNamer (where the renamer.exe file is.)
Should I move them to a subfolder?

Offline

#10 2011-11-20 05:50

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: MSI files are detected as ppt/xls/doc files

Update: Since the TrID script did not show relative path for the dll, I moved the dll and trd files to the "Scripts" subfolder in the ReNamer folder. Now the error does not appear when I run the script.

But the problem is, it does not detect the correct extension either (I experimented by changing the extension of a known pdf file to "msi").
When I run the TrID script, it does not affect the file at all.

Offline

Board footer

Powered by FluxBB