• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
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
OfficeJet 5740
Microsoft Windows 10 (64-bit)

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.

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

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!

  

View solution in original post

2 REPLIES 2
HP Recommended

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

HP Recommended

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!

  

† 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>.