• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1363
  • Last Modified:

Script to uninstall application from all computers in network

I have to remove an application from all computers in my network and I want to see if I can automate it so that I don't have to go machine by machine.  So I was thinking that maybe a script when they log in could do the job, the thing is I'm not fluent in the script creating proccedure.  the program is in add/remove programs, but does not has an uninstall of it's own.  Any tips on how to go about this or anybody has a script that can be used for this?
0
msomohano
Asked:
msomohano
1 Solution
 
zoofanCommented:
Hello,

Have you tried using add/remove to uninstall the app on one machine? Assuming it did unistall check the following registry key on another machine.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"app name"
and look at/for the following three keys
"UninstallString"="\"C:\\Program Files\\AppName\\APP.EXE\" /uninstall"
"InstallLocation"="C:\\PROGRA~1\\AppName\\"
"QuietUnistallString"="C:\\PROGRA~1\\AppName\\App.exe\" /uninstall /SILENT

That should help in locating the uninstall for the application and hopefully a quiet uninstall.

From there creating and running a simple batch file with the QuietUninstall or Unistall string will start that uninstall(keep in mind dos naming 8/3(C:\PROGRA~1).  

Creating a batch file is simple enough using notepad enter your command line

c:\progra~1\applic~1\app.exe /unistall

and save the file with a bat extension instead of txt (be sure you have "view file extensions" enabled.)


However each app is different and not all have command line switches to automate them using the QuitUninstall(meaning you may still have to click thru the uninstall)

Start with that and see if it helps if not maybe I can you further with another option to automate it.

zf
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now