Windows 7 Service Pack 1 fails to install with 0x800f0a13 or 0x800f0826

Windows 7 Service Pack 1 may fail to install properly on systems which have had the Driver Sweeper utility from Phyxion run against the Windows image.  You could possibly encounter errors 0x800f0a13 or 0x800f0826 in your \Windows\Logs\CBS.log file that is similar to the following:

2011-02-23 10:47:55, Error                 CBS    SPI: Driver directory C:\Windows\System32\DriverStore\FileRepository\atiilhag.inf_amd64_neutral_951c1812f542740a is missing
2011-02-23 10:47:55, Error                 CBS    SPI: (CSPInstall::CompatibilityApplicabilityScan:1468)Inbox Driver check failed hr=0x800f0a13

Due to some recent forums feedback, before trying any of these workarounds please run the latest version of CheckSUR against your machine as it may resolve your issue. It is located here: https://support.microsoft.com/kb/947821

There are several workarounds for this issue:

Workaround 1:

Follow the steps from Phyxion on properly restoring the drivers: https://forum.phyxion.net/viewtopic.php?id=17

Workaround 2:

Mount your Windows installation media to a folder and manually copy the ATI files to the \Windows\winsxs directories (choosing to overwrite the files if they exist).  The file names are:

(x86 versions)

x86_atiilhag.inf.resources_31bf3856ad364e35_6.1.7600.16385_en-us_4c2c9aec5f3d44b5

x86_atiilhag.inf_31bf3856ad364e35_6.1.7600.16385_none_a574bbd4a69c292d

(amd64 versions)

amd64_atiilhag.inf_31bf3856ad364e35_6.1.7600.16385_none_019357585ef99a63

amd64_atiilhag.inf.resources_31bf3856ad364e35_6.1.7600.16385_en-us_a84b3670179ab5eb

Workaround 3:

Perform an inplace upgrade of Windows

UPDATE 2-28-11: There have also been issues seen when using the DriverCleanerDotNet tool as well.

Special thanks to Andre Ziegler for coming up with this information.

--Joseph