Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[CE 6.6] Can't use GetFileVersion

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
peter4d5
Cheater
Reputation: 0

Joined: 21 Dec 2010
Posts: 37

PostPosted: Tue Oct 11, 2016 10:05 pm    Post subject: [CE 6.6] Can't use GetFileVersion Reply with quote

I use GetFileVersion from lua but don't know why output are these.
I try both 32 bit and 64 bit exe.

Code:

    ExePath = enumModules()[1].PathToFile
    FileVer = getFileVersion(ExePath)

    print('ExePath = '..ExePath)
    print('FileVer = '..FileVer)


Out put:

Quote:

ExePath = C:\Windows\system32\calc.exe
FileVer = 1688854653321217

ExePath = D:\Games\StarCraft II\Versions\Base38996\SC2_x64.exe
FileVer = 844424930498765


I expect that out put are

6.1.7601.17514
and
3.0.5.39117

What did I do something wrong?

_________________
my name is peter4d5
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Oct 12, 2016 2:37 am    Post subject: Re: [CE 6.6] Can't use GetFileVersion Reply with quote

Code:
getFileVersion(pathtofile): returns the 64-bit file version, and a table that has split up the file version into major, minor, release and build





Code:
    ExePath = enumModules()[1].PathToFile
    FileVer, FileVerTable = getFileVersion(ExePath)

    print('ExePath = '..ExePath)
    print('FileVer = '..FileVer)

    print('FileVerTable.major = '..FileVerTable.major)
    print('FileVerTable.minor = '..FileVerTable.minor)
    print('FileVerTable.release = '..FileVerTable.release)
    print('FileVerTable.build = '..FileVerTable.build)

    print('version  = '..FileVerTable.major..'.'..FileVerTable.minor..'.'..
                         FileVerTable.release..'.'..FileVerTable.build)

_________________
Back to top
View user's profile Send private message MSN Messenger
peter4d5
Cheater
Reputation: 0

Joined: 21 Dec 2010
Posts: 37

PostPosted: Wed Oct 12, 2016 8:18 pm    Post subject: Reply with quote

Thank you.
_________________
my name is peter4d5
Back to top
View user's profile Send private message
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Sat Sep 29, 2018 4:25 am    Post subject: Reply with quote

Sorry that i bump this Thread, but i want to read the FileVersion too but i cant get the Correct Version.

The thing is i thought its really the Fileversion i have to find (because CFF Explorer say that the Property Name is 'Fileversion')
Anyway i use CE 6.7
And would like to know how i can print / get other Properties.

I want get the product Version (blue highlighted)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites