You can get it thru the DLL "Version.dll"
MS Help is on "VersionInfo"
 
Here are some of the APIs to the various functions.
 
sub VERSION_LIB() { "version.dll" }
our $GetFileVersionInfoSize = new Win32::API( VERSION_LIB,
"GetFileVersionInfoSize",
 [ #args...
 "P", # [in] (char*/lpstr) = filename to use
 "P" # [in/out] (ushort*/puint) = VersionHandle = 0
 ], # return...
 "N" # [return] (long/dword) = the sizeof info
 );

our $GetFileVersionInfo = new Win32::API( VERSION_LIB, "GetFileVersionInfo",
 [ # args...
 "P", # [in] (char*/lpstr) = filename to use
 "P", # [in] (ushort*/puint) = VersionHandle from "GetFileVersionInfoSize"
 "N", # [in] (long/dword) = sizeof VersionInfo (next arg)
 "P" # [out] (&void*/&lpstr*) = data to receive (theVersionInfo)
 ], # return...
 "N" # [return] (long/dword) = success(1)/failure(0)
 );

our $VerQueryValue = new Win32::API( VERSION_LIB, "VerQueryValue",
 [ # args...
 "P", # [in] (void*/lpstr*) = theVersionInfo
 "P", # [in] (char*) = key string to search for
 "P", # [out] (&void*) = value returned
 "P" # [out] (ushort*/puint*) = size of value returned in bytes
 ], # return...
 "N" # [return] (long/dword) = success(1)/failure(0)
 );

 
I have a library I wrote for doing all of this, but unfortunatly, I do not
think my company will let me give that out.
 
Also, be aware of Languages that it supports, eg, chineese.
 
---Stuart Arnold
w: [EMAIL PROTECTED]
w: 678.297.1027
 
 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Cruickshanks, Darin
Sent: Friday, April 25, 2008 9:29 AM
To: [EMAIL PROTECTED]; perl-win32-admin@listserv.ActiveState.com
Subject: RE: Accessing executable summary/detail information



Yup, that's what I'm after.

 

Darin
--------------------------------------------
Darin Cruickshanks
Lab Support Manager, Computing Service
University of Essex
01206 873585 

 

From: Stuart Arnold [mailto:[EMAIL PROTECTED] 
Sent: 25 April 2008 13:34
To: Cruickshanks, Darin; perl-win32-admin@listserv.ActiveState.com
Subject: RE: Accessing executable summary/detail information

 

Do you mean the Version Info and such that is in there? That is, Company
name, trademarks, versions, etc, we see when you click on the EXE and get
the Properties window?

 

---Stuart Arnold

w: [EMAIL PROTECTED]

w: 678.297.1027

 

 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Cruickshanks, Darin
Sent: Friday, April 25, 2008 7:13 AM
To: perl-win32-admin@listserv.ActiveState.com
Subject: Accessing executable summary/detail information

All,

 

I have a requirement for reading the summary (metadata) of an executable;
does anyone know of a way to do this with Perl?

 

Thanks,

 

Darin
--------------------------------------------
Darin Cruickshanks
Lab Support Manager, Computing Service
University of Essex
01206 873585 

 

_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to