Question Locked

how to add/remove programes usig dos

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

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.

4 replies

by hal 9000

DOS ceased to exist! Every subsequent version of Windows has not been a DOS application or actually supported DOS Commands from the CLI that is built into ever version of Windows.

So if you wish to remove something from a Windows 3, 3.11 For Workgroups, 95, 98 or 98SE you can use DOS commands to remove programs but if you are attempting to remove programs from anything newer there is nothing available from DOS that can help you.

However if you are using the CLI in Windows NT, 2000, XP or Vista you can use the Basic Unix Commands to achieve this though it will be slow and messy to implement. You could also possibly write a Batch File to destroy every one of these programs on the entire network but you would have to know exactly what it was you where programming as the possibility of doing much more harm than good is always present.

Col

by zombiebot

If, when you refer to the DOS prompt, your are referring to the Windows 2000/XP command line then you should be able to use the MSIExec command line utility.

This provides options to install/uninstall applications that you would find in the Windows Add/Remove Programs list.

You can find more information here...

http://tinyurl.com/yoryxf

Rob.

by grassiap

there are so many installers hence uninstaller that there is no UNIQUE way to do this.

1/ if the app was installed as an MSI, then the previous answer is best, use MSIEXEC

2/ check in the program menu, if there is an entry for removing the app, get the properties of the shortcut, it will tell you the proper command line to use. You will most probably have to do some research to find the extra argument to make it unattended (not stopping at "are you sure you want to remove this software?" until someone clicks yes or call support for this virus that's trying to destroy his PC)

3/ if not open the registry editor look for the app name in : HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall

look for the UninstallString or QuietUninstallString

it can be anything from calling the install exec with an argument, rundll32 ... if the file in the string is a .LOG you'd probably have to feed it to MSIEXEC, if this is a .ISU you'll have to give it the app's setup.exe ( with extra switch)

feel free to contact me directly with some more details if you need more specific help.

HTH
Philippe

This discussion is closed to new replies.