I registered on the forum JUST so I could angrily post this confirmation of @sludge7051-x 's theory:
Yes, when updating to 1903 (from 1803, in my case), the 0x80070005 error was explicitly caused by Avast.
NOTE: Avast caused this issue EVEN THOUGH the first thing I did was “permanently disable all shields” (!!!). >:( >:( >:(
I’ll elaborate more later, but in a post in a microsoft forum so that people actually see it, since I spent hours searching for information on why time and time and time again my 1903 update failed.
I finally tracked it down, and caught Avast red-handed:
The damning event was Event ID 1001 from Windows Error Reporting, and was found in Event Viewer > Windows Logs > Application … outrageously it was of “Information” type, so that all of my scouring through warnings, errors, and critical types produced nothing.
Here’s the details: https://gist.github.com/jasonbuechler/e4d8b81ade95b65b8aeac5d06b27f337
…note that the first “attached file” is .....\Sources\Panther\SetupAct.log
Well if you go to the directory that’s in, there’s also a MUCh more useful log: setuperr.log
Here’s that file: https://gist.github.com/jasonbuechler/2c16ddf85e69a055fe7d748c26deaeef
And the money-shot:
2019-06-23 20:29:35, Error [0x080782] MIG CRegistryDataStore::Create: Failed to set reflection key flags for HKCU\Software\AVAST Software\Avast[gle=0x00000005]
2019-06-23 20:29:35, Error [0x080789] MIG CRegistryDataStore::Create: Failed to set LUA key flags for HKCU\Software\AVAST Software\Avast[gle=0x00000005]
2019-06-23 20:29:35, Error SP Error WRITE, 0x00000005 while gathering/applying object: Registry, HKCU\Software\AVAST Software\Avast [HideBalloon]. Will return 0
2019-06-23 20:29:35, Error MIG Error 5 while applying object HKCU\Software\AVAST Software\Avast [HideBalloon]. Shell application requested abort
2019-06-23 20:29:35, Error [0x08097b] MIG Abandoning apply due to error for object: HKCU\Software\AVAST Software\Avast [HideBalloon]
2019-06-23 20:29:35, Error Apply failed. Last error: 0x00000000
2019-06-23 20:29:35, Error SP pSPExecuteApply: Apply operation failed. Error: 0x0000002C
2019-06-23 20:29:35, Error SP Apply (first boot apply, offline phase): Migration phase failed. Result: 44[gle=0x00000002]
Again, I had already done a “permanently disable all shields”, long before this.
So, I uninstalled Avast.
It didn’t hurt a bit, as the “you’re being tracked! oooh scary!” nag-messages were over-the-line for me, already.
Rebooted, started the 1903 update again… voila… not 20 minutes later, it was done.
Again – I had to uninstall avast to actually successfully update to 1903. Disabling it was insufficient!!!