-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
- HP Community
- Printers
- Printer Setup, Software & Drivers
- HP OfficeJet 5740 Printer Driver Installation Error
Create an account on the HP Community to personalize your profile and ask a question
04-03-2020 05:37 PM
I have been using my printer for years now and I am assuming an update took place recently and now I can not print. I tried to install the latest printer driver and my computer is not letting me complete the installation process and gives me this error.
Call to DriverPAckageUninstall returned error 5 for package C:\\WINDOWS\System32\Driverstore\FileRepository\hpwia_oj5740.inf_amd64_ad1248a34e6ae108\hpwia_oj5740.inf : A Caller of DriverPackageInstall must be a member of the Administrators group to install a driver package.
Any help appreciated.
Solved! Go to Solution.
Accepted Solutions
04-07-2020 01:48 PM
I tried the suggested solution but when I went to remove/uninstall the current printer drivers I was getting the same error message.
I did however find a solution. I went to my CMD "Command Prompt" and right clicked to run as administrator and typed the following command :
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
for /d %G in ("%windir%\System32\DriverStore\FileRepository\hp*") do rd /s /q "%~G"
After that I was able to uninstall the drivers and install the new drivers.
Thanks!
04-07-2020 11:06 AM
Hi @Chad1977
Welcome to the HP Support Community. I'd be happy to assist you with the driver issue.
Please try these steps -
Download and install HP Print and Scan Doctor, it is a Windows tool to fix printer issues.
Try re-installing the printer driver -
1. In the search box, type and open "Uninstall a Program".
2. Look for HP Printer software.
3. Right-click to uninstall.
4. In the search box, type and open “Devices and printers”.
5. In the Devices and Printers, look for your HP printer. If you see it listed right-click on it and choose “Delete” or “Remove Device”.
6. Open the run command with the "Windows key + R" key combo.
7. Type printui.exe /s and click Ok. (Note: there is a space in between “printui.exe” and “/s”).
8. Click on the "Drivers" tab.
9. Look for HP Printer driver. If you see it Click on it and click “Remove” at the bottom.
10. Select Ok.
11. Select Apply and Ok on the Print Server Properties windows.
12. Close Devices and Printers Once the software and drivers are removed.
13. Restart the computer.
14. Download and install the software and drivers from here for Windows 10 (64-bit).
15. Click on the downloaded file and follow the on-screen instructions.
If the issue still persists, try these steps - HP Printers - Installing and Using the Windows Built-in Print Driver
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
Have a great day!
Asmita
I am an HP Employee
04-07-2020 01:48 PM
I tried the suggested solution but when I went to remove/uninstall the current printer drivers I was getting the same error message.
I did however find a solution. I went to my CMD "Command Prompt" and right clicked to run as administrator and typed the following command :
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
for /d %G in ("%windir%\System32\DriverStore\FileRepository\hp*") do rd /s /q "%~G"
After that I was able to uninstall the drivers and install the new drivers.
Thanks!