【发布时间】:2011-10-11 19:30:08
【问题描述】:
这个问题是关于直接从程序集中获取版本。我已按照this post的指示进行操作
我的脚本如下所示。
#define MyAppName "Keyboard Trader"
#define SrcApp "Keyboard Trader.exe"
#define FileVerStr GetFileVersion(SrcApp)
#define StripBuild(str VerStr) Copy(VerStr, 1, RPos(".", VerStr)-1)
#define AppVerStr StripBuild(FileVerStr)
但是在编译脚本时会抛出以下错误
Compile started: Tuesday, Oct 11 2011 at 01:15 AM
---
Compiling script with Inno Setup 5.4.2 (a)
---
[ISPP] Preprocessing.
---------------------
Compile Error!
Line: 12
**Error: [ISPP] Actual parameter VerStr is not of the declared type.**
我在这里缺少什么?
【问题讨论】:
-
您在此处的脚本摘录和您链接到的问题的公认答案都没有在第 12 行引用 VerStr。您可以发布您正在使用的完整脚本吗?