Monday, October 19, 2009

How to uninstall application from command line in Vista

I was doing some application testing on a Vista laptop, and the "Programs and Features' window does not contain a single, installed appliaction. Not even logging in as Administrator and running "appwiz.cpl" solved the problem. If anybody knows the solution, I will really appreciate if you can share it with me.

Anyway, some Googling showed that it is possible to use wmic to uninstall the application.

1. Start wmic. In Windows command line, simply type "wmic"


2. List out all installed applications

wmic:root\cli>product get name


3. Once you have the exact application name, use this command:

wmic:root\cli>product where name="Adobe Reader 9" call uninstall

No comments:

Post a Comment