Thursday, October 6, 2016

Remove all old versions of Java with PS AppDeploy Toolkit

Here's the script to uninstall all old versions of Java (while installing the newest version) using the Powershell AppDeploy Toolkit:

Remove-MSIApplications -Name "J2SE Runtime Environment 5.0"
Remove-MSIApplications -Name "Java(TM) 6 Update"
Remove-MSIApplications -Name "Java 7 Update"
Remove-MSIApplications -Name "Java 8 Update"

No comments:

Post a Comment