Discussion Locked

Uninstall a program using the command pr

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I uninstall a program from the command prompt. I need to write a batch file that will launch during the login script

7 replies

by nitemare

Hi,

You need to know the name of the uninstallation executable. You also need to know any switches which are required.

Then you simply write your batch file to call the executable with the switches you've given it.

You can then put the batch file into your Task Scheduler to automate it if you wanted to...

Regards,

by shiny_topadm

Hi, to give an answer, we need some more info: what OS? do you have a specific program in mind or is this a general question? networked? is there an existing login script? if so, what's in it now? what procedure was used to install the program (and who did it)? These answers may help us, at this point the good answer could exist in a range from 'very easy---' to 'impossible'. I'm not trying to be 'smart', just trying to quantify your needs...

by rcom

For some software If you know the program's CLSID number you can use MsiExec.exe to uninstall the software. I've had to do this to rewmove corrupted installs of Mcafee and Office.

Open command the from c:\windows\system type in

msiexec.exe /X{xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx}

include all characters, the x's represent the CLSID number. Sometimes the computer will reboot if that's needed.

This could easily be used in a batch file. But the batch should include "IF EXIST" or a way to delete the line after the task is performed or it will attempt the uninstall everytime the system boots.

This discussion is closed to new replies.