
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.
HP 2540 SOFTWARE DOWNLOAD INSTALL

Get started by selecting Install HP Easy Start above. Set up scanning from a control panel: Set up additional scanning features (Windows only). Available on: HP Deskjet 2540 All-in-One Printer. Delete the files in the folder (You might not be able to delete all the files). To use all available printer features, you must install the HP Smart app on a mobile device or the latest version of Windows or macOS. It would bring up the temporary files folder.Type %temp% in the run box and click Ok or hit the Enter button.Once the PC is on the desktop, press Win + R, it would bring a Run dialog box,.Delete all the instances of your printer listed in devices and printers.You will get a popup, click on the drivers tab and delete all the HP printer drivers listed there if any.Go to devices and printers, in the control panel and select any printer listed there and you will get some options on the top.( Right click on the Windows button to access device manager) Check in device manager, if the printer is listed there, please delete it.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.).Then try the root-level uninstall and reinstall from these steps:
HP 2540 SOFTWARE DOWNLOAD UPDATE

You for visiting the HP community and a good day for you.
