General discussion

Locked

Uninstall a program using the command pr

By jlm_14 ·
How can I uninstall a program from the command prompt. I need to write a batch file that will launch during the login script

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Uninstall a program using the command pr

by nitemare In reply to Uninstall a program using ...

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,

Collapse -

Uninstall a program using the command pr

by jlm_14 In reply to Uninstall a program using ...

Poster rated this answer

Collapse -

Uninstall a program using the command pr

by shiny_topadm In reply to Uninstall a program using ...

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...

Collapse -

Uninstall a program using the command pr

by jlm_14 In reply to Uninstall a program using ...

Poster rated this answer

Collapse -

Uninstall a program using the command pr

by RCOM In reply to Uninstall a program using ...

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.

Collapse -

Uninstall a program using the command pr

by jlm_14 In reply to Uninstall a program using ...

Poster rated this answer

Collapse -

Uninstall a program using the command pr

by jlm_14 In reply to Uninstall a program using ...

This question was closed by the author

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums