在Wix安装程序完成

时间:2016-08-27 00:03:19

标签: wix windows-installer

我使用wix制作安装程序。该应用程序使用ReportViewer2010,我们不想更改它。因此,我们要安装应用程序并在安装程序中运行microsoft 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窗口不会弹出?

由于

***试过了 [SystemFolder] cmd.exe / C启动ReportViewer.exe&amp;出口

不起作用。 cmd窗口仍然会弹出。

1 个答案:

答案 0 :(得分:0)

我最近使用http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html上的文档在我自己的安装程序中做了类似的事情(无声,延迟,使用其他Windows安装程序属性)。

第一个例子似乎就是你要找的东西。