Re: GetFileVersionInfoSize API
- From: "Michael C" <mculley@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 14:26:57 +1000
"dm1608" <dm1608@xxxxxxxx> wrote in message
news:%23a528zC2FHA.3756@xxxxxxxxxxxxxxxxxxxxxxx
> Hello, all. I'm using the GetFileVersionInfoSize API for pulling file
> version # information. It works for DLL and EXE files, but I have a
> special requirement of getting the version # info from an InstallShield
> EXE.
>
> If I right-click on an InstallShield EXE and go to properties and the
> version tab, I see the file version listed as 1.0.9. However, if I go
> down to the listbox and select either "File Version" or "Product Version"
> from the list, the version is 2.0.1. The 2.0.1 is the version that I need
> to pull.
>
> Does anyone know of a way to do this? Perhaps there is another API call
> or another way of pulling this information? I tried changing the code to
> use ProductVersion instead of FileVersion and appeared to get the same
> result -- even though Explorer is showing that it should be different.
> I'm guessing that I'm not getting the ProductVersion that is listed in
> Explorer...
>
> Any help or sample code for VB6 would be appreciated.
Try using the VerQueryValue api.
Michael
.
- Follow-Ups:
- Re: GetFileVersionInfoSize API
- From: m.posseth
- Re: GetFileVersionInfoSize API
- References:
- GetFileVersionInfoSize API
- From: dm1608
- GetFileVersionInfoSize API
- Prev by Date: Re: How to change the value of Boolean variable?
- Next by Date: Re: Can someone get me started on system messaging
- Previous by thread: GetFileVersionInfoSize API
- Next by thread: Re: GetFileVersionInfoSize API
- Index(es):
Relevant Pages
|