RyanVM Posted September 13, 2004 Posted September 13, 2004 Does anybody know of a registry tweak which will accomplish this task?
idle.newbie Posted September 13, 2004 Posted September 13, 2004 %UserProfile%\Application Data\Sun\Java\Deployment\deployment.properties#javaplugin.console=show#javaplugin.console=hidejavaplugin.console=nothing
mumuuu Posted September 13, 2004 Posted September 13, 2004 i think i've something to kick out the virtual java machine of windows will post u this tonight
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 %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
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 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
SiMoNsAyS Posted September 13, 2004 Posted September 13, 2004 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
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 I don't use RunOnceEx, so I didn't know that Glad to be of help as always
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 One thing I do like about the Java5 installer is that it doesn't create any shortcuts or start menu items anymore. Always nice
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 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.
SiMoNsAyS Posted September 13, 2004 Posted September 13, 2004 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
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 OK, so if I'm running it from GuiRunOnce, it should be fine. Sounds good
RyanVM Posted September 13, 2004 Author Posted September 13, 2004 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
idle.newbie Posted September 14, 2004 Posted September 14, 2004 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.
RyanVM Posted September 14, 2004 Author Posted September 14, 2004 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now