GetFileVersionInfo API- call
Hi all,
I am trying to determine the version of Windows Installer using VB6. I copied the API calls code into a module, and then made the following code in Form_Load:
file = "C:\WINDOWS\System32\msiexec.exe"
Size = GetFileVersionInfoSize(file, 0)
MsgBox "size = " & Size
version = GetFileVersionInfo(file, 0, Size, 10)
MsgBox "version = " & version
The code doesn't crash uptill "version = ......". I am wondering why my code crashes (i consider a VB6 crash as a code crash, since it happens when running the code)
Also, the filesize of the file is 77KB, though my messagebox says 2324 (KB, Bytes, Bits????). Not sure this is correct either.
Any tips, or preferably solutions are very welcome!
Thanks
Max
|