Solved Windows 7 SP1 install fails at 99%, internal error 0x8007054f

rogerm

New member
Local time
9:19 PM
Messages
17
I have a Windows 7 laptop which has been sitting unused for some time I want to upgrade to Windows 10. It does not have SP1 installed, which is something I need installed to be able to do the upgrade.

Firstly, I want to make it very clear that I want to upgrade my current Windows install (along with the large amount of software installed) rather than doing a clean install. If I am unable to get the issue fixed, I will leave the computer running as it is. I am well aware that a clean install of Windows 7 followed by an upgrade to Windows 10 work (after installing all the required updates for Windows 7 first), but it's not an option in my case. This is an old laptop which I don't use any more, but decided to start using it again to see how well Windows 10 would work, when upgraded from an old Windows 7 install on which I have literally installed and uninstalled hundreds of programs (I've got over 700 installers saved in two download folders).

When I attempt to install SP1, the install always fails at 99%, and then reverts the changes. It makes no difference if I try to install it via Windows Update, or via the downloaded SP1 executable. I can only presume that the CBS.log file contains the needed information to troubleshoot the issue, but I really don't know how to go about analysing it.

To give some background. This computer did have SP1 installed in the past. I presume it's not installed now due to running a repair with Reimage some time ago. I know that Reimage used to remove service packs when it ran a repair.

The computer had a failing hard drive with some read errors, so I cloned it to a working drive, and then switched the drives.

Windows Update would not run on the computer. I did the following repairs in a failed attempt to fix it. Initially, I was getting an error when running Windows Update. At some point during the repairs, Windows Update was able to check for updates but could not install them. But, as you can see below I eventually got it working.

I ran sfc /scannow which found no problems.
I ran all the default repairs (which includes a Windows Update repair) with Windows Repair fro tweaking.com (in safe mode as recommend).
I ran the Windows Update troubleshooter from Microsoft, which found and fixed some issues, but also did not fix the problem I was having.
Ran the System Update Readiness Tool.
I did a repair with Reimage.
I did a In-Place Upgrade of Windows, which did not fix the issue either.
I ran Windows Repair again, then Windows Update troubleshooter and finally Windows Update was working.

I had an issue with a .net framework update failing to install, so I used the .net framwork cleanup tool to remove all versions of .net from my computer. Then I reinstalled .net and all the updates for it successfully via Windows Update. As of right now I have installed all the recommended and optional updates except for SP1.

I had an issue with a error message popping up when I launched Windows Update, due to a registry key for my TPM software wrongly being deleted at some point by a registry cleaner, which I thoiught may have been causing problems. I fixed this by installing the Infinion TPM software again.

I have also run ComboFix, and cleaned the registry with JV16 PowerTools, and Auslogics Registry Cleaner, in at attempt to fix the issue. I am well aware that registry cleaners are pretty much useless, rarely fix any problems, and can cause problems. But I figured it was worth a try. Those two registry cleaners don't have issues with false positives, so I knew they shouldn't cause any more problems.

I have no real time security software installed.

I can't think of anything else to try right now, and in need of help.
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Please follow the Windows Update Posting Instructions
and post the requested data

If the file is too large (8MB compressed), remove the older CBSPersist cab files until the final file is below the limit - you can always post them separately after zipping them. (the forum doesn't allow the upload of bare CAB files, for a number of reasons)

Please also post the C:\Windows\windowsudpate.log file
 

My Computer My Computer

At a glance

Win 7 x64 Home Premium (and x86 VirtualBox VM...i3 370M/i7 6500U8GB - finally :)/8GBit's an i3, dude!/dual Intel&nVidia
Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Thanks, I have attached the zip of the CPS folder and the WU log file.
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
I'm still waiting for some help.
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Once i can get to a real computer rather than an. Apple ill get back to you ;)
 

My Computer My Computer

At a glance

Win 7 x64 Home Premium (and x86 VirtualBox VM...i3 370M/i7 6500U8GB - finally :)/8GBit's an i3, dude!/dual Intel&nVidia
Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Say what. (Apple) Shame. :shock:

Make sure you wash your hands after touching the Apple.:D
 

My Computer My Computer

At a glance

Windows 10 Pro. 64/ version 1709 Windows 7 Pr...Intel i7-6800K @ 4.3Corsair Platinum 16 gig @2400EVGA GTX 1070 OC
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Finally got a chance to have a look at the files...

This looks to me like it may be a permissions error - but I'm not sure where :(

Please open an Elevaeted COmmand Prompt, and run the following commands...

ICACLS C:\Windows
ICACLS C:\Windows\winsxs
ICACLS C:\Windows\Servicing
ICACLS C:\Windows\Servicing\Packages

post the results.
Here are some instructions to make life easier :)
1) To open an Elevated Command Prompt Window (the ECP window), click on Start, All Programs, Accessories – then right-click on Command Prompt, and select Run as Administrator. Accept the UAC prompt.
2) To run the commands easier, highlight the block of commands, and right-click on the highlight – select Copy. In the CP Window, click on the black/white icon at top left – select Paste. The commands will run but may not complete the last command, so hit the Enter Key once.
3) To copy the results... click on the Black/White icon in the top left, and select Edit... 'Select All', and hit the Enter key - then use Ctrl+V or r-click+Paste to paste it into your response.
 

My Computer My Computer

At a glance

Win 7 x64 Home Premium (and x86 VirtualBox VM...i3 370M/i7 6500U8GB - finally :)/8GBit's an i3, dude!/dual Intel&nVidia
Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\DJ Roger>icacls C:\Windows
C:\Windows NT SERVICE\TrustedInstaller: (F)
NT SERVICE\TrustedInstaller: (CI)(IO)(F)
NT AUTHORITY\SYSTEM: (M)
NT AUTHORITY\SYSTEM: (OI)(CI)(IO)(F)
BUILTIN\Administrators: (M)
BUILTIN\Administrators: (OI)(CI)(IO)(F)
BUILTIN\Users: (RX)
BUILTIN\Users: (OI)(CI)(IO)(GR,GE)
CREATOR OWNER: (OI)(CI)(IO)(F)

Successfully processed 1 files; Failed processing 0 files

C:\Users\DJ Roger>icacls "C:\Windows\winsxs"
C:\Windows\winsxs NT SERVICE\TrustedInstaller: (OI)(CI)(F)
BUILTIN\Administrators: (OI)(CI)(RX)
NT AUTHORITY\SYSTEM: (OI)(CI)(RX)
BUILTIN\Users: (OI)(CI)(RX)

Successfully processed 1 files; Failed processing 0 files

C:\Users\DJ Roger>icacls "C:\Windows\servicing"
C:\Windows\servicing NT SERVICE\TrustedInstaller: (F)
NT SERVICE\TrustedInstaller: (OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM: (RX)
NT AUTHORITY\SYSTEM: (OI)(CI)(IO)(GR,GE)
BUILTIN\Administrators: (RX)
BUILTIN\Administrators: (OI)(CI)(IO)(GR,GE)
BUILTIN\Users: (RX)
BUILTIN\Users: (OI)(CI)(IO)(GR,GE)

Successfully processed 1 files; Failed processing 0 files

C:\Users\DJ Roger>icacls "C:\Windows\servicing\Packages"
C:\Windows\servicing\Packages NT SERVICE\TrustedInstaller: (I)(F)
NT SERVICE\TrustedInstaller: (I)(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM: (I)(RX)
NT AUTHORITY\SYSTEM: (I)(OI)(CI)(IO)(GR,GE)
BUILTIN\Administrators: (I)(RX)
BUILTIN\Administrators: (I)(OI)(CI)(IO)(GR,GE)
BUILTIN\Users: (I)(RX)
BUILTIN\Users: (I)(OI)(CI)(IO)(GR,GE)

Successfully processed 1 files; Failed processing 0 files
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Hi Noel, are you still busy?
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Sorry about that - I wasn't well last week :(
The results there are pretty much normal.

The WindowsUpdate log shows that the system is having problems communicating properly with the MS servers - perhaps we need to reset things there and see if that changes anything...

Open an Elevated Command Prompt and run the following commands (separately - each will require a response to their warning/message)

NETSH WINSOCK RESET

NETSH WINHTTP RESET


Then reboot, and try a Check for Updates - then post the new windowsupdate.log file.
 

My Computer My Computer

At a glance

Win 7 x64 Home Premium (and x86 VirtualBox VM...i3 370M/i7 6500U8GB - finally :)/8GBit's an i3, dude!/dual Intel&nVidia
Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Sorry to hear you've been sick.

I ran the network reset commands. After that, I was having some problems getting Windows Update to run, so I ran the Windows Update fix in tweaking.com's Windows Repair, which made Windows Update work again.

It found a few updates to install, which I selcted to install (with the exception of SP1), and it downloaded them but after I rebooted, it failed to complete installing them.

I have attached a new Windows Update log file.

Thanks for your help.
 

Attachments

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Hi Noel, any suggestions?
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Ooops - sorry about that!

This appears to be the critical error -
Code:
2015-10-20	14:33:29:352	1060	450	Agent	  * WU client version 7.6.7600.256
2015-10-20	14:33:31:427	1060	450	Agent	  * Base directory: C:\Windows\SoftwareDistribution
2015-10-20	14:33:33:346	1060	450	Agent	  * Access type: No proxy
2015-10-20	14:33:37:917	1060	450	Agent	  * Network state: Connected
2015-10-20	14:35:19:348	1740	7f8	Misc	===========  Logging initialized (build: 7.3.7600.16385, tz: +1000)  ===========
2015-10-20	14:35:19:348	1740	7f8	Misc	  = Process: C:\Windows\System32\sdiagnhost.exe
2015-10-20	14:35:19:348	1740	7f8	Misc	  = Module: C:\Windows\system32\wuapi.dll
2015-10-20	14:35:19:348	1740	7f8	COMAPI	FATAL: Unable to connect to the service (hr=80080005)
2015-10-20	14:35:19:348	1740	7f8	COMAPI	WARNING: Unable to establish connection to the service. (hr=80080005)
2015-10-20	14:39:13:062	1060	450	DtaStor	Default service for AU is {00000000-0000-0000-0000-000000000000}
2015-10-20	14:39:13:966	1060	450	DtaStor	Default service for AU is {9482F4B4-E343-43B6-B170-9A65BC822C77}
2015-10-20	14:39:17:336	1060	450	Agent	WARNING: Failed to read the service id for re-registration 0x80070002
2015-10-20	14:39:18:896	1060	450	Agent	WARNING: Missing service entry in the backup data store; cleaning up
2015-10-20	14:39:34:902	1060	450	Setup	WARNING: SelfUpdate is in an error state
It may be worth trying to do a forced install of the Windows Update update ;)

Download (and save) the update from the list here How to Install the Windows Update Agent on Client Computers - System Center Configuration Manager Team Blog - Site Home - TechNet Blogs

Then run the saved file - does it produce an error code/message? what is the EXACT error?
Post a new windowsupdate.log file.
 

My Computer My Computer

At a glance

Win 7 x64 Home Premium (and x86 VirtualBox VM...i3 370M/i7 6500U8GB - finally :)/8GBit's an i3, dude!/dual Intel&nVidia
Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
The install of the WU agent completed with no errors. After the required reboot afterwards, Windows Update showed two updates, one of which was a Windows Defender definitions update. I was unable to install the two updates right away as it turned out Windows was automatically installing the WD update. After that I installed the remaining update, and Windows Update said that the update installed correctly, but it didn't. It had to revert changes when I rebooted.

I have attached the WU log file.

After I rebooted, and after copying the WU log file from the computer I ran Windows Update again, it showed no important updates. When I checked for updates it found the same two updates again.

As an update, I ran the Windows Update Troubleshooter, after which I ran WU and checked for updates. It found the same update which keeps failing. When the computer restarts after install it, the first time Windows boots, it configure the update without any error and then reboots. When Windows loads again the update files and changes are reverted.
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
The log is interesting - The only current error relates to KB2977759 - which is strictly for Windows 7 RTM.

The CBS log certainly looks to me to be from a SP1 machine.

I think it would be useful to have a look at the new CBS data, and the event logs.

Please run SFC /SCANNOW and CheckSUR again, and post the new CBS folder, and also...
Open Event Viewer
click on the Windows logs entry in the left pane to expand it.
Now click on the Application entry - wait while it loads.
Click on 'File' in the menu bar and select Save...
Save the file as Appevt.evtx
Repeat for the System log
then zip both, and upload them.
 

My Computer My Computer

At a glance

Win 7 x64 Home Premium (and x86 VirtualBox VM...i3 370M/i7 6500U8GB - finally :)/8GBit's an i3, dude!/dual Intel&nVidia
Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
I have attached the logs you requested.
The SFC scan reported no problems.
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Have you had a chance to take a look yet?
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Hi Noel, do you have any more suggestions?
 

My Computer My Computer

At a glance

Windows 7 Ultimate
OS
Windows 7 Ultimate
Back
Top