Java Javascript SDK
Simple agent procedure that update or install JAVA and write install log in agent procedure log.
Feel free to improve the agent procedure as you wish.
Install/Update JAVA has no reviews.
Hello,
seems Java changed some URLs. I've changed the script and tested it. Should be ok now. Please donwload .zip again and replace "javaUpdate.cmd" with the new one in your Kaseya Manage Folder.
Review the procedure if you find it useful :)
It looks like this new cmd is locked into 8u101, we're on 8u111 now. I don't think java provides dynamic URLs, not that I've seen anyways.
Have tested and it also does not remove any currently installed versions if present well it didn't in my case on 3 separate PC's
Have tested and it also does not remove any currently installed versions if present well it didn't in my case on 3 separate PC's
@Jonathon: edit "javaUpdate.cmd" with Notepad++ like this:
line 140 (32bit Java version) change from "set url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211997" to set "url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=216432" (without quotes)
and
line 149 (64 bit Java version) from "set url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211999" to "set url2=http://javadl.oracle.com/webapps/download/AutoDL?BundleId=216434" (without quotes)
In general, when a new Java version will be avaiable, change the BundleId of the latest Java version. You can find it from the link "https://www.java.com/en/download/manual.jsp" (just move your cursor over the link "Windows Offline" and "Windows Offline (64-bit)" to see the new BundleId.
I can't script this because I can't predict the new BundleId use by new Java version
@lee: I will look forward up this. Keep in mind that this is just an hobby :-)
Without a significant amount of development, you could write a VBScript to call cURL to fetch the download page (https://www.java.com/en/download/manual.jsp), then get only the line in the output that contains "title="Download Java software for Windows Online"". Then, quickly parse that HREF for the download URL.
...Rather, get only the line that contains "contains "title="Download Java software for Windows Offline""
Did anyone update this script to work with current versions of Java?
I have not but would love it if someone can point me in the right direction to ? also if anyone knows the best way to have it check your version and remove it if its old ?
I could use this as well . Anyone able to make a script that will work with future versions, etc...?
I need to script to remove all OLDER versions of java.
Visit Upstream.se and look for their Kaseya Pack.
Doesn't Work :-(
Trying to find the bundle ID's. When I go to the above URL, and hover over the Windows Offline, it doesn't show the ID. What am I doing wrong?
Does this only update to 8u60? It looks like that version is locked in.