Skip to content

FileVersion and ProductVersion returning the same values #55

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Download an EXE where the file version is different from the product 
version. (I'm using CurrPorts, as provided by NirSoft.)
2. Run the script to retrieve FileVersion and ProductVersion information.

What is the expected output?

FileVersion: 2.1.0.0
ProductVersion: 2.10

What do you see instead?

FileVersion: 2.10
ProductVersion: 2.10

What version of the product are you using? On what operating system?

Python: 2.7.5
Version: 1.2.10-139
OS: Windows 7 64-bit

Please provide any additional information below.

The code:

import pefile

pe = pefile.PE(r"C:\Path\To\File\cports.exe")
print pe.FileInfo[0].StringTable[0].entries['FileVersion']
print pe.FileInfo[0].StringTable[0].entries['ProductVersion']

Original issue reported on code.google.com by [email protected] on 5 Nov 2014 at 11:16

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions