LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to get under linux information about Windows EXE/DLL file (https://www.linuxquestions.org/questions/linux-general-1/how-to-get-under-linux-information-about-windows-exe-dll-file-841823/)

VladVons 11-02-2010 12:28 AM

How to get under linux information about Windows EXE/DLL file
 
How to get under linux (without Wine) such information about Windows EXE/DLL file:
CompanyName
FileVersion
ProductVersion

Under Windows its easy:
GetFileVersionInfoSize()
GetFileVersionInfo()
etc.

CincinnatiKid 11-02-2010 08:00 AM

Quote:

How to get under linux (without Wine) such information about Windows EXE/DLL file:
CompanyName
FileVersion
ProductVersion
Is that info NTFS meta data? If so then you won't be able to get that info on a non NTFS partition whether you are using wine or not. But maybe it's not, maybe someone else will know.

VladVons 11-04-2010 12:36 AM

Quote:

Originally Posted by lewisforlife (Post 4146847)
Is that info NTFS meta data?

NO
This information inside EXE file.
http://en.wikipedia.org/wiki/Portable_Executable

CincinnatiKid 11-05-2010 12:31 PM

Personally I don't think it will be possible for you to get any info about your EXE file without using wine or something similar.

VladVons 11-06-2010 02:31 AM

I think i should write C++ routine using Microsoft PE format
http://kishorekumar.net/pecoff_v8.1.htm

Wine is too weight for frequent call (~10 per sec)

allend 11-06-2010 09:43 AM

Have you looked at 'winedump'?
It is a WINE tool that may provide what you want.
If you are thinking of writing code, have a look at http://www.winehq.org/docs/winelib-guide/index

John VV 11-06-2010 02:30 PM

boot windows and read those files with visual studio
all of that info will be displayed -- if it is there .

fernandomerces 06-16-2011 02:18 AM

Look at my project called pev. You can get the version with -p option.

http://pev.sf.net

Good luck!

jefro 06-16-2011 07:44 PM

I get the feeling I read a post about this a few weeks ago here, and it has a solution in linux already. Dunno where that is now.

See if this helps at all. http://www.perlmonks.org/?node_id=905425

http://code.activestate.com/recipes/...ecutable-file/


I thought this would give info too but can't says as I can't find it either. http://upx.sourceforge.net/ But a nifty tool.

fernandomerces 06-17-2011 05:29 AM

Quote:

Originally Posted by jefro (Post 4388065)
I get the feeling I read a post about this a few weeks ago here, and it has a solution in linux already. Dunno where that is now.

See if this helps at all. http://www.perlmonks.org/?node_id=905425

http://code.activestate.com/recipes/...ecutable-file/

I thought this would give info too but can't says as I can't find it either. http://upx.sourceforge.net/ But a nifty tool.

Both Perl and Python scripts does exactly what pev does (but pev can do more). UPX is a packer, there is no way to do it.

Why can't pev be considered a solution in Linux? It's just a make && make install question. ;)
Debian (or Debian-based distros) users can use a DEB package too http://packages.debian.org/wheezy/pev

Cheers!

sundialsvcs 06-17-2011 08:16 AM

Don't send a glass of alcoholic beverages to do a camel's job.

fernandomerces 06-17-2011 08:26 AM

Quote:

Originally Posted by sundialsvcs (Post 4388549)
Don't send a glass of alcoholic beverages to do a camel's job.

From a programmer's perspective, I agree with you. pev is to users that don't want to write a program to get it.


All times are GMT -5. The time now is 07:05 AM.