Jump to content

Recommended Posts

Posted
Have you made any improvements or changes to your script since you posted this last year?

I have. I'll post a copy of the latest version of the script if you would like it?

Posted
I have. I'll post a copy of the latest version of the script if you would like it?

 

Absolutely. I've used PSADT before on another project and it was perfect. I think this will be a great application for Java too.

Posted (edited)

Hi ,

 

does someone deployed java jdk 8.45 successfuly over sccm 2012R2?

i tryed it sveral times in manny ways .. but this stupi* **** don't work.

Edited by LordNicon79
Posted (edited)
Absolutely. I've used PSADT before on another project and it was perfect. I think this will be a great application for Java too.

Uploading now. :)

 

Edit. Here's the download link:

 

https://goo.gl/H8vITk

 

It should be fairly obvious what it does by looking at the PowerShell script (Deploy-Application.ps1), but if you have any questions just ask. :)

Edited by Arthur
  • Thanks 1
Posted
Many thanks Arthur. I will be playing around with this today, and will be deploying through SCCM 2012R2. I'll report back on my results.
Posted
Many thanks Arthur. I will be playing around with this today, and will be deploying through SCCM 2012R2. I'll report back on my results.

 

hi Landru, have you had any success with SCCM 2012 R2 ? I deployed Java 7 u75 successfully but could not for the life of me get Java 8 to behave, I would like to know if by chance there is something we need to do differently for Java 8 or if the latest updated works differently.

 

Cheers.

Posted
Using Arthur's PSADT script he posted, with some tweaks for my environment, I'm able to successfully install Java 8, as well as remove all previous versions of Java, in one action, via SCCM 2012R2 CU4. The one major tweak I had to make to the script is in the Pre-Installation phase. I had to write the java.settings.cfg file to C:\ProgramData\Oracle\Java. Without that, it was failing on all three test machines I've been using, with the dreaded Error 1722 seen in the event viewer. I've still got more testing to do, before I declare it a full success, but so far, it's looking pretty good.
Posted (edited)
The one major tweak I had to make to the script is in the Pre-Installation phase. I had to write the java.settings.cfg file to C:\ProgramData\Oracle\Java. Without that, it was failing on all three test machines I've been using, with the dreaded Error 1722 seen in the event viewer.

I have uploaded a new version of my script that uses the java.settings.cfg (in addition to a few other minor modifications):

 

Download: https://goo.gl/6dpaE6

 

I'm not sure how it happened but the previous version of my script did include this .cfg file, while the one in post #129 didn't :o

Edited by Arthur
  • Thanks 1
Posted
I have uploaded a new version of my script...

 

Thanks very much for this, I have to admit, I feel like I've walked into a conversation half way through! Could you possibly dot point the process from start to finish? I know that's asking a lot but I just don't quite get what I'm meant to change and how to deploy it.

Posted
Schikitar, you're going to need to become familiar with the Powershell App Deploy Toolkit (PowerShell App Deployment Toolkit) to use this script. It's not hard to understand, once you read up a bit, but I recommend you go to the website, and download the latest version, just to see what it comes like out of the box. Most importantly, read over the admin documentation. Don't worry, you don't have to be a Powershell guru to use this.
Posted (edited)

Just want to say Hello to everyone and and an especially BIG THANK YOU to Arthur and Landru for their contributions to this thread!

 

I was able to utilize Arthur's PS script to deploy Java 8.31 and 8.45 where applicable in my organization this week. I do all our app packaging using SCCM and usually have a pretty good success rate but am new to the PS toolkit. What a great kit!

 

I only had one hiccup, I couldn't get the Show-InstallationWelcome box to display using the code shared, so I just used some code from the base toolkit from line 106 up. After that, it worked like a champ.

 

We are in the process of taking admin rights away from our users so I'll definitely be a contributing and friend of this board.

I work in a non profit research org.

Again many thanks and I will definitely be sharing my knowledge here going forward.

Edited by techguy87
Posted
techguy87, Arthur's script is for a non-interactive, silent, installation. He deploys his through SCCM when no users are logged on. I too deploy through SCCM, but only when users are logged on, so I had to change the mode to Interactive.
Posted (edited)

Ahh, that explains it! DeployMode, Thanks! I'm still getting used to this kit.

 

How is everyone dealing with the Java "Security Warning" popup's asking user to authorize running?

Is this difficult to stop? The whitelist and everything else is working great, would just be nice to not trouble our users with the extra step.

 

Thanks

Edited by techguy87
  • 3 weeks later...
Posted
I have uploaded a new version of my script that uses the java.settings.cfg (in addition to a few other minor modifications):

 

Download: https://goo.gl/6dpaE6

 

I'm not sure how it happened but the previous version of my script did include this .cfg file, while the one in post #129 didn't :o

 

 

So does this install both the 64 and 32 bit versions? What are you using for detection method in SCCM?

Posted
So does this install both the 64 and 32 bit versions?

It does, although it's easy to modify the script so that it installs whichever JRE you need.

 

What are you using for detection method in SCCM?

Just the product codes from the two MSIs.

  • Thanks 1
Posted
I push out Java using SCCM and the installer installs whichever version is needed for the version of the browser that is installed.
Posted
Here's what is working in my environment so far:

 

Short version:

Creating the C:\ProgramData\Oracle\Java\java.settings.cfg before installing the MSI allows me to deploy Java 8 Update 25 via SCCM.

 

 

After months of trying to update Java to 8 u25 (Finially updated to 8 u45) this was the solution.

Without the java.settings.cfg (which can have anything in it) Java simply wouldn't install via SCCM.

SCCM would report that it was successful but it was evidently not. I am not using a config file to install Java, yet it still wants one for some unknown reason.

 

Hope this helps

  • Thanks 1
  • 1 month later...
Posted (edited)

Hi all,

 

I have just tried test installing Java 8 Update 51. I also currently have 7_67 installed on all machines (deployed via SCCM).

 

I have used the following (SCCM 2012 r2):

 

msiexec /i "jre1.8.0_25.msi" JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q

 

Have also selected the correct supersedence info to remove version 7_67.

 

The install seems to run fine without any errors, including removal of 7_67 and installation of 8_51.

 

The 'only' problem is that 'verifying java' fails and infers that there is no install of Java at all (!). I have already checked the usual things such as 'enable Java in browser', etc. I have re-checked verifying on a client with 7_67 and it 'passes' fine.

 

Can someone suggest anything that could be wrong?

 

 

EDIT:

 

I was installing the 64 bit version for Java as the clients have a 64 bit OS and IE installed. Just tried with the 32 bit MSI and the install now works fine. Clients were running in 'non Enhanced Protected Mode"

Edited by Sh500
Answered my own...
  • 2 weeks later...
Posted
After months of trying to update Java to 8 u25 (Finially updated to 8 u45) this was the solution.

Without the java.settings.cfg (which can have anything in it) Java simply wouldn't install via SCCM.

SCCM would report that it was successful but it was evidently not. I am not using a config file to install Java, yet it still wants one for some unknown reason.

 

Hope this helps

 

I could kiss you right now! Having spent 2 days troubleshooting the install of Java 8 Update 60 from both a deployment and task sequence perspective I can now happily go home without throwing the PC out the window.

Simply installing using the .EXE with switches or the .MSI with a transform was not enough clearly.... Simply xcopying a blank java.settings.cfg file before running the .MSI file with a custom transform was the answer... F'ing hate Java...

  • 3 months later...
Posted

Any luck with Java 8.65 32 Bit on Windows 8.1 and 10? 8.51 seems to work, last one I tried.

 

MSI seems to work with Win 7, but it fails with the "There is a problem with this Windows Installer..." on Win 8.1 & 10. I have tried Multiple command line options, now tried pre-creating: C:\ProgramData\Oracle\Java\java.settings.cfg as suggested above. Nope, my fingers were crossed too.

 

First time I have seen differences between Win 7 and 8.1 installing Java.

 

Anyone get this combination to work? Or am I alone with this issue?

 

Thanks

Posted
Any luck with Java 8.65 32 Bit on Windows 8.1 and 10? 8.51 seems to work, last one I tried.

 

Just checked my W10 machine here, which was on 8.60. Going by the folder dates in my "Installation" share 8.65 was set up 3rd November and 8.66 on 20th November. Today is my 6th visit since the 3rd. However I just rebooted and it's now on 8.66. No idea why it took so long to take, but it does look as if it works with W10. I push it out via GPO with a transform I found (probably on this site!) that keeps it all silent.

Posted

Thanks for the info. Can't get it to work at all. Can you tell me more about your deployment that is working? You mentioned GP. Computer or User policy?

 

It fails for me just running psexec -si cmd then running msiexec /i jre.msi. I think this is what computer policy would run as also. Works if I run as admin, but under system account it fails on Win 8/10.

 

Thanks

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...