CAQuietExec 命令字符串必须以引用的应用程序名称开头 [英] CAQuietExec Command string must begin with quoted application name

查看:24
本文介绍了CAQuietExec 命令字符串必须以引用的应用程序名称开头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我相信我正在按照 Wix3.5 中的在线示例执行安静命令,但我似乎无法引用要执行的命令.

Ok I believe I'm following the online example in Wix3.5 for doing quiet commands yet I cannot seem to get my command to be executed quoted.

<Component Id="MapObjectsRuntime' Guid='*'>
  <File Id = 'Mo23rtEXE' Name='Mo23rt.exe' Source='....' KeyPath="yes"/>
<Component>

<Property Id = "QtExecCmdLine" Value="Mo23rt.exe" />

// I've tried single & double quotes, and double double quotes around Mo23.

<CustomAction Id = "InstallMapObjects" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check" />

<InstallExecuteSequence>
  <Custom Action="InstallMapObjects" After="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>

我在构建 wix 项目时收到警告:文件 Mo23rtEXE 不是字体,其版本也不是配套文件参考.

I do get a warning building the wix project: The file Mo23rtEXE is not a Font, and its version is not a companion file reference.

我还需要为 mo23rt.exe 命令分配命令行参数,但我首先只是想让它工作.

I also need to assign command line parameters to the mo23rt.exe command but I'm first just trying to get this to work.

正如 Google 透露的那样,很多人似乎也在为此苦苦挣扎.

Lots of folks appear to be struggling with this too, as revealed by Google.

忘记添加运行 setup.exe/l*v install.log 了:

Forgot to add that running setup.exe /l*v install.log had:

MSI Doing action: InstallMapObjects
.
.
Property Change: Deleting QtExeCmdLine property.  Its current value is 'Mo23rt.exe'.
CAQuitExec: Command string must begin with quoted application name.
CAQuietExec: Error 0x80070057 invalid command line property value

推荐答案

您将自定义操作安排为立即执行,但您尝试运行应由安装程序安装的文件.冲突来了:在安装文件之前立即运行 CA,因为这是按延迟顺序发生的.

You schedule your custom action as immediate, but you try to run a file which should be installed by your installer. Here comes the conflict: immediate CA run BEFORE the files are installed, 'cause this happens in deferred sequence.

我建议您熟悉安装阶段和脚本内Windows Installer 中自定义操作的执行选项文章第一.

I would recommend you to get acquainted with Installation Phases and In-Script Execution Options for Custom Actions in Windows Installer article first.

这篇关于CAQuietExec 命令字符串必须以引用的应用程序名称开头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆