如何在安静安装时报告 msi 安装状态 [英] How to report msi installation status on quiet install

查看:20
本文介绍了如何在安静安装时报告 msi 安装状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Wix 创建的 msi 进行安静安装.问题是绝对没有关于安装如何进行的报告,即它是否成功.

I'm trying to do a quiet install using a Wix created msi. The thing is that there is absolutely no reporting on how the install has gone, i.e. whether it's succeeded or not.

目前,我正在将所有内容都记录到一个文件中,然后再检查该文件,我只是想知道是否有更好的方法?

At the moment, I'm logging everything to a file and checking the file afterwards, I'm just wondering whether there is a better way?

TIA

推荐答案

当您静默运行 msi 时,msiexec 将有一个退出代码.0 和 3010 是好"(3010 意味着需要重新启动)其他一切(尤其是 1603)都不好.

When you run an msi silently, msiexec will have an exit code. 0 and 3010 is 'good' (3010 means reboot needed ) everything else ( especially 1603 ) is bad.

Windows Installer 进程的错误代码和错误消息列表

这篇关于如何在安静安装时报告 msi 安装状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆