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
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
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
9 years ago
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
9 years ago
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
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
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 9 years ago