mch*_*ago 3 installation inno-setup
这个问题是关于直接从汇编获取版本.我已按照这篇文章的说明进行操作
我的脚本如下所示.
#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)
Run Code Online (Sandbox Code Playgroud)
但是在编译脚本时它会抛出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.**
Run Code Online (Sandbox Code Playgroud)
我在这里缺少什么?
GetFileVersion()返回一个空字符串,因为它找不到SrcApp路径.尝试指定完全限定的路径或使用:
#define SrcApp AddBackslash(SourcePath) + "Keyboard Trader.exe"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1682 次 |
最近记录: |