question

osvbnet avatar image
0 Votes"
osvbnet asked JiachenLiMFST-9349 edited

msiexec /Uninstall

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-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TKujala avatar image
0 Votes"
TKujala answered osvbnet commented

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, thanks but there's no difference between /Passive and /Quiet but to show or hide a progress bar

I already tested your solution (/Quiet) it does not confirm this message:

"If you continue with this uninstall, 1 or more products may stop working properly. Do you wanna go on anyway..."

I didn't say I'm using passive method and it asks verification, I said I use passive mode and it does not uninstall, due to inability to pass the above message!

0 Votes 0 ·

OK for anyone reading this, the right way of doing so:

msiexec /Uninstall {***} /NoRestart /Passive IGNOREDEPENDENCIES=ALL

0 Votes 0 ·