Command line WiX自定义操作shell命令
我在我的WiX安装程序上有一个CustomAction,我将其配置为在安装文件后执行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" />
<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来运行记事本。