If exist "C:\Program Files" regedit.exe -s %~dp0\DisableAutoUpdate.regĮcho *** Copying Configuration Properties Files *** If exist "C:\Program Files (x86)" regedit.exe -s %~dp0\DisableAutoUpdateX64.reg %~dp0\jre-7u25-windows-i586 /s /L C:\Windows\setup.log "WEB_JAVA=1 REBOOT=SUPRESS WEB_JAVA_SECURITY_LEVEL=M" If exist "C:\Program Files\Java" rd "C:\Program Files\Java" /q /s If exist "C:\Program Files (x86)\Java" rd "C:\Program Files (x86)\Java" /q /s If exist "C:\Program Files (x86)" reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft /f If exist "C:\Program Files (x86)" start /w regedit /e "%systemroot%\JavaSoftRegBackup.reg" HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft If exist "C:\Program Files" reg delete HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft /f If exist "C:\Program Files" start /w regedit /e "%systemroot%\JavaSoftRegBackup.reg" HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft Wmic product where "name like 'Java 7%%'" call uninstall /nointeractive Wmic product where "name like 'Java(TM) 7%%'" call uninstall /nointeractive Wmic product where "name like 'Java 6%%'" call uninstall /nointeractive Wmic product where "name like 'Java(TM) 6%%'" call uninstall /nointeractive If not exist "C:\Program Files (x86)" set OSV="C:\Program Files"Įcho *** This will kill IE and Java Processes ***Įcho *** This will uninstall older versions of JRE ***
If exist "C:\Program Files (x86)" set OSV="C:\Program Files (x86)" Just thought I'd post my new JRE uninstall script which is alot faster than my older VB script by using the machines WMI.