避免在MsiExec卸载中使用确认框

San*_*eep 7 c# msiexec

我需要从我的代码中运行msiexec卸载:

MsiExec.exe /I{A52EEC0E-D0B7-4345-A0FF-574804C7B78A}
Run Code Online (Sandbox Code Playgroud)

但这是要求确认(是/否).我怎么能避免这种情况?

dhi*_*esh 9

msiexec /quiet 将避免用户交互


fox*_*oxy 5

您可以使用/passive开关执行此操作.

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

如果要完全隐藏UI,请使用/quiet开关而不是/passive.