Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the version of a exe or dll from inno setup

How I can get the version number from a exe file or a dll using Inno, I tried the GetFileVersion function but only is available in the Inno Preprocessor (and I need use this function in the [Code] section of my script) . Also I tried the GetFileVersionInfo function but is not recognized by Inno.

like image 272
Salvador Avatar asked Jan 19 '23 09:01

Salvador


1 Answers

Try

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

and/or

function GetVersionNumbersString(const Filename: String; var Version: String): Boolean;
like image 174
Ladislav Avatar answered Jan 30 '23 13:01

Ladislav