locked
Java Uninstall/Update through SCCM 2012 or GPO RRS feed

  • Question

  • I'm trying to find the best way to deploy a managed Java through GPO or SCCM 2012 but am running into issues with previous versions of Java. Currently we have a lot of mixed versions of Java on the network and I found a great script that I tested to remove all versions of Java but I am unsure of what to do next. Is there a way, whether through GPO or SCCM 2012, to have this script run prior to the installation of the newest version of Java?
    Wednesday, May 11, 2016 3:05 PM

Answers

  • What exactly is failing (it's not clear from your post above at all)? How do you know it is failing?

    I'm not questioning that it is failing but knowing how you know it helps us help you -- remember we cannot see what you see and know only what you've told about what you are doing and what is and isn't happening. The more details and specific info you can give the better as opposed to generic statements like *it* isn't working which is almost entirely useless in the context of us helping you.


    Jason | http://blog.configmgrftw.com | @jasonsandys

    • Proposed as answer by Frank Dong Wednesday, May 25, 2016 9:09 AM
    • Marked as answer by Frank Dong Tuesday, June 7, 2016 12:43 AM
    Thursday, May 12, 2016 12:31 AM

All replies

  • I would definitely lean towards using SCCM for this task, because you can do a lot more customization, and get better reporting/feedback from your deployment.

    In SCCM 2007, there used to be something called "Run another program first", and you could just point to your uninstall script, which would run before your new program's installation.  In SCCM 2012, they are using "supersedence", which I've had some issues with.

    Personally, I'd do this task through an SCCM task sequence.  Task sequences aren't just for operating system deployment; you can deploy software with those sequences as well.

    This may help you get started:

    http://www.myitforum.com/forums/Question-about-using-Task-Sequences-to-Install-Software-without-OS-Deployment-m233786.aspx

    Wednesday, May 11, 2016 3:28 PM
  • Alternatively, if you already have a script, just add the command-line to install the Java version you want as the last line of the script, add the script and the Java source files to a location in your source repository, create an application, create a deployment type using this source location that runs the script, and deploy.

    Jason | http://blog.configmgrftw.com | @jasonsandys

    Wednesday, May 11, 2016 3:49 PM
  • Well I was able to set up a package but the only problem is the install fails after my batch file runs even though the log(script has a built in log) indicates it completes successfully and it does in fact uninstall Java. Other people have indicated this particular script has worked for them but I don't know what they are doing differently. Any ideas? Here is the uninstall script mentioned:

    https://github.com/bmrf/standalone_scripts/blob/master/java_runtime_nuker.bat

    Wednesday, May 11, 2016 11:32 PM
  • What exactly is failing (it's not clear from your post above at all)? How do you know it is failing?

    I'm not questioning that it is failing but knowing how you know it helps us help you -- remember we cannot see what you see and know only what you've told about what you are doing and what is and isn't happening. The more details and specific info you can give the better as opposed to generic statements like *it* isn't working which is almost entirely useless in the context of us helping you.


    Jason | http://blog.configmgrftw.com | @jasonsandys

    • Proposed as answer by Frank Dong Wednesday, May 25, 2016 9:09 AM
    • Marked as answer by Frank Dong Tuesday, June 7, 2016 12:43 AM
    Thursday, May 12, 2016 12:31 AM
  •  indicates it completes successfully and it does in fact uninstall Java.

    Dear Sir,

    Then you have finished the first part.

    The rest is to deploy the wanted version of Java. I believe it's not difficult. There are a lot of script around the web to install Java silently and you can deploy using ConfigMgr.

    Best regards

    Frank


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, May 12, 2016 6:48 AM