Jump to content

Recommended Posts

Posted

Morning All,

 

Thought this might help a few others as I know people often get problems with the MSI extraction and faff etc.

 

@echo off
Start /wait msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F03217060FF} /qn /norestart
Start /wait msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83218025F0} /qn /norestart
Start /wait msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83218045F0} /qn /norestart

MD C:\ProgramData\Oracle\Java

COPY "%~dp0java.settings.cfg" "C:\ProgramData\Oracle\Java\java.settings.cfg" /Y 

"%~dp0jre-8u65-windows-i586.exe" INSTALL_SILENT=1 STATIC=0 AUTO_UPDATE=0 WEB_JAVA=1 WEB_ANALYTICS=0 EULA=0 REBOOT=0

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v SunJavaUpdateSched /f
reg add "HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 0 /f

 

First lines you can modify to your old versions of java (just uninstalls older versions based on the productcode.

 

Makes the folder that the config file needs to go in, and copies it over. Just make a new file in the source folder called java.settings.cfg with this in:

 

INSTALL_SILENT=Enable
STATIC=Disable
AUTO_UPDATE=Disable
WEB_JAVA=Enable
WEB_JAVA_SECURITY_LEVEL=H
WEB_ANALYTICS=Disable
EULA=Disable
REBOOT=Disable
NOSTARTMENU=Enable
SPONSORS=Disable

 

Then runs the default exe silently disabling all the rubbish :)

 

Also add/dels a few reg keys just in case they exist before etc.

 

Steve

  • Thanks 2
  • 8 months later...

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



×
×
  • Create New...