[英]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) . 我如何使用Inno从exe文件或dll获取版本号,我尝试了GetFileVersion
函数,但只能在Inno预处理器中使用(我需要在我的脚本的[Code]
部分使用此函数)。 Also I tried the GetFileVersionInfo
function but is not recognized by Inno. 我也尝试了GetFileVersionInfo
函数,但Inno无法识别。
Try 尝试
function GetVersionNumbers(const Filename: String; var VersionMS, VersionLS: Cardinal): Boolean;
and/or 和/或
function GetVersionNumbersString(const Filename: String; var Version: String): Boolean;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.