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?
Use the following command: msiexec.exe /x "[Network_location]:\BizagiModeler. msi" /qn to uninstall the program.
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.
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).
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With