This project has moved. For the latest updates, please go here.

Guide: Jave 7 Update 51 (x86)

Topics: Misc., Publishing Issue
Mar 17, 2014 at 3:37 PM
Edited Apr 1, 2014 at 12:04 PM
Hi all,
I deployed this package to 50 Windows 7 SP1 64bit clients, and it worked perfectly.

Here is a PDF guide - lots of screenshots!
Guide

Download the package:
Package

Extract the file somewhere on your WSUS server, and follow the .PDF guide.

It contains of the following parts:
Java .MSI, MST and .CAB file - with autoupdate disabled.
Deployment.Properties and deployment.Config:
deployment.security.level=MEDIUM
deployment.expiration.check.enabled=false
deployment.console.startup.mode=HIDE
deployment.webjava.enabled=true
Java-CleanUp.ps1 - it cleans Appdata and user registry, kills processes and prepares for Java install.

Execute Powershellscript:
.\Java-CleanUp.ps1
## Date to logfile ##
mkdir C:\temp -ErrorAction SilentlyContinue
Write-Output (Get-date) | Out-File C:\temp\Java-CleanUp.log -Append -Force

## Kill Processes ##
$procs = @( "*javaw*","*javaws*","*firefox*","*iexplore*","*iexplorer*","*chrome*","*jaucheck*","*jaureg*","*jucheck*","*jusched*","*SpcUiClient*","*jqs*","*java*")
foreach ($proc in $procs) {
Stop-Process -Name $proc -Force -ErrorAction SilentlyContinue
Write-Output "Killing process: $proc" | Out-File C:\temp\Java-CleanUp.log -Append -Force
 }

Stop-Service -Name "JavaQuickStarter" -ErrorAction SilentlyContinue

## Del folders ##
Remove-Item -Path C:\Windows\Sun -Recurse -Force -ErrorAction SilentlyContinue 
 
## Clean AppData ##
$usersPath = Get-ChildItem -Path "C:\Users"
ForEach ($userPath in $usersPath)
{
if (Test-Path -Path "C:\Users\$userPath\AppData\LocalLow\Sun")
    {
    Remove-Item -Path "C:\Users\$userPath\AppData\LocalLow\Sun" -Force -Recurse
    Write-Output "C:\Users\$userPath\AppData\LocalLow\Sun has been removed." | Out-File C:\temp\Java-CleanUp.log -Append -Force
    }
}

## Clean Registry ##
$regUsers = Get-ChildItem -Path "registry::HKey_Users"
$regUsers | Where-Object {$_.Name -like "*21*" -and $_.Name -notlike "*Classes"} | ForEach-Object {if(test-path -Path "Registry::$_\Software\AppDataLow\Software\Javasoft"){remove-item -Path "Registry::$_\Software\AppDataLow\Software\Javasoft" -Force -Recurse}}

## Make folders ##
mkdir C:\Windows\Sun -ErrorAction SilentlyContinue
mkdir C:\Windows\Sun\Java -ErrorAction SilentlyContinue
mkdir C:\Windows\Sun\Java\Deployment -ErrorAction SilentlyContinue

## Copy files ##
Write-Output (Get-Location) | Out-file C:\temp\Java-CleanUp.log -Append -Force

Copy-Item -Path .\deployment.config -Destination C:\Windows\Sun\Java\Deployment\deployment.config -Force
Copy-Item -Path .\deployment.properties -Destination C:\Windows\Sun\Java\Deployment\deployment.properties -Force
Fell free to ask questions or examine the package before use.
  • Nikolaj
Mar 17, 2014 at 3:49 PM
Hi Nicolaj,

I downloaded your package, but I'm unable to import into my WPP.
The error is related to the sign:

Verification of file signature failed for file: bla bla bla....cab

I have a question about JavaQuickStarter: I can't find this service anywhere. It's still it the name?
Coordinator
Mar 17, 2014 at 4:21 PM
Hi Nicolaj,

All exported packages are digitally signed. So to be able to import it into Wsus you need to have a trust relationship with the Root certification authority.
This is imposed by Microsoft, presumably for security reasons.
Mar 17, 2014 at 4:50 PM
DCourtel wrote:
Hi Nicolaj,

All exported packages are digitally signed. So to be able to import it into Wsus you need to have a trust relationship with the Root certification authority.
This is imposed by Microsoft, presumably for security reasons.
Oh, I feel like an idiot.
But you should be able to resign the package after import.
Isn't that possible?
Mar 17, 2014 at 4:55 PM
hi Nicolaj,

thanks for your effort, but maybe could much useful a procedure to deploy 51 following your way.

I tried to follow the u21 and it didn't work with u51;
I tried to follow this guide: https://wsuspackagepublisher.codeplex.com/discussions/462519 and I have several problem on Detect rules: Java would install update also on computers that doesn't have Java installed, and I don't understand why.
Mar 20, 2014 at 12:02 PM
Hi Nicolaj,

This sould exactly like what I've been trying to achieve for the past 4 days!

I can't see where to download your package - I assume once I have it it can be manually viewed and recreated in our environment?

Thanks
Mar 21, 2014 at 8:21 AM
Hi all,
I've updated the guide.
Mar 28, 2014 at 5:52 PM
Hi NikolajP

I do not see Click 'Download nu' in the link. can you check let me know?
Mar 31, 2014 at 8:28 AM
leet1976 wrote:
Hi NikolajP

I do not see Click 'Download nu' in the link. can you check let me know?
The link is at the very top of the thread. PDF and Download. Guide and Package are the links to click.
Apr 1, 2014 at 12:05 PM
I updated it with new links, on sendspace.com
@leet1976 @Valee
Marked as answer by DCourtel on 9/13/2014 at 12:47 PM