Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / June 2004

Tip: Looking for answers? Try searching our database.

Uninstall all Previous Windows Versions of JRE

Thread view: 
Michael T - 29 Jun 2004 16:35 GMT
Help!  I am working on a corporate deployment of JRE V1.4.2_04.  I
would like to programmatically uninstall all previous versions of
Java.  Is there an easier way to manually remove all previous versions
without having to:

1) Enumerate all Uninstall registry keys in Registry
2) Kicking off uninstall strings (create response files if necessary)

This approach is messy and I have no way of knowing all previous
versions of SUN JRE released.

Should I leave existing versions on the workstation?  I would like to
keep a corporate standard.  Any help on this topic would be GREATLY
appreciated.  Thanks.
Mark H. Wood - 30 Jun 2004 17:36 GMT
Have you looked at Windows Management Instrumentation?  WMI knows
about installed products and can manipulate them.  For example,

 wmi_service.ExecQuery("SELECT * FROM Win32_Product")

(where wmi_service is a connection to WMI on the target host) will
return an enumeration known installed products.  If you have some way
to recognize the products you want to get rid of, walk the collection
and call the Uninstall() method of each matching object.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_
start_page.asp


Signature

Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
Open-source executable:  $0.00.  Source:  $0.00  Control:  priceless!



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.