![]() ![]() Write-Debug “Uninstalling $($JavaX86Install. $MSIString = $JavaX86Install.UninstallString | Split-Path -Leaf If ($JavaX86Install.InstallLocation -notlike “*$($MinJavaVersion)*”) $JavaX64Installs = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall -Recurse | Get-ItemProperty | Where-Object | Select Displayname, UninstallString, InstallDate, InstallLocationįoreach ($JavaX86Install in ($JavaX86Installs | Sort-Object InstallDate)) When a user tries to remove a program through the Add/Remove tool, Windows looks for the registered uninstaller inside the registry and executes it. It looks at your installed versions of Java, removes all previous versions and provides you with the option of specifying a version to keep during the process.įunction JavaX64Uninstall ($MinJavaVersion) Uninstall openjdk from windows 7 Log on to windows 7 / Vista and click Start. Click Yes to Confirm the uninstall process. ![]() Select the openjdk and right click and then click on uninstall. Click on control panel and select Uninstall a Program from the Program Category. taskkill /F /IM iexplore.exe taskkill /F /IM javaw.exe taskkill /F /IM jqs.exe taskkill /F /IM jusched. The below PowerShell script will do just that. Click on Search box and type control panel. ![]() It is however sometimes a requirement to keep a specific release of Java for application compatibility, so what do you do in those scenarios where you want to clean up your old installs but the required version. The Patch My PC defined scripts will allow you to automatically uninstall all versions of Java Runtime Environment 8 (32-Bit) and Java Runtime Environment 8 (64. If you still have to maintain Java installations in your environment you will probably come up against having machines with multiple versions installed, unless you are running a clean up script for the old releases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |