disable automatic updates in Java (JRE 1.6.0_14)
Working to package a Java update (JRE 1.6.0_14) for our environment, which is Windows XP and Office 2003. The current Java version users have installed is 1.5.0_09.
I’ve extracted the files from the original exe and have created a transform in which I initially changed a number of the properties in order to turn off the Automatic Update checkbox in the Java Control Panel.
But that didn’t work. Then I found some relevant info here about using a Custom Action to make the desired reg changes(http://itninja.com/question/how-do-you-roll-out-new-machines?4295&mpage=1&key=廧 andhttp://www.appdeploy.com/packages/detail.asp?id=38 ).
I’ve added a Custom Action in the Execute Deferred section, which calls a VBScript from embedded code. I used turbokitty's code as a starting point. I’ve tested the VBScript and it works if I run it after installing the Java package, but doesn’t work when I try to include it as a custom action.
For the sake of learning something new I’d like to be able to add it as a Custom Action, but I’m not sure what I’m doing wrong. For starters, should the log file I’m generating indicate whether the custom action ran or not? Because I’m not seeing any evidence in the log that it really ran.
I’ve extracted the files from the original exe and have created a transform in which I initially changed a number of the properties in order to turn off the Automatic Update checkbox in the Java Control Panel.
But that didn’t work. Then I found some relevant info here about using a Custom Action to make the desired reg changes(http://itninja.com/question/how-do-you-roll-out-new-machines?4295&mpage=1&key=廧 and
I’ve added a Custom Action in the Execute Deferred section, which calls a VBScript from embedded code. I used turbokitty's code as a starting point. I’ve tested the VBScript and it works if I run it after installing the Java package, but doesn’t work when I try to include it as a custom action.
For the sake of learning something new I’d like to be able to add it as a Custom Action, but I’m not sure what I’m doing wrong. For starters, should the log file I’m generating indicate whether the custom action ran or not? Because I’m not seeing any evidence in the log that it really ran.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
When you say that the property-setting transform didn't work, how did you check? Did you take a verbose log of the install to make sure your transform was applied and the properties changed? Did you log off and back on again, as mentioned in a couple of posts in the links you posted? Did you also try setting the relevant registry entries in your transform?
I think going the CA script route is over the top for such a trivial set of changes.
I think going the CA script route is over the top for such a trivial set of changes.
Posted by:
RonW
15 years ago
Okaaaay, my face is red. Turns out the main problem was a rogue backslash in my command line. I was focusing so hard on the custom action I went right past confirming that my transform had been applied. It hadn't.
I corrected that, did some additional testing, and now the install works. I tried it without the custom action, applying the transform and some registry changes, but after rebooting, the reg settings had reverted back to the ones I didn't want.
I tried again with the custom action VBSCript in place, in Execute Deferred, just before InstallFinalize, and that appears to have done the trick, so a tip o' the hat to turbokitty. I agree, VBScab, that on the face of it, a Custom Action seems like overkill, but in this case it worked.
I corrected that, did some additional testing, and now the install works. I tried it without the custom action, applying the transform and some registry changes, but after rebooting, the reg settings had reverted back to the ones I didn't want.
I tried again with the custom action VBSCript in place, in Execute Deferred, just before InstallFinalize, and that appears to have done the trick, so a tip o' the hat to turbokitty. I agree, VBScab, that on the face of it, a Custom Action seems like overkill, but in this case it worked.
Posted by:
dunnpy
15 years ago
RonW,
I've just done this Java and used the 'deployment.properties' file to control the updates.
The details can be found in this post.
All works fine for me, and is Sun's way of managing things.
Thanks,
Dunnpy
I've just done this Java and used the 'deployment.properties' file to control the updates.
The details can be found in this post.
All works fine for me, and is Sun's way of managing things.
Thanks,
Dunnpy
Posted by:
anonymous_9363
15 years ago
Posted by:
turbokitty
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.