A simple way to solve this problem is to download again the software package from HP Support website. Depending on your Windows operating system you should download the one that is good for you which in this case I will provide you the links for most used operating systems like: Windows 7 (all versions), Windows Vista/XP (all versions).
After you download the one you need, launch the software and follow the on-screen instructions. First you should install the software package and when the wizard asks you need to plug in your printer into an USB port, then the software will install all the tools and drivers it needs.