I can provide full script, if interested. Go to the installation folder of IBM 32-bit Runtime Environment for Java. With this method I can remove all versions before installing new one. $query = "select * from win32_Product where (Name like 'Java %' or Name like 'Java(TM)%' or Name like 'J2SE%') and (Name 'Java Auto Updater') and (Name like '%(64-bit)%') and ((Vendor='Sun Microsystems, Inc.') or (Vendor like 'Oracle%')) and (NOT Name like '%CompuGROUP%') and (NOT Name like '%IBM%') and (NOT Name like '%DB%') and (NOT Name like '%Advanced Imaging%') and (NOT Name like '%Media Framework%') and (NOT Name like '%SDK%') and (NOT Name like '%Development Kit%')" $query = "select * from win32_Product where (Name like 'Java %' or Name like 'Java(TM)%' or Name like 'J2SE%') and (Name 'Java Auto Updater') and (Not Name like '%(64-bit)%') and ((Vendor='Sun Microsystems, Inc.') or (Vendor like 'Oracle%')) and (NOT Name like '%CompuGROUP%') and (NOT Name like '%IBM%') and (NOT Name like '%DB%') and (NOT Name like '%Advanced Imaging%') and (NOT Name like '%Media Framework%') and (NOT Name like '%SDK%') and (NOT Name like '%Development Kit%')" I run a WMI Quiery to get all versions of 32-bit and 64-bit Java with these quieries:
I use powershell script to run the upgrade process ( SCCM application runs that script ). I was in the same boat to deploy Java 8u102 (had to go with older version for compartability issues with one vendor site), previously removing all older versions.