Inno Setup 指令 "VersionInfoVersion" 无效

Inno Setup directive "VersionInfoVersion" is invalid

在我的 *.iss 安装程序脚本中,我将应用程序版本传递给 VersionInfoVersion 参数

VersionInfoVersion = {#ver}

其中 {#ver}0.4.0.201801182

根据Inno Setup documentation格式是正确的。但是,我收到以下错误:

Value of [Setup] section directive "VersionInfoVersion" is invalid.
Compile aborted.

问题出在你的版本的最后一节。似乎每个部分最多只支持 65,535。例如:

#define ver "0.4.0.65535" ;this works
#define ver "0.4.0.65536" ;this fails