Hooroo all,
First time here so please be patient with me.
What I want to do is get the file version of a file in a folder where the folder name has a potentially different name. Exact info now so it all makes sense.
I need to get the version of the Java.dll file in c:\program files (x86)\Java\jre<version_installed> so I can see if it is below the latest version, and if true uninstall the old version and install the new version.
The issue is that the folder name will change depending on the version of Java installed - eg c:\program files (x86)\Java\jre1.x.x.x_xx so using the good old objFSO.FileExists or objFSO.FolderExists is not going to work as you cannot use wildcards with these commands for the folder path (eg If objFSO.FolderExists("C:\Program Files (x86)\Java\jre* or %") = True Then
So thats my problem. I have tried to use the Registry to assist but this causes a similiar issue where the reg settings are based on the version of Java installed - so it makes it hard to determine a numerical value to compare the installed version to what I want to install as the latest version.
So if anyone knows some nice tricks to achieve my goal that would be fantastic :)
Cheers - Paul
First time here so please be patient with me.
What I want to do is get the file version of a file in a folder where the folder name has a potentially different name. Exact info now so it all makes sense.
I need to get the version of the Java.dll file in c:\program files (x86)\Java\jre<version_installed> so I can see if it is below the latest version, and if true uninstall the old version and install the new version.
The issue is that the folder name will change depending on the version of Java installed - eg c:\program files (x86)\Java\jre1.x.x.x_xx so using the good old objFSO.FileExists or objFSO.FolderExists is not going to work as you cannot use wildcards with these commands for the folder path (eg If objFSO.FolderExists("C:\Program Files (x86)\Java\jre* or %") = True Then
So thats my problem. I have tried to use the Registry to assist but this causes a similiar issue where the reg settings are based on the version of Java installed - so it makes it hard to determine a numerical value to compare the installed version to what I want to install as the latest version.
So if anyone knows some nice tricks to achieve my goal that would be fantastic :)
Cheers - Paul