I would suggest you to try the steps mentioned below and check if it helps.
Method 1: Troubleshoot problems installing and uninstalling programs on Windows-based computers. http://support.microsoft.com/kb/2438651
Method 2: Make sure that you have uninstalled java completely with the help of link below.
How do I uninstall Java on my Windows computer: http://www.java.com/en/download/uninstall.jsp
Why should I remove older versions of Java from my system: http://www.java.com/en/download/faq/remove_olderversions.xml
Method 3: Set your computer in Clean Boot state and then download and install the offline installation package.
By setting your system in clean boot state helps in identifying if any third party applications or startup items are causing the issue.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7:
Note: After clean boot troubleshooting step, follow Step 7 in the provided link to return your computer to Normal startup mode.
Hope this information is helpful.