For those of use that like working with shortcuts more often on Windows System, here are the following steps to initiate an uninstallation via the built-in command prompt.
Hold down the Windows Start Key and press “R” to bring up the “Run” dialog or search fro run directly from the search window.
Type “appwiz.cpl“, then press “Enter“.
This will automatically open the Uninstall or Change a Program window from the Control Panel.
Double click on any program you want to uninstall
We can also use the wmic command prompt tool in the following ways to uninstall a program. In the Command Prompt window, type wmic and press Enter as shown below.
This loads the Windows Management Instrumentation (WMI) Command-line tool. Henceforth, the commands identified by WMIC can now be uninstalled via the Command Prompt. To perform this, enter the command.
product get name
The command lists all the desktop apps that can be removed with this method. If the program you intend uninstalling is present here, enter the command the command below.
product where name="name of program" call uninstall
Where the “name of the program is replaced with the actual program name without any quote as shown below. This will prompt a Y or N Uninstall question, select y to uninstall as shown below.
After the installtion is complete,
When executed correctly, you should see a ReturnValue=0 and a message that says “Method execution successful.”
Also, we may also want to uninstall a program in an automated way that does not require any user interaction. In this way, we will utilize the wmic product commands. Here are the syntaxes (commands to perform this).
wmic product where "description='program name' " uninstall
The “wmic product” get lists all the installed programs in the command prompt. as shown below.
– Before using this method, ensure the program can be identified by the WMI as shown in the list before.
Note: Nonetheless, Keep the following in mind when using the wmic command to uninstall a program.
– Ensure to give the correct program name or else it will not work.
– If the program has the version embedded in the name, please enter it that way.
Also, the find string command “findstr” can be used in combination with wmic command.
With a value of Zero return, the uninstallation was successful.
Consequently, I welcome you to follow me on Twitter and Facebook. I hope you found this blog post on uninstalling a program via command prompt in Windows helpful. If you have any questions, please let me know in the comment session