Avoid confirmation box in MsiExec uninstall

三世轮回 提交于 2020-01-23 06:16:37

问题


I need to run the msiexec uninstall from my code:

MsiExec.exe /I{A52EEC0E-D0B7-4345-A0FF-574804C7B78A}

But this is asking for a confirmation (Yes/No). How can I avoid that?


回答1:


msiexec /quiet will avoid the userinteraction




回答2:


You can use the /passive switch to do this.

MsiExec.exe /I{A52EEC0E-D0B7-4345-A0FF-574804C7B78A} /passive

If you want to completely hide the UI, use the /quiet switch instead of /passive.




回答3:


Try adding the /qn flags to your command line. /q is quiet mode and n is a flag for /q that suppresses all user interface.

With these flags added, the complete command would be:

MsiExec.exe /qn /I{A52EEC0E-D0B7-4345-A0FF-574804C7B78A}


来源:https://stackoverflow.com/questions/6355911/avoid-confirmation-box-in-msiexec-uninstall

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!