deployment script Java 6 update X silent no autoupdate

Topics: Archive - Deployment Scripts
Jan 30, 2015 at 6:23 PM
worked on every version of java 6 so far...
registry file I use is below

*===============================================

    ##* PRE-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Pre-Installation'
    $path1 = "$env:windir\Sun\Java\Deployment\deployment.properties"
    Remove-Item -Force -Path $path1 -ErrorAction SilentlyContinue
    New-Item -force -Path $path1 -ItemType file -ErrorAction SilentlyContinue
    Add-Content -path "$env:windir\Sun\Java\Deployment\deployment.properties" -value "deployment.javaws.autodownload=NEVER" -ErrorAction SilentlyContinue #turnoff autoupdate
    Add-Content -path "$env:windir\Sun\Java\Deployment\deployment.properties" -value "deployment.javaws.autodownload.locked" -ErrorAction SilentlyContinue #turnoff autoupdate



    ##*===============================================
    ##* INSTALLATION 
    ##*===============================================
    [string]$installPhase = 'Installation'

     Execute-MSI -Action Install -path "$dirfiles\msix86\jre-6u26-windows-i586.msi" -parameters "/qb /norestart"  


    ##*===============================================
    ##* POST-INSTALLATION
    ##*===============================================
    [string]$installPhase = 'Post-Installation'

    ## <Perform Post-Installation tasks here>

    cmd /c regedit -s $dirfiles\java6U26_86.reg  -ContinueOnError $true


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.6.0_31]
"HideSystemTrayIcon"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
"EnableAutoUpdateCheck"=dword:00000000
"NotifyDownload"=dword:00000000
"NotifyInstall"=dword:00000000
"Frequency"=dword:01110000
"UpdateSchedule"=dword:00000000
"PromptAutoUpdateCheck"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-