installation - 自动构建 inno 设置错误

标签 installation inno-setup

这个问题是关于直接从程序集获取版本的。我已按照 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.**

我在这里缺少什么?

最佳答案

GetFileVersion() 返回一个空字符串,因为它找不到 SrcApp 路径。 尝试指定完全限定路径或使用:

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

关于installation - 自动构建 inno 设置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7722088/

相关文章:

inno-setup - 如何防止 Inno Setup 6 创建新的签名卸载程序?

python - Autodoc FR (ADFR),在 MacOS BIG SUR 上安装

windows - Mac .Pkg 文件在 Windows 中打开...奇怪的事情

c# - Windows7 Installer优先使用C#如何在安装过程中将其移回?

installation - Wix 本地设置\应用程序数据快捷方式

inno-setup - 是否可以使用 sha1 和 sha256 证书对安装程序和卸载程序进行双重签名?

service - PostgreSQL 9.2.4 (Windows 7) - 服务无法启动, "could not load pg_hba.conf"

windows - Inno Setup 刷新桌面

inno-setup - 循环遍历字符串数组 - 类型不匹配

java - 将附加文件添加到 Netbeans 应用程序的基于 Inno 的设置中