msiexec /Uninstall

OSVBNET 1,386 Reputation points
2022-05-05T09:53:11.843+00:00

Hello,
I need to uninstall an almost large number of MSI packages via a batch file:

msiexec /Uninstall {GUID} /NoRestart

Many of them will ask for confirmation or messages like this: If you continue with this uninstall, 1 or more products may stop working properly. Do you wanna go on anyway...

I need to use the above command with /passive switch:

msiexec /Uninstall {GUID} /NoRestart /Passive

But /Passive will just suppress the question message box with the default button, which is of course NO! How to force it work in passive mode with YES to uninstall anyway?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,545 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. T. Kujala 8,706 Reputation points
    2022-05-05T09:59:42.357+00:00

    Hi @OSVBNET ,

    You can use the following method.

    msiexec /Uninstall {GUID} /NoRestart /Quiet

    If you want to stil use a passive method and it asks verification, I think there is something wrong with this installation package.