Thursday, February 23, 2012

Further on Java Silent Installs Error: 25099

If you are still getting "complete" installations that aren't really installing in GFI LanGuard, try running the following batch file commands against the affected client:

CD %ProgramFiles(x86)%
RD /S /Q Java
RD /S /Q %AppData%\..\LocalLow\Sun

If for some reason a previous install or uninstall of Java on the client went wrong, these directories may remain causing the Silent installs to fail even though GFI LanGuard reports them as successful. NOTE: Before running it though, I would verify that Java isn't showing up in the client's Installed Programs in the Control Panel. WMIC should be able to detect this, but I am not certain it is always reliable:
wmic /node:computername product where "name like 'Java%'" get name
If the client machine has characters other than letters and numbers you should use single quotes around the name.  If you run this batch file against a good installation of Java it can give you problems. It will not let you uninstall or reinstall! It will report that a DLL is missing. If you come across this problem simply copy the %ProgramFiles(x86)%\Java\ directory of a working installation from another computer and paste it to the one having issues. This will allow you to uninstall or reinstall Java. Of course you shouldn't have this issue though as long as you verify that Java isn't already showing up as installed. For other things to try with troublesome Java check this link: http://www.java.com/en/download/help/regkey_addremove.xml


No comments:

Post a Comment