/build/static/layout/Breadcrumb_cap_w.png

K1 Managed install Java 8 update 40 and removing previous versions

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?
and...
How can I get the install to remove old versions of Java silently as well at the same time?

cheers

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

    Thanks! - Majorumpalumpa 5 years ago

Answers (2)

Posted by: anonymous_9363 5 years ago
Red Belt
0

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.

Posted by: vjc 5 years ago
Senior Yellow Belt
0
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
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ