ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:23 AM

Title: Version information in Windows EXE
Post by: Archive on May 12, 2010, 08:54:23 AM
[Originally posted by heiko on 2008-07-25 21:13:29-07]

Hello,

if've noticed that the version information in the exiftool.exe for Windows is missing. Is it possible to implement this information? ExifTool itself is used from several other programs, and it seams, that some installations always copying files which have no version information.

Regards
Heiko
Title: Re: Version information in Windows EXE
Post by: Archive on May 12, 2010, 08:54:23 AM
[Originally posted by exiftool on 2008-07-26 13:57:03-07]

You should be able to get the exiftool version number
using either the -ver option, or through the
ExifToolVersion tag when you extract information from
a file.  This should work for all exiftool distributions.

Is this what you are talking about?

- Phil
Title: Re: Version information in Windows EXE
Post by: Archive on May 12, 2010, 08:54:23 AM
[Originally posted by heiko on 2008-07-26 21:35:57-07]

Hello Phil,

I know how to get the version number of ExifTool, but the problem is that most Setup programs read the version number from the properties of the EXE file. It's a resource entry inside the Windows project. You can see this version number in a compiled EXE when you are looking to the properties of the .EXE file and change to the tab "Version".

Regards
Heiko
Title: Re: Version information in Windows EXE
Post by: Archive on May 12, 2010, 08:54:23 AM
[Originally posted by exiftool on 2008-07-26 22:31:47-07]

Now I understand.  I will look into this.

 - Phil
Title: Re: Version information in Windows EXE
Post by: Archive on May 12, 2010, 08:54:25 AM
[Originally posted by exiftool on 2008-09-11 14:45:12-07]

Hi Heiko,

Sorry for the delay, but your request made me realize that Windows
EXE files contain meta information that exiftool could be extracting.
So as well as setting this information in exiftool.exe, version 7.42
can now read the information too.  Below is the output from the
following command:

exiftool -a -g1 -S "exiftool(-k).exe"

Code:
---- ExifTool ----
ExifToolVersion: 7.42
---- File ----
FileName: exiftool(-k).exe
Directory: .
FileSize: 3.4 MB
FileModifyDate: 2008:09:10 20:22:35
FileType: Win32 EXE
MIMEType: application/octet-stream
---- EXE ----
MachineType: Intel 386 or later, and compatibles
TimeStamp: 2006:06:02 06:45:17
PEType: PE32
LinkerVersion: 6.0
CodeSize: 12288
InitializedDataSize: 917504
UninitializedDataSize: 0
EntryPoint: 0x354c
OSVersion: 4.0
ImageVersion: 0.0
SubsystemVersion: 4.0
Subsystem: Windows command line
FileVersionNumber: 7.4.2.0
ProductVersionNumber: 7.4.2.0
FileFlagsMask: 0x003f
FileFlags: Debug
FileOS: Windows NT 32-bit
ObjectFileType: Executable application
FileSubtype: 0
LanguageCode: Process default
CharacterSet: Unicode
Comments: ExifTool EXE for Windows
CompanyName: Phil Harvey
FileDescription: Read and Write meta information
FileVersion: 7.4.2.0
InternalName: ExifTool
LegalCopyright: Copyright (c) 2003-2008, Phil Harvey
LegalTrademarks:
OriginalFilename: exiftool(-k).exe
PrivateBuild:
ProductName: ExifTool
ProductVersion: 7.4.2.0
SpecialBuild:
BundledPerlVersion: ActivePerl 5.8.7
HomePage: https://exiftool.org/

- Phil
Title: Re: Version information in Windows EXE
Post by: Archive on May 12, 2010, 08:54:25 AM
[Originally posted by heiko on 2008-09-12 09:23:13-07]

Hello Phil,

thank you very much for implementing this.

Regards
Heiko