Re: GetFileVersionInfoSize API



"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


.



Relevant Pages

  • Re: regarding Wince mp3 playback
    ... I need an API to run an exe through C++ programming under wince platform ... ,plz help me in this case. ... For that i need an Api to do that. ... Windows Media Player OCX Control in the help... ...
    (microsoft.public.windowsce.embedded.vc)
  • Problem with CeAppRunAtTime
    ... I am trying to launch an exe file using the API CeAppRunAtTime. ... SYSTEMTIME SystemTime =; ...
    (microsoft.public.pocketpc.developer)
  • Re: schedule.c (OS Kernel)
    ... into Service Privelidge without using the invalid address. ... When an application calls an API, ... which causes the kernel to trap the exception. ... > exe, so it sets up memory, permissions, pointers so that that system exe ...
    (microsoft.public.windowsce.platbuilder)
  • GetFileVersionInfoSize API
    ... I'm using the GetFileVersionInfoSize API for pulling file ... It works for DLL and EXE files, ... that I'm not getting the ProductVersion that is listed in Explorer... ...
    (microsoft.public.vb.general.discussion)