-->
:windowssystem32msiexec.exe /q/x Considerations if an uninstall password is in place If you set a password for client uninstallation, you cannot uninstall the client silently. Clients with an uninstall password are prompted for the password, which must be entered manually. Script to silently uninstall avast from 7000 systems « on: September 07, 2017, 10:05:25 PM » In a batch script that runs when computers start up, I am needing to check and make sure that if a program called DeepFreeze is present, Avast! Gets uninstalled. I have been tasked to remove Firefox from 200 computers in our company due to security reason. I have scanned all the computers for versions of firefox installed on them and noticed there are different versions of firefox on our computers. I need to be able to uninstall them via our software deployment tool.
The executable program that interprets packages and installs products is Msiexec.exe.
Note
Msiexec also sets an error level on return that corresponds to System Error Codes.
The following table identifies the standard command-line options for this program. Command-line options are case insensitive.
Windows Installer 2.0: The command-line options that are identified in this topic are available beginning with Windows Installer 3.0. The Windows Installer Command-Line Options are available with Windows Installer 3.0 and earlier versions.
Option | Parameters | Meaning |
---|---|---|
/help | Help and quick reference option. Displays the correct usage of the setup command including a list of all switches and behavior. The description of usage can be displayed in the user interface. Incorrect use of any option invokes this help option. Example: msiexec /help [!Note] | |
/quiet | Quiet display option. The installer runs an installation without displaying a user interface. No prompts, messages, or dialog boxes are displayed to the user. The user cannot cancel the installation. Use the /norestart or /forcerestart standard command-line options to control reboots. If no reboot options are specified, the installer restarts the computer whenever necessary without displaying any prompt or warning to the user. Examples: msiexec /package Application.msi /quiet Msiexec /uninstall Application.msi /quiet Msiexec /update msipatch.msp /quiet Msiexec /uninstall msipatch.msp /package Application.msi / quiet [!Note] | |
/passive | Passive display option. The installer displays a progress bar to the user that indicates that an installation is in progress but no prompts or error messages are displayed to the user. The user cannot cancel the installation. Use the /norestart or /forcerestart standard command-line options to control reboots. If no reboot option is specified, the installer restarts the computer whenever necessary without displaying any prompt or warning to the user. Example: msiexec /package Application.msi /passive [!Note] | |
/norestart | Never restart option. The installer never restarts the computer after the installation. Example: msiexec /package Application.msi /norestart [!Note] | |
/forcerestart | Always restart option. The installer always restarts the computer after every installation. Example: msiexec /package Application.msi /forcerestart [!Note] | |
/promptrestart | Prompt before restarting option. Displays a message that a restart is required to complete the installation and asks the user whether to restart the system now. This option cannot be used together with the /quiet option.[!Note] | |
/uninstall | Uninstall product option. Uninstalls a product.[!Note] | |
/uninstall | /package 6,8988 gold badges45 silver badges89 bronze badges SandeepSandeep2502 gold badges5 silver badges14 bronze badges migrated from stackoverflow.comJun 6 '11 at 13:23This question came from our site for professional and enthusiast programmers. 2 AnswersYou can uninstall it using the product code: You would obtain this code from the MSI itself, or whatever tool you are using to build the MSI. Note that when you uninstall a product, it uses a cached MSI, since only the original MSI knows how to uninstall itself. When you use the product code, it uses the cached MSI from C:WINDOWSInstaller. vcsjonesvcsjones2,3581 gold badge13 silver badges20 bronze badges See my answer on stackoverflow.com for various ways to uninstall MSI files / Windows Installer Packages from your computer. You can uninstall via: msiexec, ARP, WMI, PowerShell, Deployment Systems such as SCCM, VBScript / COM Automation, DTF, or via hidden Windows cache folders, and a few other options. Community♦ Stein ÅsmulStein ÅsmulMsiexec Silent Uninstall Msi8941 gold badge12 silver badges23 bronze badges Msiexec Uninstall Silent PasswordNot the answer you're looking for? Browse other questions tagged command-lineinstallationwindows-installer or ask your own question. |