On this page
Find the SetupDiag result
Open File Explorer and paste %WinDir%\Logs\SetupDiag into the address bar. If SetupDiagResults.xml is there, check that its time belongs to the upgrade you’re investigating. Windows Setup can run SetupDiag automatically after an unsuccessful upgrade.
If the result is missing, Microsoft’s SetupDiag guide explains how to obtain the tool and run it against the affected PC or a saved set of logs. Collect the logs before cleanup or another attempt removes them.
Choose the log for the failed Setup phase
During a downlevel attempt, look under %SystemDrive%\$Windows.~BT\Sources\Panther. For a rollback, check %SystemDrive%\$Windows.~BT\Sources\Rollback. The location varies with the phase and what Setup retained.
setupact.log records Setup activity. setuperr.log records errors. Use the failure time and phase to read the relevant entries together. A line containing Error may need earlier context to explain the failure.