10 Replies Latest reply on Jun 9, 2017 11:27 AM by stcain

    Removing previous versions of Java : How TO?

    mcrossland

      I'm new to patch manager.   I have configured Java updates and they apply just fine.  I'm also aware that these updates do not remove previous versions of java.

      How can we use patch manager to remove previous java versions after installing the latest version (update)?

       

      Seems like there could be some sort of uninstall routine for the entire domain group that would follow successful installations of the upgrades but I don't know.

       

      Any help would be greatly appreciated!

       

      Mike

        • Re: Removing previous versions of Java : How TO?
          kellytice
          • Find a machine that has the specific version you wish to uninstall
          • In Patch Manager, select and right-click that machine, then launch Computer Explorer and go to the Installed Software tab.
          • Select the specific .MSI-based software you wish to uninstall and click "Uninstall" on the upper right.
          • On the computer selection page, the one machine will be targeted, but add other machines using the "Add machines" or "Browse Machines" options, or you can click the "Select Computers using Rules" option to scope it out to a larger group (patching group / OU / domain)
          • On the page after, you can determine to run that task now or schedule the uninstall for a certain time.

           

          Note:  this just works for .MSI-based applications, it would not be an available option for .EXE-based apps.

          • Re: Removing previous versions of Java : How TO?
            stcain

            I duplicate the packages that come in from SolarWinds and then modify them to uninstall the previous version of JRE 8. I can't uninstall all old versions because we have some machines that need a specific version of JRE 6 for a specific application.

            Capture.JPG

             

              Then I make this change in the Package Boot Editor.

            Capture1.JPG

              • Re: Removing previous versions of Java : How TO?
                jasweat

                Just so I'm clear, you copy the Java upgrade from Solarwinds, modify it with the MSI product code of the previous Java install so it will uninstall the previous version, and approve both Java updates (Install Upgrade and Uninstall Upgrade)? Or do you modify the Java upgrade from Solarwinds to uninstall Java previous, and then install Java upgrade? Essentially, you are only approving one update.

                  • Re: Removing previous versions of Java : How TO?
                    kellytice

                    You may already be aware, but when SolarWinds provides packages, there will typically be a 'full install' version and an "update" or "upgrade" version, like this:

                    Java Runtime Environment 8u131 (x64)         <-- this one will deploy Java if it is not on the target machine(s) or will upgrade previous versions of Java 8.

                    Java Runtime Environment 8u131 (x64) (Upgrade)  <-- this one will only upgrade previous versions of Java 8; it will not deploy it 'from scratch' on a target machine.

                     

                    What you said above was generally correct - though you lost me a bit when you got to the Approval part - so I'll try to clarify:

                     

                    Yes, you could clone a 'full install' package that SolarWinds provides and give the clone a new name, then Edit that package to use the PackageBoot functionality to uninstall specific .MSI product ID(s) before the 'new' Java version is installed (as described by stcain).  If you happen to know the product IDs for multiple versions of Java, you could include each one in that PackageBoot definition to remove them all.    The hardest part is knowing the Product IDs of the Java versions you want to remove - you should be able to use Patch Manager to do an Inventory to discover those Product IDs, or I would imagine there are probably webpages that list them all.

                     

                    When it comes to deployment, you'd just have to publish the modified (clone) package into WSUS or SCCM and use that environment to deploy it (or perhaps use a Patch Manager task to deploy it directly).   You should only have to Approve that one update.

                  • Re: Removing previous versions of Java : How TO?
                    wsitte

                    I have done what you described above and still can not get it to uninstall Java. It installs fine but the uninstall is not working at all.

                     

                    This is what the package looks like for uninstalling Java 8 Update 111 64-Bit

                    PackageSetup.png

                     

                    And this is my add remove programs after I run Windows Update:

                     

                    Programs.png

                     

                    Even though this isn't my ideal way this would work I just want something to work in uninstalling old versions.