Please confirm how the printer is connected to your PC, through network or USB?
If through USB, please try to install using standard length of USB cable (preferably HP usb cable).
If through network, you may try a one to one connection between the PC and printer.