WiX CustomAction shell 命令

WiX CustomAction shell command

我的 WiX 安装程序上有一个 CustomAction,我将其配置为在安装文件后执行。

<CustomAction Id="shellex" Directory="TARGETDIR" Impersonate="no" ExeCommand="cmd.exe /k notepad" Return="check" />

<InstallExecuteSequence>
<Custom Action="shellex" After="InstallFiles" />
</InstallExecuteSequence>

实际上,在安装结束时,notepad.exe 开始但安装程序在最后被阻止。

我想要记事本启动并完成安装程序。

您可能需要 return = asyncNoWait,如文档中所述:

"Indicates that the custom action will run asyncronously and execution may continue after the installer terminates. "