Jump to content

Recommended Posts

Posted

Hi all,

 

I use to have a really good script for installing Java that I have unfortunately lost. I have also totally forgotten how I did it!.

 

Basically the script checks for which version of the software is installed by looking for the following registry key:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83217045FF} DisplayVersion

 

It then compares this version to the version displayed in the script. If these versions match, the current version is up to date and the script ends. If they do not match, the script silently installs the .exe.

 

When a new version of JAVA needed deploying, I would update the script version number to match the reg key

 

I would appreciate any help with rewriting this!

 

BTW - I know you can extract the MSI and install this via GPO, but I have had quite a few problems doing this in the past. I remember using this method of checking the version number in the registry much more successfully.

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