How can I get the version number from an exe file or dll using Inno, I tried the GetFileVersion function, but it is only available in the Inno preprocessor (and I need to use this function in the [Code] section of my script). I also tried the GetFileVersionInfo function, but was not recognized by Inno.
GetFileVersion
[Code]
GetFileVersionInfo
Try
function GetVersionNumbers(const Filename: String; var VersionMS, VersionLS: Cardinal): Boolean;
and / or
function GetVersionNumbersString(const Filename: String; var Version: String): Boolean;