我正在使用wix制作一个安装程序。应用程序使用ReportViewer2010,我们不想更改它。因此,我们希望安装应用程序并在安装程序中运行微软ReportViewer2010重新分发。
<CustomAction Id="RunReportViewer2010Redistribution"
Directory="ReportsFolder"
ExeCommand="[SystemFolder]cmd.exe /C start ReportViewer.exe"
Return="asyncNoWait" />
<InstallExecuteSequence>
<Custom Action ="RunReportViewer2010Redistribution" After="InstallFinalize">
</Custom>
</InstallExecuteSequence>这可以很好地工作。但是,它会弹出一个cmd窗口,尽管它会自动关闭。有没有办法让cmd窗口不会弹出来?
谢谢
*已尝试SystemFoldercmd.exe /C start ReportViewer.exe & exit
不起作用。cmd窗口仍然弹出。
发布于 2016-09-08 22:38:32
我最近使用http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html上的文档在我自己的安装程序中做了类似的事情(静默,延迟,使用其他windows安装程序属性)。
第一个例子似乎就是你要找的。
https://stackoverflow.com/questions/39176180
复制相似问题