Hi guys
I'm trying to do a managed install with K1 to silently installing Java 8 update40 and remove previous versions

the additional parameter command I'm using to install is...
jre-8u40-windows-i586.exe WEB_JAVA=1 EULA=0 INSTALL_SILENT=1 AUTO_UPDATE=0 SPONSORS=0
(not if the above command is right as well) it says it installed but cant see it in Programs & Features

Can you confirm I have written the command right?
How can I get the install to remove old versions of Java silently as well at the same time?

1 Comment   [ + ] Show Comment


  • Any resolve on this yet? I have the following script in place which does install update 40 but doesn't remove previous versions. What command would I need to put in to remove the previous versions?

    copy "\\---\----\---\----\Java\jre1.8.0_40.msi" c:\windows\temp /y
    msiexec /i c:\windows\temp\jre1.8.0_40.msi /qb /norestart AUTO_UPDATE=0 EULA=0

Please log in to comment



There is more involved in preventing automatic updates than simply passing a public property on the command line.

Extract and use the MSI with a transform. The necessary steps are documented ad nauseum here and elsewhere.

Additionally, there is a script knocking around on IT Ninja for removing all versions of JRE. Personally, I don't bother, as there are so many brain-dead apps that disappear up their own pipelines if they can't find "their" flavour of JRE. Once you find it, you'll probably need to add additional product codes for the versions which have appeared subsequent to the script's posting date.

Answered 04/09/2015 by: VBScab
Red Belt

Please log in to comment
For those that are interested - this is how I figured it out

I used the Configuration Policy / MSI Installer to create a install of Java 8xx msi
Once it has been created, you can issue a 2nd task in the script detail page and code it to remove older versions of java (using whichever kind of java uninstall script you may have)

Do a run now to a test machine and it installs java 8xx and uninstalls all older versions.

tested it on win 7 and win 8 and it works fine
Answered 04/15/2015 by: vjc
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity