2
我有以下CustomAction,它使用WixQuietExec來執行另一個應用程序。如果操作失敗,MSI安裝程序不會彈出任何錯誤對話框,這使用戶難以注意安裝是否成功完成。如何顯示失敗的錯誤對話框WixQuietExec CustomAction
在這種情況下是否可以顯示錯誤對話框?老實說任何標準的錯誤對話框都可以,但是自定義錯誤信息會更好。
<SetProperty Id="MyAction"
Value=""myprog.exe&""
Sequence="execute"
Before="MyAction" />
<CustomAction Id="MyAction"
BinaryKey="WixCA"
DllEntry="WixQuietExec"
Impersonate="no"
Execute="deferred"
Return="check" />
<InstallExecuteSequence>
<Custom Action="MyAction" After="InstallFiles" />
</InstallExecuteSequence>
那麼這就是所謂的Wix *安靜* Exec的原因。您可以嘗試['WixShellExec'](http://wixtoolset.org/documentation/manual/v3/customactions/shellexec.html)自定義操作。 [使用示例](http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/run_program_after_install.html)。我從來沒有使用它,但也許它有錯誤的用戶界面。 – zett42