- The setupact.log and setuperr.log files are the core of diagnosing failed Windows installations and updates, complemented by logs such as DISM.log, CBS.log, and Sessions.xml.
- Each phase of the installation or upgrade process generates its own specific log variants and paths, so locating the correct file according to the error code and stage is essential.
- Effective analysis is based on combining error codes, timestamps, log components, and key messages such as "Shell application requested abort" to identify the root cause.
- Tools like DISM and SetupDiag, along with manual interpretation of the logs, allow you to isolate driver problems, corrupted files, or maintenance conflicts and resolve many update failures.
When a Windows installation or update goes wrong, the system usually leaves very clear clues in the form of log files. The problem is that, if you're not used to reading logs, opening setupact.log and setuperr.log can seem like gibberish : strange paths, hexadecimal codes, cryptic messages, and a bunch of lines of text that you don't even know where to begin interpreting.
In forensic environments, technical support, or simply when you want to figure out why a Windows installation or update failed , these files are invaluable. They allow you to see if someone tried to reinstall the system, if there was an attempt to update from a USB drive, if the installation rolled back, which component failed, which file was corrupted, or if the problem stemmed from a driver or a maintenance package.
What are setupact.log and setuperr.log and what are they used for?
During any installation or update process, Windows generates a series of log files specific to Setup . Among them, the two most important for diagnosing errors are:
- setupact.log: main log of installation actions.
- setuperr.log: summary list of errors detected by Setup.
Setupact.log records step-by-step what the installer does : which phase is running, which operations are completed, which components are loaded, which files are migrated, etc. It is the most complete and detailed log, and is usually the starting point when an installation doesn't finish as it should, especially in cases of update rollbacks or failures in specific phases such as OOBE.
For its part, setuperr.log functions as an error index : it doesn't go into as much detail, but it quickly indicates which serious errors have been recorded in the "specialization" part of the installation and in subsequent setup phases. It's ideal for locating the key error in a few seconds and then looking for more context within setupact.log.
Both files can exist in multiple variations and locations within the system, depending on the specific point in the installation or update process at which they are generated. Knowing where to look for them in each case is an essential part of the diagnosis.
Scenario: Clean Windows installation and initial stages
When we talk about a "clean" installation of Windows on a new computer , the goal is to reach the desktop for the first time, often referred to as the "first user experience." In this context, the typical sequence is to boot into Windows PE (Preinstallation Environment) , partition and format the disk, copy files, install basic components, and finish at the initial setup screen.
During the Windows PE phase, the hard drive is not yet ready to write all the records, so The initial logs are temporary and are stored in memory or temporary locations.Once the disk has been formatted and the operating system has begun to install, the installer proceeds to write directly to the new file system, usually in C:\Windows and associated subfolders.
For any errors that occur during these early stages of setup, the recommendation is very clear: first check setuperr.log and then delve deeper into setupact.log . From there, if the problem points to specific drivers, maintenance, or components, it will be time to open other specific log files.
Key registry files in Windows installation
In a clean installation or when setting up a reference image, not only are setupact.log and setuperr.log involved. There are other important logs located in well-defined paths:
- Setupact.log
Is main log of most errors of installation. There may be several copies depending on the phase:
(Specialized) configuration:X:\Windows\panther
Setup (OOBE), LogonUI and first OEM boot:%windir%\panther
Unattended OOBE / Fast Experience:%windir%\panther\unattendGC - Setuperr.log
Contains a list of high-level errors During the specialization phase and in phases associated with Setup. It doesn't go into detail, but it's perfect for quickly identifying what went wrong.
Typical location:%windir%\panther(for specialization and OOBE). - Setupapi.offline.log
Register controller failures during the component specialization sub-phaseThis is crucial if the installer fails due to an incorrect driver while the system has not yet booted normally.
Path:%windir%\infIn case of driver problems, consult information about driver failures. - Cbs_unattend.log
Pick up maintenance errors in unattended facilitiesThis is common in massive deployments or images configured using response files.
Path:%windir%\panther. - Setupapi.dev.log
Register the controller errors in the OOBE phase (Out-Of-Box Experience). If the installation reaches the initial user configuration stage and a device fails there, this log has the answer.
Path:%windir%\inf. - Sessions.xml
It is an XML transaction log that tracks all maintenance activity depending on the session ID, client, status, and tasks performed. Often, it will redirect you toDISM.logoCBS.logwhen you need more context.
Path:%windir%\servicing\sessions. - CBS.log
Maintenance log file that provides Additional details about offline or online maintenance errorsIt is closely linked to DISM and Windows Servicing.
Usual route:%windir%\logs\cbsor, depending on the scenario,%windir%\panther.
Offline maintenance of Windows images
Another very common scenario is when you need to modify a Windows image without booting it : adding or removing updates, drivers, language packs, or changing certain settings. This is done on an image mounted or applied to a drive, but without starting the operating system contained in that image.
The main focus here is DISM (Deployment Image Servicing and Management). This tool runs from Windows PE or another Windows installation and allows for completely offline image maintenance. If something goes wrong when running a DISM command, the program itself responds with an error message and logs the incident.
To diagnose errors in these types of tasks, the recommended order is very clear: start with DISM.log and, if there isn't enough information, move on to Sessions.xml and CBS.log . This way you can reconstruct the image maintenance sequence with considerable accuracy, which helps resolve errors like 0x80073701.
Records related to offline maintenance
- DISM.log
Is Main log of all offline DISM operationsIt collects executed commands, options used, returned errors, and internal messages from the tool.
Standard route:%windir%\logs\dism.
In addition, the output and level of detail can be redirected using parameters such as/LogPathy/LogLevelwhich is very useful for debugging complex problems. - Sessions.xml
Works like maintenance transaction logIt allows you to track what has been done, with which session, in what state each task finished, and, when necessary, explicitly points toDISM.logyCBS.logfor more details.
Path:%windir%\servicing\sessions.
Online maintenance: when the system is running
In contrast to offline maintenance, online maintenance is performed on a running operating system . This includes booting the computer, entering audit mode if necessary, installing applications, drivers, language packs, standalone updates, or configurations that require the system to be "live."
This approach is especially practical for drivers with co-installers or application dependencies , packages in MSI or KB.exe format, or software that requires active Windows services and technologies, such as Plug and Play or .NET Framework. In short, anything that integrates best when the system is running.
As with offline maintenance, DISM.log, CBS.log, and Sessions.xml are the cornerstones of the log . When the cause of the failure is unclear, the Windows 11 troubleshooter can supplement the analysis with automated checks.
Online maintenance logs
- DISM.log
Act like main record of all online DISM transactionsWhen necessary, refer toCBS.logFor additional information, especially regarding component or maintenance stack errors.
Path:%windir%\logs\dism, with the possibility of changing location and level of detail through/LogPathy/LogLevel. - CBS.log
Is secondary but more detailed record Regarding online maintenance failures, DISM typically references this file when the cause of the error lies within the Windows Servicing system.
Path:%windir%\logs\cbs. - Sessions.xml
He's playing the role again. transaction loglisting sessions, statuses, and actions performed. It also indicates when to consultDISM.logoCBS.logfor specific details.
Path:%windir%\servicing\sessions.
Updates and SetupDiag: locating the cause of a failure
In the specific case of Windows upgrades to higher versions (for example, going from Windows 7 or 8.1 to Windows 10, or from one version of Windows 10 to a newer one), Windows generates a collection of logs during each phase of the upgrade.
These files are usually stored in hidden folders like $Windows.~BTTo view them, you need to enable the display of hidden items in File Explorer or use log collection tools. Of all of them, the most useful is usually, again... setupact.logbecause it contains the complete account of what the installer has done at each stage and is the first reference when there is a update failureAdditionally, temporary logs and rollback copies may remain in hidden folders like $Windows.~BT.
Since Windows 10 version 2004, the installation program itself incorporates SetupDiag, a diagnostic tool that analyzes Setup logs and attempts automatically identify the root cause of an update failureIt is executed with parameters such as /ZipLogs:False, /Format:xml, /Output:%windir%\logs\SetupDiag\SetupDiagResults.xml y /RegPath:HKEY_LOCAL_MACHINE\SYSTEM\Setup\SetupDiag\Resultsgenerating a fairly specific XML report.
Even with SetupDiag, knowing where the different setupact.log and setuperr.log files are stored at each stage is essential for thoroughly investigating a problem.
Typical locations and uses of update logs
| Archive | Phase and route | Primary use | When to look at it |
|---|---|---|---|
| setupact.log | Lower level:$Windows.~BT\Sources\Panther |
Register low-level installation actions before entering later phases. | For lower-level errors and as a starting point in reversal investigations. |
| setupact.log | OOBE (Fast Experience):$Windows.~BT\Sources\Panther\UnattendGC |
Describe the actions during the OOBE phase, including initial user setup. | When the reversion occurs with codes associated with OOBE such as 0x4001C, 0x4001D, 0x4001E, 0x4001F. |
| setupact.log | Reversion:$Windows.~BT\Sources\Rollback |
It contains the steps executed during the reversal of the installation. | Essential for generic errors such as 0xC1900101 that usually imply rollback. |
| setupact.log | Prior initialization:Windows |
Record how The installation program starts. | When directly Setup won't start or it closes as soon as it starts. |
| setupact.log | After the update:Windows\Panther |
Collect the remaining installation actions after the update. | To investigate problems after a seemingly successful update. |
| setuperr.log | Same paths as setupact.log | List the errors detected during installation. | To get a quick overview of all the key failures in the corresponding phase. |
| miglog.xml | Post OOBE:Windows\Panther |
Detail what Elements have been migrated during the update. | When there are suspicions of problems migrating data or configurations. |
| BlueBox.log | Lower level:Windows\Logs\Mosetup |
Register the communication between setup.exe and Windows Update. | Very useful for WSUS or lower-level Windows Update errors, as well as for code 0xC1900107. |
| Additional reversal logs: Setupmem.dmp, setupapi.dev.log, event logs (*.evtx) |
$Windows.~BT\Sources\Rollback |
They supplement the information on the reversal with minidumps, device failures, and system events. |
Setupmem.dmp: if the system performed a bug check during the update. setupapi.dev.log: for device installation problems (e.g., code 0x30018). Events .evtx: generic 0xC1900101 reversions or unexpected restarts. |
Structure of an entry in setupact.log and setuperr.log
The entries in these logs follow a more or less stable format. Understanding it makes it much easier to pinpoint the exact moment something went wrong . Each line typically includes:
- Date and Time: For example,
2023-09-08 09:20:05, which tells you precisely when that action was performed. - Registration level: it can be information, warning, error or critical error, marking the severity of the event.
- Registration component: tags like CONX, MOUPG, PANTHR, SP, IBSLIB, MIG, DISM, CSI or CBS, which indicate which module generated the entry.
- Message: description of what happened, for example, "the operation was completed successfully" or a specific read/write error.
In installation problem scenarios, the SP (installation platform) , MIG (migration engine) , and CONX (compatibility) components are often especially valuable because they are usually directly related to failures when applying changes or migrating data between Windows versions.
A typical example of a problematic entry would be something like: “Warning MIG Could not replace object C:\Users\name\Cookies. Cannot remove target object.” Although it may seem like a minor detail, it indicates points where the migration has started to stumble.
How to analyze the logs of a failed installation
The methodology for reviewing these logs is primarily designed for IT professionals and support staff , but with a little patience, anyone can follow it. The goal is to correlate error codes, timestamps, and key messages to pinpoint the exact cause of the failure.
For reference, Microsoft documents update error codes and allows you to expand upon the Win32 codes that appear in the logs. Combining this information with a proper reading of setupact.log and setuperr.log can help you pinpoint the exact component that caused the rollback.
The most reasonable workflow would be something like this:
-
Determine the installation error code returned by the installer (for example, 0x8007042B: 0x2000D). This is usually displayed in the error interface or in the SetupDiag quick reports.
-
Starting from the "extension" part of the code (e.g., 0x2000D ), decide which log file and path you should check first (lower level, OOBE, rollback, etc.).
-
Open the file in question with a simple text editor, such as Notepad, or a more advanced one if you need to perform bulk searches.
-
Search the file for the Win32 result code portion (in the example, 8007042B) and locate its last occurrence, as it is usually close to the actual point where the final failure occurs.
-
To easily find that last appearance, it is recommended to:
- Go to the end of the file.
- Open the search function.
- Write the code (for example, 8007042B).
- Indicate the search direction as “Up”.
- Keep jumping around until you find the relevant match.
-
Once found, go up a few lines and calmly review what operations were in progress just before that code appeared.
-
Pay attention to very significant text strings such as “Shell application requested abort” or “Abandoning apply due to error for object” , which usually mark the point of aborting the operation.
-
Interpret Win32 errors that appear (e.g., 0x00000570) using official documentation or code databases.
-
Accurately note the timestamp of those problematic lines.
-
Search other log files (setupact.log, setuperr.log from other phases, DISM.log, CBS.log, etc.) for entries with the same timestamp or cross-references to the same component or file.
Practical example: corrupted file blocking an update
Imagine that a Windows update returns error 0x8007042B: 0x2000D and upon opening setuperr.log you find, after searching for 8007042B, a sequence similar to this (simplified):
27:08, Error SP Error READ, 0x00000570 while gathering/applying object: File, C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 . Will return 0
27:08, Error MIG Error 1392 while gathering object C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 . Shell application requested abort!
...
27:09, Error SP Operation failed: Migrate framework (Full). Error: 0x8007042B
In the first line it is clear that a 0x00000570 error when trying to process the file C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 That Win32 code corresponds to ERROR_FILE_CORRUPTThat is, "the file or directory is damaged and unreadable."
Shortly after, the MIG component logs Error 1392 and displays the message “Shell application requested abort,” indicating that the shell application has requested to cancel the operation due to this failure. Later, the installation platform (SP) reports that the framework migration operation failed with error code 0x8007042B.
If you now go to setupact.log and look for the same timestamp, you'll see details of the attempt to "gather" that same file, the status messages, the confirmation that the file is corrupt, and the termination of the migration process. All of this confirms that the root cause of the update failure is that corrupted file.
In this specific example, it is a local system certificate that can be safely removedSimply removing the file would suffice. C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18\, restart the update process and verify that, this time, the migration can continue smoothly.
Common problems related to setuperr.log
Beyond its content, the setuperr.log file itself can be problematic . In some cases, it appears completely empty, is missing, has been deleted by another program, or is corrupted, preventing the review of errors from previous installations.
Messages that may appear associated with this file include things like “setuperr.log error ,” “setuperr.log not found,” “cannot load setuperr.log,” or registry and runtime errors related to the file. These typically occur during the installation of related software, when starting or shutting down Windows, or when loading a Microsoft-related device driver.
Common causes of this type of problem include corrupted registry keys related to setuperr.log , malware infection affecting the file, accidental deletions by other programs, shared file conflicts, incomplete installations, and corrupted downloads of Setup components.
In these cases, the wisest course of action is to check the system's integrity using standard tools (antivirus, SFC, online DISM), verify that there are no remnants of failed Setup installations , and ensure that other third-party applications are not interfering with the Windows registry. It can also be helpful to use a deep uninstaller like Revo Uninstaller to remove any remaining files that might prevent a clean installation.
Real-world context: failures when upgrading from Windows 7 to Windows 10
A fairly common scenario these days is trying to upgrade a computer from Windows 7 Professional to Windows 10 using Microsoft's official upgrade tool. Even if the license is legitimate and the wizard seems to be progressing smoothly, it's not uncommon for the installation to stall at stages like second_boot with messages such as "error during sysprep_respecialize operation".
When something like this happens, the best practice is to collect the Panther and rollback logs . In many support forums, technicians typically request the following files:
- Setupact.log and setuperr.log from
C:\$Windows.~BT\Sources\Panther. - Rollback setupact.log and setuperr.log from
C:\$Windows.~BT\Sources\Rollback. - setupapi.dev.log de
C:\$Windows.~BT\Sources\Rollback\setupapi\If the error code is, for example, 0xC1900101-0x30018 (closely linked to driver problems during the device phase). - Setupact.log and setuperr.log in
%windir%\Pantherwhen the code is 0xC1900101-20017, which points to errors during the early boot phases.
It is common practice to request that these logs be uploaded to a file sharing service (e.g., OneDrive) because they can take up a significant amount of space, and from there timestamps, error codes and involved components are analyzed to guide the solution.
Along with this, it's crucial to check whether the update attempt was initiated from an installation USB drive or from the online tool itself. The logs may show that setupact.log and setuperr.log are created immediately after connecting a USB drive , which could indicate an attempt to install from external media, but it could also be due to the installation or update of drivers stored on that device. Reading the specific paths and operations that appear in the logs is key to understanding what actually happened.
By combining the information from these logs, the returned error codes, and tools like SetupDiag , it's possible to go from a generic "error in second_boot with sysprep_respecialize" message to a very specific cause: an incompatible driver, a corrupt file, a problematic registry key, or a security component blocking the migration.
Mastering the reading of setupact.log, setuperr.log, and the rest of the related logs not only allows you to resolve Windows installations that have stalled, but also to understand with considerable accuracy what decisions the system has made, what it has tried to do at each stage, and at what exact point it decided to back out, making it a powerful tool for support, forensic analysis, and advanced administration of Windows environments.
Table of Contents
- 1 What are setupact.log and setuperr.log and what are they used for?
- 2 Scenario: Clean Windows installation and initial stages
- 3 Offline maintenance of Windows images
- 4 Online maintenance: when the system is running
- 5 Updates and SetupDiag: locating the cause of a failure
- 6 Structure of an entry in setupact.log and setuperr.log
- 7 How to analyze the logs of a failed installation
- 8 Practical example: corrupted file blocking an update
- 9 Common problems related to setuperr.log
- 10 Real-world context: failures when upgrading from Windows 7 to Windows 10

