Avoid the confirmation window when uninstalling MsiExec

I need to start uninstalling msiexec from my code:

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

But this requires confirmation (Yes / No). How can i avoid this?

+6
source share
3 answers

msiexec /quiet will avoid user interaction

+8
source

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 user interface, use /quiet instead of /passive .

+5
source

Try adding the /qn flags to your command line. /q is silent mode, and n is the flag for /q , which suppresses the entire user interface.

With the addition of these flags, the complete command:

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

Source: https://habr.com/ru/post/890590/


All Articles