這個問題是關於從程序集直接獲取版本。我遵循的指示從this post自動編譯inno安裝程序錯誤
我的腳本看起來如下。
#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.**
我是缺少在這裏?
無論你的腳本摘錄在這裏也沒有對這個問題您鏈接到有上線的基準來VerStr 12.你可以發佈你使用的是完整的腳本接受的答案? – Vicky