Uninsatll an msi with parameter or options.

Topics: Archive - Deployment Scripts
Dec 16, 2015 at 5:42 PM
Hello,
Could you please help me with uninstalling an MSI with options. I believe the “Execute-MSI -Action Uninstall” does not support additional options.

This is an example command line : msiexec /qb! /x MyProgram.msi AUTO_DELETE=3

Thank you, MikeWallace
Dec 17, 2015 at 7:22 AM
Hi

You can find that from the manual. Use Remove-MSIApplications function, like this: Remove-MSIApplications -Name 'MyProgram' -AddParameters 'AUTO_DELETE=3'. That -Name parameter is the name of the application, not the name of the msi file.

BTW, the new address for PSADT is http://psappdeploytoolkit.com/

BR

Jyri
Dec 18, 2015 at 10:35 PM

Good afternoon;

I had time today to test with the new command and wanted to let you know it work great, I did not notice this command in the manual, thanks for the reply.

PS : I wish I had seen my spelling mistake in the title before posting.

Thank you.

Dec 21, 2015 at 7:00 AM
You're welcome :)