-
×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
- Re: Can't install drivers for Scanjet "DriverPackageUninstal...

Create an account on the HP Community to personalize your profile and ask a question
09-28-2020 08:47 AM
I have tried everything I can think of to install the drivers for my ScanJet 3000 s3 on my new computer. Downloaded it from HP and got the error message:
"Call to DriverPackageUninstall returned error 5 for package "C;\Windows\System32\driverstore\filerepository\hpwia_sj3000_u.inf_amd64_2f69aabec63417a6\hpwia_sj3000_u.inf": A caller of DriverPackageInstall must be a member of the Administrators group to install a driver package."
The problem is that I am the only person using this computer, so I am the administrator. I double checked on that. I also created a second "administrator" account and logged in using that one to see if the install would go through. Same error. I also tried, instead of downloading the entire driver package, to just download the actual basic drivers. Same error. Please help!!
Solved! Go to Solution.
Accepted Solutions
10-02-2020 05:39 AM
I DID IT!!!! It required one additional step. When the system told me only an administrator could delete that file I went into the properties of the file and changed the security to "EVERYONE." I am going to try and enclose 10 screenshots of what I did from start to finish in case it's helpful for anyone. Running Command Prompt As Administrator
After I hit enter
After I cut and pasted the lines from your assist
Then I tried to remove the drivers
This is the error message when I tried to remove the drivers
This is the error message saying I didn't have permission to delete the file
This is an example of changing the settings for the folder (different folder than the one I actually changed since it ended up deleted per my request)
I selected "YES" to change the settings, then it allowed me to delete the file, the installation went perfectly.
09-28-2020 09:11 AM
When you try installing or uninstalling the HP Basic Device Software for your printer, a form of the following error returns:
Note: if you have an HP Computer, follow the steps within the HP PC Solution section and do not follow any further steps within this section
- From the search bar type CMD, right-click on Command Prompt and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes
- processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
Note: This provides your user full permissions to the File Repository system folder and deletes all HP's folders from within the system folder
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
for /d %G in ("%windir%\System32\DriverStore\FileRepository\hpwia*") do rd /s /q "%~G"
takeown /f %windir%\System32\DriverStore\FileRepository /A /r /d y
Note: if you receive any Syntax error and your operating system language is in a different language than English, review the following Takeown command documentation from Microsoft for your language and modify the syntax accordingly. - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer.
- Download and install the latest HP Basic Device Software for your printer as necessary:
https://support.hp.com/us-en/drivers/printers
HP PC Solution
- From the search bar type CMD, right-click on Command Prompt and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
Note: This provides your user full permissions to the File Repository system folder
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
takeown /f %windir%\System32\DriverStore\FileRepository /A /r /d y
Note: if you receive any Syntax error and your operating system language is in a different language than English, review the following Takeown command documentation from Microsoft for your language and modify the syntax accordingly. - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer and evaluate the error message, then close the Uninstall dialog.
Right-click the Start button and select Run, then paste the following path and press OK:
%windir%\System32\DriverStore\FileRepository
- Locate and delete only the HP Folder listed in the error message.
Example: following below error message, delete the hpwia_pw477dw.inf_amd64_efa093991b821954 folder as an example: - From the Start menu click the Gear icon, select Apps and uninstall the HP Basic Device Software for your printer.
- Download and install the latest HP Basic Device Software for your printer as necessary:
https://support.hp.com/us-en/drivers/printers
Click the Yes button to reply that the response was helpful or to say thanks.
If my post resolve your problem please mark it as an Accepted Solution 🙂
09-30-2020 02:14 PM
I tried the steps under what to do if you have a HP PC. When I tried to uninstall the specific file I got another error (potentially saying something similar) which is I need admin permission to delete a file except I AM THE ADMIN! There aren't any other profiles on my computer.
09-30-2020 07:02 PM
Did you tool the first commands first, were you able to succeed the first commands or do you get any error during the process?
I refer to the first part of the steps:
- From the search bar type CMD, right-click on Command Prompt, and select Run as Administrator.
- Copy the following command, then right-click the Command Prompt dialog and select Paste, then press Enter till any command completes processing:
takeown /f %windir%\System32\DriverStore\FileRepository /r /d y
icacls "%windir%\System32\DriverStore\FileRepository" /grant %username%:(OI)(CI)F /T
takeown /f %windir%\System32\DriverStore\FileRepository /A /r /d y
Click the Yes button to reply that the response was helpful or to say thanks.
If my post resolve your problem please mark it as an Accepted Solution 🙂
10-01-2020 11:10 PM
Please make sure you run it on an Administrator dialog, I would even suggest to give it another try.
If the same persists, please include a screenshot of the results, if the commands may return any error, so it will be easier to understand what may cause it.
Shlomi
Click the Yes button to reply that the response was helpful or to say thanks.
If my post resolve your problem please mark it as an Accepted Solution 🙂
10-02-2020 05:39 AM
I DID IT!!!! It required one additional step. When the system told me only an administrator could delete that file I went into the properties of the file and changed the security to "EVERYONE." I am going to try and enclose 10 screenshots of what I did from start to finish in case it's helpful for anyone. Running Command Prompt As Administrator
After I hit enter
After I cut and pasted the lines from your assist
Then I tried to remove the drivers
This is the error message when I tried to remove the drivers
This is the error message saying I didn't have permission to delete the file
This is an example of changing the settings for the folder (different folder than the one I actually changed since it ended up deleted per my request)
I selected "YES" to change the settings, then it allowed me to delete the file, the installation went perfectly.