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

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?
0
WellingtonIS
Asked:
WellingtonIS
  • 3
  • 3
  • 2
1 Solution
 
tlrjohnCommented:
is there an uninstall package?
0
 
WellingtonISAuthor Commented:
the file is an .exe but I don't see an uninstall in the folder.  Only via add/remove programs
0
 
johnb6767Commented:
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....


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
johnb6767Commented:
Windows: Uninstall an Application from the Command Line
http://www.tech-recipes.com/rx/2947/windows_uninstall_application_command_line/

Havent ever tried it but if you use the /node switch, might be able to do it remotely, as a one off.... If the app is WMI compatibile...
0
 
tlrjohnCommented:
Using the value in the registry, you should be able to create an .cmd file to perform the task.

Regards
0
 
WellingtonISAuthor Commented:
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
0
 
johnb6767Commented:
wmic product where name="Siemens Pharmacy 23.07.9034" call uninstall /nointeractive

All one one line in a batch file....
0
 
WellingtonISAuthor Commented:
worked like a charm!! thanks.1
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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