Hi All
I'm trying to deploy the above and also disable updates. I've set the following keys to zero in the property table (saved in an MST)

AUTOUPDATECHECK
JAVAUPDATE
JU

I've also created the following entry in the registry table and set it to zero:

HKLM\SOFTWARE\JavaSoft\Java Update\Policy\EnableJavaUpdate (DWORD)

When I run the MSI, I've noticed that the above entry gets created almost straight away (before any other registry entries) and is set correctly to zero. But then, by the time th installation finishes, it's changed to 1 instead. I'm guessing that there's a property that needs to be set to zero in order for this to work, but I can't figure out what property it should be.

The entry above in the registry table is part of the same component as all the other registry entires, so I don't think that's the problem (and I don't think Java has many "components" in the MSI anyway as far as I know)

Does anybody have any ideas why the entry is changing back to 1 at all ? Thanks in advance for any help
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Answered 02/05/2010 by: mekaywe
Brown Belt

Please log in to comment
0
Also, the following thread, (in particular the use of the deployment.properties may assist you).

http://itninja.com/question/jre-1.6.0_05-automatic-update---deployment.properties-problems

Regards,

Spartacus
Answered 02/05/2010 by: spartacus
Black Belt

Please log in to comment
0
Hi Guys

Thanks for the replies. I didn't realize that this is a known issue, I found that it's been logged with sun for some time under bug ID 6559583, but Sun claim it's by design ... bad design if you ask me :-)

Anyway, the solutions at the links below were useful, but the problem with using a script is that it's an additional file that you have to ensure is with the install source, and I couldn't find a way to make the source dynamic (ie, based on the location of the MSI). So instead, I created 2 custom actions which change the registry entry at the very end of the installation using "reg add":

CustomAction Table-
Action: DisableAutoUpdate
Type: 98
Source: SystemFolder
Target: reg add "HKLM\Software\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d o /f

InstallExecuteSequence-
Action: DisableAutoUpdate
Condition: NOT Installed
Sequence: 3187

I did initially have the sequence just after the InstallJava sequence, but the entries were written too late. so I put them after the PostInstallComplete instead.

I'm not a windows installer expert, but I do know that this works for us. But if anybody wants to add any improvements/comments - feel free
Answered 02/05/2010 by: y2k
Senior Yellow Belt

Please log in to comment
0
there are lots of info on the package kb regarding java updates
Answered 02/05/2010 by: cygan
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity