开发者

automated build inno setup error

This 开发者_StackOverflowquestion is regarding getting version directly from assembly. I have followed instructions from this post

My script looks as follow.

#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)

But while compiling script it throws following Error

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.**

What I am missing here?


GetFileVersion() is returning a blank string as it can't find the the SrcApp path. Try specifying a fully qualified path or using:

#define SrcApp AddBackslash(SourcePath) + "Keyboard Trader.exe"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜