From time to time Sun changes the way on how JDK can be installed silently, without user interaction. I've noticed that in the 6u10 update the silent install method is different from 6u7 so here is two command lines for installing and uninstalling JDK from command line:
Install:
C:\> C:\jdk-6u10-rc-bin-b28-windows-amd64-21_jul_2008.exe /s /v/qn
Install to specific folder and specify additional parameters:
C:\> C:\jdk-6u10-rc-bin-b28-windows-amd64-21_jul_2008.exe /s /v"/qn INSTALLDIR="""C:\path to folder\Java""" IEXPLORER=1 MOZILLA=1 REBOOT=Suppress ADDLOCAL=ALL"
Uninstall:
C:\> msiexec.exe /qn /x {64A3A4F4-B792-11D6-A78A-00B0D0160100}