September 13, 200421 yr %UserProfile%\Application Data\Sun\Java\Deployment\deployment.properties#javaplugin.console=show#javaplugin.console=hidejavaplugin.console=nothing
September 13, 200421 yr i think i've something to kick out the virtual java machine of windows will post u this tonight
September 13, 200421 yr Author %UserProfile%\Application Data\Sun\Java\Deployment\deployment.properties#javaplugin.console=show#javaplugin.console=hidejavaplugin.console=nothingTHANKS!i think i've something to kick out the virtual java machine of windows will post u this tonight If you're talking about removing Microsoft's VM, they released a tool to do it for you. Just search for unmsjvm.exe
September 13, 200421 yr Author I created a batch file to do this automatically. You can either insert the code below (minus the @ECHO OFF) into your main batch file to be run immediately after the JRE is installed or you can call the cmd file to do it.@ECHO OFFCD "%UserProfile%\Application Data"mkdir Sun\Java\DeploymentECHO deployment.console.startup.mode=disable >> Sun\Java\Deployment\deployment.propertiesjava.cmd
September 13, 200421 yr If it's run from the RunOnceEx process you can use the %APPDATA% variable, and if you use cmdow to hide command prompts it will look like@echo offcmdow @ /HIDCD %APPDATA%MD Sun\Java\DeploymentECHO deployment.console.startup.mode=disable >> Sun\Java\Deployment\deployment.propertiesanyway many thanks RyanVM, i'll use it
September 13, 200421 yr Author I don't use RunOnceEx, so I didn't know that Glad to be of help as always
September 13, 200421 yr Author One thing I do like about the Java5 installer is that it doesn't create any shortcuts or start menu items anymore. Always nice
September 13, 200421 yr Author Correct me if I'm wrong, but it looks like you can use the %appdata% environment variable from a command prompt in all circumstances. It's listed if you run the SET command.
September 13, 200421 yr Correct me if I'm wrong, but it looks like you can use the %appdata% environment variable from a command prompt in all circumstances. It's listed if you run the SET command.inside windows of course but from PE...until the second reboot (when you see the logonui screen) some variables are not defined yet, like for example %APPDATA%.if you want to test it simply try to copy something to %APPDATA% from cmdlines.txt and add a pause to see the results at the end of the script
September 13, 200421 yr Author OK, so if I'm running it from GuiRunOnce, it should be fine. Sounds good
September 13, 200421 yr Author OK, the command is even easier. All that's needed (assuming you're running this from a point where %appdata% is a valid variable) is the following two lines:MD "%appdata%\Sun\Java\Deployment"ECHO deployment.console.startup.mode=disable >> "%appdata%\Sun\Java\Deployment\deployment.properties"And for those of you who like calling separate batch files, attached is a cmd file with the same code + an @ECHO OFF command.disablejavaconsole.cmd
September 14, 200421 yr if JRE installer will not overwrite an existing deployment.properties, make a default .properties and move it to $OEM$\$Docs\Default User\Application Data\Sun\Java\Deployment\deployment.properties. simple and apply to everybody, don't need to care about where you install the JRE.
September 14, 200421 yr Author if JRE installer will not overwrite an existing deployment.properties, make a default .properties and move it to $OEM$\$Docs\Default User\Application Data\Sun\Java\Deployment\deployment.properties. simple and apply to everybody, don't need to care about where you install the JRE.You'd have to do that at t12 so that the administrator account gets the file copied over when it's created.
Create an account or sign in to comment