Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to uninstall Software from Add/Remove Programs?

Status
Not open for further replies.

Dav136

Technical User
Oct 3, 2003
21
0
0
AT
Since WMI doesnt provide for non-MSI installed Software, does anyone know a possibility to uninstall such software by script?

Any help is greatly appreciated!!

Dav

 
Hello Dav136,

You can take a look of the registry characteristic key with structure like :

[tt][HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\[blue]Uninstall[/blue]\<productname>][/tt]

with value name win9x-series :
[tt]"UninstallString"=[green]"<some commandline>[/green]"[/tt]

or winNT-series :
[tt]"UninstallPath"=[green]hex(2):aa bb cc 00 11...etc also representing <some commandline>[/green][/tt]

and <productname> part might be expanded further down some subkeys.

Hence, a possible scheme would be to Discover the UninstallString/UninstallPath setting and then .run the commandline.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top