Guidelines
We have new content about printers, Click here to check it out!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
HP Deskjet 2540 All-in-one Series
Microsoft Windows XP

I can't install the software for my HP Deskjet 2540.

I lost the CD. it isn't possible to download the software through the HP website, it says "fail". (I tried to use  chrome and firefox, same problem).

 

What can I do to use my printer? 

1 REPLY 1
HP Recommended

 

@pietroitalia,

 

Thank you for visiting the HP community and a good day for you. I have reviewed the post and will be delighted to assist you here. Great technical competence and brilliant efforts. Kudos to you for that.

  • Did you try a root-level uninstallation and reinstallation?

Let's try these steps:

Then try the root-level uninstall and reinstall from these steps:

  • Uninstall the printer from "programs and features" which can be accessed by doing a right-click on the Windows button (Please have the printer Off and disconnected during uninstallation.)
  • Check in device manager, if the printer is listed there, please delete it. (Right click on the Windows button to access device manager)
  • Go to devices and printers, in the control panel and select any printer listed there and you will get some options on the top. 
  • Click on print server properties. 
  • You will get a popup, click on the drivers tab and delete all the HP printer drivers listed there if any.
  • Delete all the instances of your printer listed in devices and printers.
  • Restart the PC.
  • Once the PC is on the desktop, press Win + R, it would bring a Run dialog box, 
  • Type %temp% in the run box and click Ok or hit the Enter button.
  • It would bring up the temporary files folder. Delete the files in the folder (You might not be able to delete all the files).
  • If possible, delete the printer from the registries using Regedit or using any other 3rd party application.
  • Ignore the Regedit option if it cannot be done.
  • Restart the PC again. 
  • Then download the latest full feature driver from https://support.hp.com/us-en/drivers/selfservice/hp-deskjet-2540-all-in-one-printer-series/5295960/m... and install it on the computer after selecting the correct operating system.
  • Connect the printer to your computer only when the setup prompts for the printer.
  • This should fix the issue.
  • If the issue continues, then install the basic drivers from the same driver's page and it should work.
  • You could also install the Windows Built-in drivers by following instructions from this link: http://support.hp.com/in-en/document/c01796879
  • This should work for you.

Good luck and keep me posted about the developments. If this helps, please mark this as “Accepted Solution” as it will help several others with the same issue and give the post a Kudos for my efforts to help. Thank you and have a great

DavidSMP
I am an HP Employee

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.