*Update - we are seeing this issue less these days. Are many of you still having this issue? If so, please describe for me in the comments section so I can see if I can recreate the pattern or if I can come up with a better solution. Or email me.
We are seeing this error when attempting to install printers (drivers) on new Windows 7 builds. The simplest solution I have found is reboot the computer and log on with a different administrative account. Often then the printer driver can be installed without getting the error.
Here's another thing I have found. Running procmon during the installation shows 'access denied' on C:\Windows\System32\DriverStore\infpub.dat. Try editing the security on this file and add the local Administrators to it, will full control. After doing this I've had success getting printer drivers to install that would give the error 0x00000057. Note - it may be necessary to change the security on all of the .dat files in the DriverStore folder to get the driver to install. Here's a script that will change the security on all the files for you.
*****Note***** - This problem is not limited to printer drivers. Also, if you use my script, as ridiculous as it sounds, you have to be quick. Get everything ready to perform the driver install, run the script, and then run the install, as quickly as possible after running the script. You are racing against windows resetting the permissions.
Also, I have noticed after changing the permissions on the files Windows will change them back, removing what you have added.
If you need help on changing the permissions on the file maybe these will help:
Change permissions on C:\Windows\System32\DriverStore\infpub.dat to include Administrators with Full Control.
Browse to C:\Windows\System32\DriverStore
Right click the file infpub.dat
Click Security Tab
Click Edit Button
Click Add Button
Click Locations button and choose the local computer account (should be first item in list)
In the box type: Administrators
Click Check Names – this should come back underlined
With Administrators highlighted, put a checkmark in the checkbox next to Full Control
Retry installing the printer driver.