Jump to content

MS Java removal


Recommended Posts

Since MS no longer support's their Java commonly referred to as VM then it just make's sense to uninstall it and install the Sun Java.

So this will uninstall and take care of several thing's left laying around.

MS_Java_remove.cmd

start /wait RunDll32 advpack.dll,LaunchINFSection java.inf,UnInstall /Q
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /f

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Uninstalling MS Java"
REG ADD %KEY%\010 /VE /D "MS Java VM Remove"
REG ADD %KEY%\010 /V 1 /D "cmd /c REG DELETE \"HKLM\SOFTWARE\Microsoft\Java VM\" /f"
REG ADD %KEY%\010 /V 2 /D "cmd /c REG DELETE \"HKLM\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_VM\" /f"
REG ADD %KEY%\010 /V 3 /D "cmd /c rmdir %systemroot%\java /s /q"
REG ADD %KEY%\010 /V 4 /D "cmd /c del %systemroot%\inf\java.pnf /q"
REG ADD %KEY%\010 /V 5 /D "cmd /c del %systemroot%\inf\java.inf /q"
REG ADD %KEY%\010 /V 6 /D "cmd /c del %systemroot%\system32\jview.exe /q"
REG ADD %KEY%\010 /V 7 /D "cmd /c del %systemroot%\system32\wjview.exe /q"
shutdown -r -t 5 -c "Windows XP will now restart             to finish uninstalling..."

EXIT

The one line wrapped should be this;

\"HKLM\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_VM\" /f"

I don't use the /f force overwrite cause I just delete the RunonceEX key first, add the entries and reboot. I ran this quite a few times after re-installing the msjavx86.exe with no problem's.

Link to comment
Share on other sites


Dont install it in the first place, intergrate your cd with SP1a instead of SP1.

Dont tell me you didnt know this, what have you been doing on this forum for the past 7 months man?? :)

Link to comment
Share on other sites

That is for any that may want to do that to make sure it's shed of it. In other word's for those with pre sp1a CD's. Simply uninstalling don't get it all.

dam just realized it has been a long time since I did format, with 120 gigs i install and test on separate partition's and leave what work's alone. I'm waiting on SP2 before I do the format of primary. Why mess with 1a since that was main thing it done to appease the lawsuit.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...