/build/static/layout/Breadcrumb_cap_w.png

Java Runtime not installing

Hi there

I have used Wise Package Studio 6 to create an MST to install Java Runtime 5 Update 6 MSI. I did have a problem installing using a locked down account as part of the Java MSI uses custom actions to "unzip" some files to C:\Program Files\Java\jre15.0.06\ which I got around by adding full control access to that folder via the LockPermissions table.

However when it runs the custom action to run an update EXE to the same folder I get the following error:

"Java Update cannot be installed on this machine
because the directory your have chosen is locked. Please close any browsers or
applications that are using the directory you chose for installation"

I have searched using Google but not found anything that might help.

Has anyone had the same problem and resolved it?

I am specifically not installing as local admin as it needs to be installed in a locked down environment.

Thanks

0 Comments   [ + ] Show comments

Answers (4)

Posted by: sikkert 18 years ago
Orange Senior Belt
0
How are you installing java on the clients then? Are the users themselves installing it, or are you distributing it from Active Directory/SMS/Altiris/etc? If you distribute it, then it should be installed with local system/admin privileges, and problem would be solved.

I have deployed Java 1.5 myself, but have never run into this problem. I have deployed in both CA Unicenter Software Delivery (to thick clients) and Citrix Installation Manager without a problem, doing the same as you (created mst).
As for the specific error message, I haven't heard of that one before, sorry.
Posted by: wiseapp 18 years ago
Second Degree Green Belt
0
Orionuk:

Are you sure that Update.exe which is executed by JRE is accessing the same folder? If you are I would then sugggest that you should cacles/subinacles to grant access/change rights to the said folder, once done this problem would vanish. Just include/call cacles/subinacles from the installation and then pass this line in the parameter:

xcacls c:\program files\java\*.* /G administrator:F /E

The "administrator" (this can be any group) is a group for whom full access rights have been granted on c:\program files\java\

Solution 2:
Try not to have install file in a sub-folder where the jre is getting installed.

Solution 3:
Switch/disable any google or yahoo toolbars or google desktop search.

Lastly I would agree with sikkert that if you deploy this using any deployment tools then this problem would hardly turn up since the installation is installation is installed via system access.

Try using the above in case doesn't work in your scenario. revert back.
Posted by: nheim 18 years ago
10th Degree Black Belt
0
Hi orionuk,
You do two things here, which have to lead to problems!
First: Don't use one of the Big Fat MSI-Editors only to generate an MST. They almost always add more things (tables, properties etc.) than you like. Most of the time, an MST has some new or changed properties or table rows. This is done best with ORCA.
Second: Hands off the 'LockPermission table'! It almost always removes all the existing permissions and inheritance from the altered object.
I have generated MST's for all the JRE-versions since 1.4.0 and had never any problems with permissions.
Regards, Nick


ORIGINAL: orionuk

Hi there

I have used Wise Package Studio 6 to create an MST to install Java Runtime 5 Update 6 MSI. I did have a problem installing using a locked down account as part of the Java MSI uses custom actions to "unzip" some files to C:\Program Files\Java\jre15.0.06\ which I got around by adding full control access to that folder via the LockPermissions table.

However when it runs the custom action to run an update EXE to the same folder I get the following error:

"Java Update cannot be installed on this machine
because the directory your have chosen is locked. Please close any browsers or
applications that are using the directory you chose for installation"

I have searched using Google but not found anything that might help.

Has anyone had the same problem and resolved it?

I am specifically not installing as local admin as it needs to be installed in a locked down environment.

Thanks


Posted by: hotarobin 18 years ago
Yellow Belt
0
The problem is not with your deployment or permissions, etc. Chances are if you try installing manually on those workstations you will receive the same message. It seems that JRE 5 update 6 has a problem. I am experiencing the same problem on a stand alone machine where I have admin priviliges. Do you have IE 7 installed?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ