سؤال

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?

هل كانت مفيدة؟

المحلول

msiexec /quiet will avoid the userinteraction

نصائح أخرى

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.

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}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top