Skip to main content settings for plug-in

3 replies [Last post]
Joined: 2010-05-13

I would like to know what the setting in the file to turn the Java Plug-in Enable the next-generation Java Plug-in (requires browser restart) off. thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-05-26

I need to do the same thing. I need to find a command that I can add to the file to disable the next generation plug-in. Was anyone able to come with the better solution?

Joined: 2010-07-13

I came here looking for the answer and ended up discovering the solution thanks to Process Monitor. It was such a pain that I created an account here just to post this reply!

Here's the command line for programmatically un-checking the "Enable the next-generation Java Plug-in" option in 1.6.x versions of Java:
[b]"C:\Program Files\Java\jre6\bin\ssvagent.exe" -high -jpisetup -old[/b]

To re-check it, the command is:
[b]"C:\Program Files\Java\jre6\bin\ssvagent.exe" -high -jpisetup -new[/b]

For those of you who have tried the registry tweak of HKLM\JavaSoft\Java Plug-in\1.6.0_20\UseNewJavaPlugin=0, this causes some frustration because it [i]appears[/i] to work, but actually does nothing. All this reg setting does is tell the Java Control Panel when it is being opened whether to check that checkbox, and has no other effect. The process of checking or unchecking this box in the Java Control Panel (and hitting Apply) enumerates and modifies registry keys for all existing installations of Java via the ssvagent.exe utility, which can be emulated with the above commands.



Joined: 2010-05-17

I have a sample batch file installation that works 30% of the time. By 30% of the time, I mean it turns the value off. But, on most of the installs I have to go back and have the client 'fix' the installation. By fix I mean:

• Close all browser sessions
• Open Control Panel
• Select Java
• Select the Advanced Tab
• Verified that ‘Enable the Next-Generation Java Plug-In’ was unchecked
• Checked the ‘Enable the Next-Generation Java Plug-In’ and then selected the Apply button
• On the Java Plug-in settings change window, select the OK button
• Unchecked the ‘Enable the Next-Generation Java Plug-In’ and then selected the Apply button
• On the Java Plug-in settings change window, select the OK button
• Close the Java Control Panel

It would be great if anyone could post a better method for performing a silent install that would disable the 'Next-Generation Java Plug-In' option.

Sample batch file installation:

@echo OFF
echo Please wait while the Oracle Java Plug-Ins are installed on your workstation...
echo This window will close when the update has completed.
REM Check to see if install has been completed

set KEY_NAME="HKLM\SOFTWARE\JavaSoft\Java Runtime Environment"
set VALUE_NAME=Java6FamilyVersion

reg query %KEY_NAME% /v %VALUE_NAME% | find "1.6.0_20" > nul
if %errorLevel% == 0 goto exit

REM Check for OS Version x86 or x64 and Execute

If %processor_Architecture% == x86 goto executeX86
If %processor_Architecture% == AMD64 goto executeAMD64

echo Java JRE6u20 Failed to install on %computername% >> \\\%computername%.txt
echo Processor Architecture Value is %processor_Architecture% >> \\\%computername%.txt
goto exiterror

\\\Java\JREWin32Bit\jre-6u20-windows-i586.exe /s /v INSTALLDIR=C:\Progra~1\Oracle\JRE6u20 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0
goto end

\\\Java\JREWin64Bit\jre-6u20-windows-x64.exe /s /v INSTALLDIR=C:\Progra~1\Oracle\JRE6u20 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0
REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /d 0 /t REG_DWORD /f
goto end

echo Java JRE6u20 Installed on %computername% >> \\\Success\%computername%.txt
echo Processor Architecture Value is %processor_Architecture% >> \\\Success\%computername%.txt

REG ADD "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /d 0 /t REG_DWORD /f
REG ADD "HKLM\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_20" /v UseNewJavaPlugin /d 0 /t REG_DWORD /f



Message was edited by: lewis_carroll