Wednesday, 9 December 2009

Java 6 Update 17

1.To test Java is installed : http://java.com/en/download/help/testvm.xml
2.Extracted in folder C:\Documents and Settings\Administrator\Application Data\Sun\Java\jre1.6.0_17
changes done:
1.Added CA - CALL VBScript from Embeded code : CA_REGADD to add Registry for disabling updates
' Create String and DWORD Values
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\JavaSoft\Java Update\Policy"strValueName = "EnableJavaUpdate"dwValue = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValuestrValueName1 = "EnableAutoUpdateCheck"dwValue1 = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName1,dwValue1strValueName2 = "NotifyDownload"dwValue2 = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName2,dwValue2strValueName3 = "NotifyInstall"dwValue3 = 0oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName3,dwValue3strValueName4 = "Frequency"dwValue4 = 1170000oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName4,dwValue4strValueName5 = "UpdateSchedule"dwValue5 = 11oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName5,dwValue5strValueName6 = "LastUpdateBeginTime"strValue6 = ""oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName6,strValue6strValueName7 = "LastUpdateFinishTime"strValue7 = ""oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName7,strValue7

---------------
2.Added CA - Execute Program from Destination : CA_RegDelete to delete registry which may sometimes remain by older version
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f
------------
3.Added CA - CALL VBScript from Embeded code :CA_DisableJavaservice to diable java services with references to earlier versions application
strComputer = "."Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery("Select * from Win32_Service where Name = 'JavaQuickStarterService'")
For Each objService in colServiceList errReturnCode = objService.StopService() errReturnCode = objService.Change( , , , , "Disabled") Next
-------------------
4.Property Chaanges
Added
AgreeToLicense=YES
REBOOT=ReallySuppress
ROOTDRIVE=c:\
Modified
IEXPLORER=1
MOZILLA=1
AUTOUPDATECHECK=0
JAVAUPDATE=0
JU=0
SYSTRAY=0
-------------