Set IE as default in Java after installation
We already have JRE 1.6.0_03 installed, but did not set the default browser to IE.
When I set the reg key HKLM\Software\JavaSoft\Java Plug-in\1.6.0_03\UseJava2IExplorer to 1, it shows the check mark in the Java Control Panel, but not in IE Advanced Options, and therefore applets fail. Manually setting IE in the control panel works fine, but I need a deployment solution.
I noticed when I set it manually via the control panel, a bunch of new keys get added to HKLM under Microsoft and Internet Explorer, but not when I just change the UseJava2IExplorer value.
What do I need to do to register JRE in IE by command line?
When I set the reg key HKLM\Software\JavaSoft\Java Plug-in\1.6.0_03\UseJava2IExplorer to 1, it shows the check mark in the Java Control Panel, but not in IE Advanced Options, and therefore applets fail. Manually setting IE in the control panel works fine, but I need a deployment solution.
I noticed when I set it manually via the control panel, a bunch of new keys get added to HKLM under Microsoft and Internet Explorer, but not when I just change the UseJava2IExplorer value.
What do I need to do to register JRE in IE by command line?
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
gmorgan618
16 years ago
bdog,
Try the deployment configuration file in addition to the MSI property settings... You'll have to search for all the available properties, but what i have here works nicely for me.. :)
You can add the files manually also - no command line needed - JRE will pick them up at next launch...
Create a file called "deployment.config" within it place these lines: (This files sets up where the actual config file will be located)
-------<START dont include this line>--------
deployment.system.config=file\:C\:/Windows/Sun/Java/deployment/deployment.properties
deployment.system.config.mandatory=false
-------<END dont include this line>--------
Add this to your MSI, into the [INSTALLDIR]\lib\ directory
- or - C:\Program Files\Java\jre1.6.0_03\lib in your case....
Create another textfile named "deployment.properties" within it place these lines:
-------<START dont include this line>--------
#deployment.properties
#Wed Feb 07 15:31:58 EST 2007
deployment.javaws.viewer.bounds=0,0,687,497
deployment.security.SSLv2Hello=false
deployment.system.tray.icon=true
deployment.version=1.6.0
deployment.browser.vm.iexplorer=true
deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
deployment.javaws.associations=REPLACE_ASK
deployment.security.TLSv1=true
deployment.javaws.shortcut=ALWAYS
deployment.browser.vm.mozilla=false
#Java Web Start jre's
#Wed Feb 07 15:31:58 EST 2007
deployment.javaws.jre.0.product=1.6.0_03
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.osname=Windows
deployment.javaws.jre.0.platform=1.6
deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre1.6.0_03\\bin\\javaw.exe
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=true
deployment.javaws.jre.0.osarch=x86
#Java Plugin jre's
#Wed Feb 07 15:31:58 EST 2007
deployment.javapi.jre.1.6.0_03.args=
deployment.javapi.jre.1.6.0_03.osname=Windows
deployment.javapi.jre.1.6.0_03.path=C\:\\Program Files\\Java\\jre1.6.0_03
deployment.javapi.jre.1.6.0_03.osarch=x86
-------<END dont include this line>--------
Add this to your MSI, into the "%windir%\Sun\Java\Deployment\" directory
-- C:\windows\sun\java\deployment
Just like it is setup in the deployment.properties file....
Enjoy
-Grant
Try the deployment configuration file in addition to the MSI property settings... You'll have to search for all the available properties, but what i have here works nicely for me.. :)
You can add the files manually also - no command line needed - JRE will pick them up at next launch...
Create a file called "deployment.config" within it place these lines: (This files sets up where the actual config file will be located)
-------<START dont include this line>--------
deployment.system.config=file\:C\:/Windows/Sun/Java/deployment/deployment.properties
deployment.system.config.mandatory=false
-------<END dont include this line>--------
Add this to your MSI, into the [INSTALLDIR]\lib\ directory
- or - C:\Program Files\Java\jre1.6.0_03\lib in your case....
Create another textfile named "deployment.properties" within it place these lines:
-------<START dont include this line>--------
#deployment.properties
#Wed Feb 07 15:31:58 EST 2007
deployment.javaws.viewer.bounds=0,0,687,497
deployment.security.SSLv2Hello=false
deployment.system.tray.icon=true
deployment.version=1.6.0
deployment.browser.vm.iexplorer=true
deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
deployment.javaws.associations=REPLACE_ASK
deployment.security.TLSv1=true
deployment.javaws.shortcut=ALWAYS
deployment.browser.vm.mozilla=false
#Java Web Start jre's
#Wed Feb 07 15:31:58 EST 2007
deployment.javaws.jre.0.product=1.6.0_03
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.osname=Windows
deployment.javaws.jre.0.platform=1.6
deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre1.6.0_03\\bin\\javaw.exe
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=true
deployment.javaws.jre.0.osarch=x86
#Java Plugin jre's
#Wed Feb 07 15:31:58 EST 2007
deployment.javapi.jre.1.6.0_03.args=
deployment.javapi.jre.1.6.0_03.osname=Windows
deployment.javapi.jre.1.6.0_03.path=C\:\\Program Files\\Java\\jre1.6.0_03
deployment.javapi.jre.1.6.0_03.osarch=x86
-------<END dont include this line>--------
Add this to your MSI, into the "%windir%\Sun\Java\Deployment\" directory
-- C:\windows\sun\java\deployment
Just like it is setup in the deployment.properties file....
Enjoy
-Grant
Posted by:
bdog
16 years ago
Thanks, I followed your instructions and nothing happened. I created and dropped the deployment.config and deployment.properties files into %windir%\Sun\Java\Deployment as you specified, then went to one of our intranet java sites and got a red 'x' placeholder. IE isn't checked in Java or IE either. Am I supposed to refresh the settings somehow? Do you think there is a problem with your file referencing version 1.5x and I'm using 1.6x? I wasn't sure if it would update itself and it didn't.
Posted by:
gmorgan618
16 years ago
.The setup i posted needs the files to be placed to to seperate locations
deployment.config -> %ProgramFiles%\Java\jre1.6.0_03\lib
-This file points to the location of the properties file
deployment.properties -> %windir%/Sun/Java/deployment/deployment.properties
-This file contains the settings
... Did this fix the issue?
deployment.config -> %ProgramFiles%\Java\jre1.6.0_03\lib
-This file points to the location of the properties file
deployment.properties -> %windir%/Sun/Java/deployment/deployment.properties
-This file contains the settings
... Did this fix the issue?
Posted by:
bdog
16 years ago
Posted by:
nheim
16 years ago
Posted by:
bdog
16 years ago
[font="courier new"]
"UseJava2IExplorer"=dword:00000001
[font="courier new"]
[font="courier new"]
@="Java (Sun)"
"ComponentID"="JAVAVM"
"IsInstalled"=dword:1
"KeyFileName"="C:\\Program Files\\Java\\jre1.6.0_03\\bin\\regutils.dll"
"Version"="5,0,5000,0"
"Locale"="EN"
[font="courier new"]
[font="courier new"]
"RegPath"="Software\\JavaSoft\\Java Plug-in\\1.6.0_03"
"Text"="Use JRE 1.6.0_03 for <applet> (requires restart)"
"Type"="checkbox"
"ValueName"="UseJava2IExplorer"
"HKeyRoot"=dword:80000002
"CheckedValue"=dword:1
"DefaultValue"=dword:1
"UncheckedValue"=dword:0
[font="courier new"]
[font="courier new"]
"Text"="Java (Sun)"
"Type"="group"
"Bitmap"="C:\\Program Files\\Java\\jre1.6.0_03\\bin\\regutils.dll,1000"
[font="courier new"]
[font="courier new"]
"MenuText"="Sun Java Console"
"CLSID"="{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}"
"ClsidExtension"="{CAFEEFAC-0016-0000-0003-ABCDEFFEDCBC}"
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.