Getting .exe file version properties? 
Author Message
 Getting .exe file version properties?

I'm looking for a way to read various property data from an .exe file;
specifically, I'm interested in the stuff that shows up on the "Version"
tab of the Properties box in Explorer (e.g. File Version, Product Name,
Product Version, Copyright, etc.)

I've looked at the GetFileVersionInfo API function, but what I've seen
doesn't seem to return the info I need.

Is there any way to read this infomation via VB?

Thanks in advance,
Peter
--
"Never thought to question why;
It's not like you killed someone
It's not like you drove a hateful spear into his side;
Praise for one who left you broken down and paralyzed"
--A Perfect Circle, "Judith"

r a v e n s w a r d : http://www.*-*-*.com/ ~peichman/ravensward



Wed, 24 Dec 2003 13:08:31 GMT  
 Getting .exe file version properties?
GetFileVersionInfo does return that info. you first need
GetFileVersionInfoSize.
The whole process is notably involved and tedious, but there should be
samples around on the web.

--
--

Quote:
> I'm looking for a way to read various property data from an .exe file;
> specifically, I'm interested in the stuff that shows up on the "Version"
> tab of the Properties box in Explorer (e.g. File Version, Product Name,
> Product Version, Copyright, etc.)

> I've looked at the GetFileVersionInfo API function, but what I've seen
> doesn't seem to return the info I need.

> Is there any way to read this infomation via VB?

> Thanks in advance,
> Peter
> --
> "Never thought to question why;
> It's not like you killed someone
> It's not like you drove a hateful spear into his side;
> Praise for one who left you broken down and paralyzed"
> --A Perfect Circle, "Judith"

> r a v e n s w a r d : http://www.wam.umd.edu/~peichman/ravensward



Wed, 24 Dec 2003 21:46:08 GMT  
 Getting .exe file version properties?
Take a look at FileInfo.zip from Karl Peterson's website
http://www.mvps.org/vb/code/FileInfo.zip
It does exactely what you want.

Regards,
Pieter Philippaerts
http://www.allapi.net/


Quote:
> I'm looking for a way to read various property data from an .exe file;
> specifically, I'm interested in the stuff that shows up on the "Version"
> tab of the Properties box in Explorer (e.g. File Version, Product Name,
> Product Version, Copyright, etc.)

> I've looked at the GetFileVersionInfo API function, but what I've seen
> doesn't seem to return the info I need.

> Is there any way to read this infomation via VB?

> Thanks in advance,
> Peter
> --
> "Never thought to question why;
> It's not like you killed someone
> It's not like you drove a hateful spear into his side;
> Praise for one who left you broken down and paralyzed"
> --A Perfect Circle, "Judith"

> r a v e n s w a r d : http://www.wam.umd.edu/~peichman/ravensward



Wed, 24 Dec 2003 23:30:13 GMT  
 Getting .exe file version properties?
Thanks. <chagrined look> I realized I hadn't looked close enough at
VerQueryValue to see that it would allow me to retrieve the info I need.

Quote:

> GetFileVersionInfo does return that info. you first need
> GetFileVersionInfoSize.
> The whole process is notably involved and tedious, but there should be
> samples around on the web.

> --
> --


> > I'm looking for a way to read various property data from an .exe file;
> > specifically, I'm interested in the stuff that shows up on the "Version"
> > tab of the Properties box in Explorer (e.g. File Version, Product Name,
> > Product Version, Copyright, etc.)

> > I've looked at the GetFileVersionInfo API function, but what I've seen
> > doesn't seem to return the info I need.

> > Is there any way to read this infomation via VB?

> > Thanks in advance,
> > Peter
> > --
> > "Never thought to question why;
> > It's not like you killed someone
> > It's not like you drove a hateful spear into his side;
> > Praise for one who left you broken down and paralyzed"
> > --A Perfect Circle, "Judith"

> > r a v e n s w a r d : http://www.wam.umd.edu/~peichman/ravensward

--
"Never thought to question why;
It's not like you killed someone
It's not like you drove a hateful spear into his side;
Praise for one who left you broken down and paralyzed"
--A Perfect Circle, "Judith"

r a v e n s w a r d : http://www.wam.umd.edu/~peichman/ravensward



Thu, 25 Dec 2003 00:49:05 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Load A new Version of an Exe File From the same Exe file

2. Load A new Version of an Exe File From the same Exe file

3. getting version of vb.net's exe ...

4. Getting an EXE Version via VBScript

5. Getting version number of DLL/EXE

6. Specify DLL version when using mc.exe, rc.exe and/or link.exe

7. Getting driver file version information via vbscript or VB

8. Getting a files version

9. Getting a file's version number

10. Getting file versions with VB

11. Getting driver file version information via vbscript or VB

12. Getting File Version in VBScript

 

 
Powered by phpBB® Forum Software