I have several programs I want to uninstall from my computer (Windows 7 64bit).
Is there a batch\script that can help me do it? or I need to do it one by one from Control Panel?
If there isn't for Windows 7, is there something like this in XP?
thanks, Dor.
I wrote this this morning.
Use wmic right from the terminal. You can look at microsoft's documentation to see more usages.
This will be a great starting point:
I use the above line to clean uninstall autodesk products.
There isn't really an
uninstall
command kind of thing in cmd that I know of. You could however query this reg keyHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
(might also need to check
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
if you're on a 64-bit machine)to find the program you want to uninstall. Each one will have an
UninstallString
value which will tell you the path to the programs uninstaller file which you can then execute by calling it's full path and filename.If the uninstaller happens to be an msi you can use
msiexec /uninstall /x
to silently uninstall it. This is about as much as you can do with batch I think.Hope this helps!
to complement Bali's answer, try the following code...
test it carefully. And then remove the
echo
command.