[英]WIX Installer - Possible to Invoke Custom Action .exe Before `InstallFiles`?
[英]Run an external exe before Wix installer finished
我正在使用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並退出
不起作用。 cmd窗口仍然彈出。
最近,我使用http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html上的文檔在自己的安裝程序中進行了類似的操作(靜默,延遲,使用其他Windows安裝程序屬性)。
第一個例子似乎是您想要的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.