diff --git a/README.md b/README.md index 3fe29c9bf8cfd8a92f13585d3184138b91ad3280..dadd15d2059b89cfed2596996a979add4543918a 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,4 @@ These are made for double-click execution via file explorer. * `Fix printer not install- and selectable.bat` fixes a problem where no printer can be selected or even installed, caused by corrupted files. * `Fix search & settings.bat` fixes the windows search and the settings app not starting up correctly and freezing. * `Fix winmail.dat - Disable RTF & TNEF.reg` fixes the receiver of an email getting a `winmail.dat` file as attachment instead of a normal file by introducing a registry fix to keep Outlook from ever sending emails in RTF format or TNEF encryption. +* `Remove Java.bat` removes remains of a Java installation after uninstall. \ No newline at end of file diff --git a/Remove Java.bat b/Remove Java.bat new file mode 100644 index 0000000000000000000000000000000000000000..9749c3d0d2b11eb8e55238dbc34058105f5dfa12 --- /dev/null +++ b/Remove Java.bat @@ -0,0 +1,8 @@ +@echo off +del "C:\Program Files (x86)\Common Files\Java\*" /s /q /f +reg query hklm\software\classes\installer\products /f "java(tm) 7" /s | find "HKEY_LOCAL_MACHINE" > deljava.txt +for /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /f +del deljava.txt +reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /f +reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f +pause \ No newline at end of file