Windows 8:
http://ftp.hp.com/pub/softpaq/sp59001-59500/sp59442.exe
Windows 7:
http://ftp.hp.com/pub/softpaq/sp53501-54000/sp53707.exe
Download the corresponding files from here, put them on your usb and try installing
If you already did use these links, than try going through windows troubleshooting, by searching troubleshooting in the start menu or with windows key+f for windows 8, followed by searching troubleshooting. Click the main result, it should pop up a decent gui that will lead you through the steps.
If it fails to find an issue, try doing the following: Search system restore, click the result (system restore) find the earliest resource point with functioning internet
If none of these options have worked, I suggest that...