As a Java developer sometimes I need a version of Java Development Kit (JDK) that is not the one installed on my PC. Oracle Java installer on Windows does too many things that I cannot control (like changing the JVM used by browsers to run applets). As of this writing Java 7 is at version u45 and you can download it from here.
Open the downloaded file with 7-zip (in my case was jdk-7u45-windows-i586.exe) and then open the tools.zip you find inside. Extract everything to a convenient path like C:\jdk-1.7u45.
Now it is shell time so open a DOS console (Start->Run…->cmd) and type:
Create a portable JDK 1.7
> cd C:\jdk-1.7u45
> for /r %x in (*.pack)do C:\jdk-1.7u45\bin\unpack200 "%x""%x.jar"
Now you are almost done but you need to rename some files: