Avoid confirmation box in MsiExec uninstall
13,310
Solution 1
msiexec /quiet
will avoid the userinteraction
Solution 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
.
Solution 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}
Author by
Sandeep
I have been working with C#, SQL, nHibernate, VB and a little bit with WPF, WCF, WF.
Updated on July 19, 2022Comments
-
Sandeep almost 2 years
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?
-
Philm about 10 yearsNot fully correct. Yes, "/qn" is one of the possible parameters here. To give the full story here to all the answers: /qn and /q are equivalent- and /quiet is the same too. This is the silent variant. The second, unattended variant (with progress bar, but without asking or other modal boxes) is /qb or the equivalent /passive. All parameters solve the mentioned problem.
-
Philm about 10 yearsOf course there are more like /qb+ /qn+ or the variants with ("!") which is hiding the cancel button during progress (/qb+! /qb-!).