Discussion Locked

uninstall a program via a DOS prompt?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an application listed in Add/remove programs that I need to remove from a bunch of PCs at multiple locations. If I click REMOVE, it says are you sure, you say YES and it quickly removes it without any more prompts. Is there any way to execute this same procedure from a DOS prompt?
I can remotely execute a script on these machines if there is a way to do it without prompts. Right now I have to Terminal Service into each machines and Add/Remove.

3 replies

by p.j.hutchison

You need to look in the registry (try HKLM\Software\Microsoft\Windows\CurrentVersion\ Uninstall) and look for the command string for that program to install it with.

by complexmind

PJ:

Thanks for the insight. I never knew the uninstall strings were in there. As a side note, my program used msiexec.exe to uninstall. If you add the /Q parameter to the uninstall string it will not prompt the user "Are you sure".
Thanks.

This discussion is closed to new replies.