Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silent MSI uninstall of GUIDs that doesn't exist

I am attempting to implement a quiet uninstall of my application. This works great if the application is actually installed, but when it is not the user receives an error message and must click OK to continue.

My command:

MSIEXEC.EXE /qb /L* "%LOGDIR%\myuninstaller.log" /x{GUID}

The problem is that I need to clean up all old versions of the app in a script I deploy in AD. I don't know what version is installed on what computer, and making the script determine so first is difficult.

How can I make MSIEXEC NOT complain about uninstalling GUID's that don't exist?

like image 240
Tedd Hansen Avatar asked Feb 22 '11 09:02

Tedd Hansen


People also ask

How do I Uninstall MSI silently?

Use the following command: msiexec.exe /x "[Network_location]:\BizagiModeler. msi" /qn to uninstall the program.

How do I force MSI to Uninstall?

Uninstalling an MSI from the command line using the msiexec.exe. If you have access to the original MSI, then you can use the msiexec /x <path to the MSI file> command to uninstall your application. Windows Installer technology uses msiexec.exe for both the installation and uninstallation of MSI packages.

How do I Uninstall MSI GUID?

You can locate the required GUID to pass to msiexec.exe /x by opening regedit.exe at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and search for the application name (or just browse through each sub folder till u find it).


1 Answers

Found the answer on http://technet.microsoft.com/en-us/library/cc759262(WS.10).aspx#BKMK_SetUI

It seems I need to use /qn instead of /qb.

like image 122
Tedd Hansen Avatar answered Sep 27 '22 21:09

Tedd Hansen