Author Topic: Advice needed on configuring Java with pre and post install scripts  (Read 134 times)

Offline swoonhusker

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hello,

I'm setting up Java 8 update 221 as a base application and then will also setup the update rule, but I am hoping to get some advice from experts on here who have customized parts of the install with pre/post install scripts.

Here is what I have working so far:

-My post install script correctly changes the Java_Home environment variable.
-We manage Java exception sites with group policy.


Here is what I would like to figure out the best way to achieve:

-Our previous manual Java package (before Patch My PC) had us alter the baseline.versions file and change the revision number to one higher than what we downloaded. I'm wondering what is the purpose of this and is it necessary?
-I want to set some advanced settings in the Java control panel which include:
     -Mixed code security verification
     -Perform signed code certificate revocation checks on
     -Perform TLS certificate revocation checks on
-I would like to eliminate the Java expiration, messages about "do you want to run this application", and messages about "Java update needed"


Our old manual Java package had us make a lot of these changes in the deployment.properties file. I'm wondering if I were to update this file with a powershell script post install, would that achieve the same result or does something need to be done before install?


Please help me find the best way to achieve these. I would like to do them with a pre/post installation script if possible, but I would also be willing to use group policy if needed.


Offline Justin Chalfant

  • Patch My PC Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 1892
    • View Profile
    • Patch My PC Support
Re: Advice needed on configuring Java with pre and post install scripts
« Reply #1 on: October 11, 2019, 12:00:58 PM »
Hey There,

So these questions are mostly very Java and environment-specific, but you would be able to run any custom scripts to configure any changes you need for Java in your evironment.

Justin

Offline swoonhusker

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Advice needed on configuring Java with pre and post install scripts
« Reply #2 on: October 11, 2019, 12:13:55 PM »
I think I should have posted this in the enterprise section. Yea, I know you're right Justin. I was just hoping to see if anyone of the members has accomplished any of these items with a custom script in Patch My PC.