Link to home
Start Free TrialLog in
Avatar of WellingtonIS
WellingtonIS

asked on

vb script or bat file to remove software

I'm looking for something to remove an installed software application, non-microsoft remotely.  Anybody have vb or bat file?
Avatar of tlrjohn
tlrjohn
Flag of United States of America image

is there an uninstall package?
Avatar of WellingtonIS
WellingtonIS

ASKER

the file is an .exe but I don't see an uninstall in the folder.  Only via add/remove programs
Find this key in the registry...

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Search under that key for the app name, and you will find an UninstallString value.

That can be used for uninstalling at the command line. Can be used in a logon script, PSExec for remote uninstall, etc....


ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Using the value in the registry, you should be able to create an .cmd file to perform the task.

Regards
that is very cool.  I'm trying to script it.

wmic
can't get the 2nd line!
product where name="Siemens Pharmacy 23.07.9034" call unistall /y
wmic product where name="Siemens Pharmacy 23.07.9034" call uninstall /nointeractive

All one one line in a batch file....
worked like a charm!! thanks.1