Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid confirmation box in MsiExec uninstall

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?

like image 714
Sandeep Avatar asked Jun 15 '11 09:06

Sandeep


2 Answers

msiexec /quiet will avoid the userinteraction

like image 95
dhinesh Avatar answered Sep 20 '22 23:09

dhinesh


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.

like image 25
foxy Avatar answered Sep 18 '22 23:09

foxy