|
Getting .exe file version properties?
Author |
Message |
Peter Eichma #1 / 4
|
 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 |
|
 |
mayayana #2 / 4
|
 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 |
|
 |
Pieter Philippaert #3 / 4
|
 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 |
|
 |
Peter Eichma #4 / 4
|
 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 |
|
|
|