Jump to content

Recommended Posts


Posted
%UserProfile%\Application Data\Sun\Java\Deployment\deployment.properties

#javaplugin.console=show

#javaplugin.console=hide

javaplugin.console=nothing

THANKS!
i think i've something to kick out the virtual java machine of windows will post u this tonight :hello:

If you're talking about removing Microsoft's VM, they released a tool to do it for you. Just search for unmsjvm.exe

Posted

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 OFF
CD "%UserProfile%\Application Data"
mkdir Sun\Java\Deployment
ECHO deployment.console.startup.mode=disable >> Sun\Java\Deployment\deployment.properties

java.cmd

Posted

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 off
cmdow @ /HID
CD %APPDATA%
MD Sun\Java\Deployment
ECHO deployment.console.startup.mode=disable >> Sun\Java\Deployment\deployment.properties

anyway many thanks RyanVM, i'll use it :thumbup

Posted

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.

Posted
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

Posted

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

Posted

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.

Posted
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

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...