开发者

Get the version of a exe or dll from inno setup

开发者 https://www.devze.com 2023-03-15 23:39 出处:网络
How I can get the version number from a exe file or a dll using Inno, I tried the Get开发者_运维百科FileVersion function but only is available in the Inno Preprocessor (and I need use this function in

How I can get the version number from a exe file or a dll using Inno, I tried the Get开发者_运维百科FileVersion 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.


Try

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

and/or

function GetVersionNumbersString(const Filename: String; var Version: String): Boolean;
0

精彩评论

暂无评论...
验证码 换一张
取 消