Get exe or dll version from inno-settings

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.

+4
source share
1 answer

Try

 function GetVersionNumbers(const Filename: String; var VersionMS, VersionLS: Cardinal): Boolean; 

and / or

 function GetVersionNumbersString(const Filename: String; var Version: String): Boolean; 
+7
source

All Articles