cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
heiner_violet
Level 7

VerGetFileVersion under Vista

Hi,
I'm using VerGetFileVersion to determine the version of a file on the target system. (Installscript-Project).
Problem: under Windows-Vista, this function returns -1 and an empty version string. According to the Installshield documentation -1 is no valid return value of VerGetFileVersion. It seems that the problem has nothing to do with UAC - it occurs on either activated and deactivated UAC.
How can I determine the version of a file under Windows Vista?
H.
Labels (1)
0 Kudos
(2) Replies
heiner_violet
Level 7

The path string of the file had quotation marks "c:\...". This worked fine on OS's other than Windows Vista. In order to apply the VerGetFileVersion-function on a Windows Vista OS, the path string has to be without quotation marks.
0 Kudos
Peter_Kosenko
Level 7

Thanks for posting this. But what a nightmare having to find out that THIS peculiar function behavior was the probable cause of things hanging in an IS2008 installer on Vista.
0 Kudos