Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line WiX自定义操作shell命令_Command Line_Wix_Installation - Fatal编程技术网

Command line WiX自定义操作shell命令

Command line WiX自定义操作shell命令,command-line,wix,installation,Command Line,Wix,Installation,我在我的WiX安装程序上有一个CustomAction,我将其配置为在安装文件后执行 <CustomAction Id="shellex" Directory="TARGETDIR" Impersonate="no" ExeCommand="cmd.exe /k notepad" Return="check" /> <InstallExecuteSequence> <Custom Action="shellex" After="InstallFiles" />

我在我的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,正如文档中所说:


“表示自定义操作将异步运行,安装程序终止后可能继续执行。”

哦,我测试了这个参数,我认为它不起作用,因为安装程序关闭,记事本打开,但lanched记事本的控制台没有关闭。如何关闭此控制台窗口?您可以尝试WiX qtexec、调用的quiet exe或几行vbscript来运行记事本。