Skip to main content

cmtraceopen_parser/error_db/
codes.rs

1/// Embedded error code database derived from CMTrace binary analysis.
2/// Contains common Windows, SCCM, Intune, and Windows Update error codes.
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
6#[serde(rename_all = "camelCase")]
7pub enum ErrorCategory {
8    Windows,
9    WindowsUpdate,
10    Bits,
11    ConfigMgr,
12    Intune,
13    DeliveryOpt,
14    AppInstall,
15    Certificate,
16    Network,
17    Security,
18    Registry,
19    FileSystem,
20    Msi,
21    Psadt,
22}
23
24impl ErrorCategory {
25    pub fn label(&self) -> &'static str {
26        match self {
27            Self::Windows => "Windows",
28            Self::WindowsUpdate => "Windows Update",
29            Self::Bits => "BITS",
30            Self::ConfigMgr => "ConfigMgr",
31            Self::Intune => "Intune",
32            Self::DeliveryOpt => "Delivery Optimization",
33            Self::AppInstall => "App Install",
34            Self::Certificate => "Certificate",
35            Self::Network => "Network",
36            Self::Security => "Security",
37            Self::Registry => "Registry",
38            Self::FileSystem => "File System",
39            Self::Msi => "Windows Installer (MSI)",
40            Self::Psadt => "PSADT",
41        }
42    }
43}
44
45#[derive(Debug, Clone)]
46pub struct ErrorCode {
47    pub code: u32,
48    pub description: &'static str,
49    pub category: ErrorCategory,
50}
51
52pub static ERROR_CODES: &[ErrorCode] = &[
53    // ==========================================
54    // Windows / HRESULT errors
55    // ==========================================
56    ErrorCode { code: 0x00000000, description: "S_OK - The operation completed successfully", category: ErrorCategory::Windows },
57    ErrorCode { code: 0x00000001, description: "S_FALSE - The operation completed with a non-critical warning", category: ErrorCategory::Windows },
58    ErrorCode { code: 0x80004001, description: "E_NOTIMPL - Not implemented", category: ErrorCategory::Windows },
59    ErrorCode { code: 0x80004002, description: "E_NOINTERFACE - No such interface supported", category: ErrorCategory::Windows },
60    ErrorCode { code: 0x80004003, description: "E_POINTER - Invalid pointer", category: ErrorCategory::Windows },
61    ErrorCode { code: 0x80004004, description: "E_ABORT - Operation aborted", category: ErrorCategory::Windows },
62    ErrorCode { code: 0x80004005, description: "E_FAIL - Unspecified failure", category: ErrorCategory::Windows },
63    ErrorCode { code: 0x80004006, description: "CO_E_INIT_TLS - Thread local storage failure", category: ErrorCategory::Windows },
64    ErrorCode { code: 0x80004015, description: "CO_E_WRONGOSFORAPP - Application not found", category: ErrorCategory::Windows },
65    ErrorCode { code: 0x8000FFFF, description: "E_UNEXPECTED - Unexpected failure", category: ErrorCategory::Windows },
66    ErrorCode { code: 0x80010105, description: "RPC_E_SERVERFAULT - The server threw an exception", category: ErrorCategory::Windows },
67    ErrorCode { code: 0x80010108, description: "RPC_E_DISCONNECTED - The object invoked has disconnected from its clients", category: ErrorCategory::Windows },
68    ErrorCode { code: 0x8001010D, description: "RPC_E_SERVERCALL_RETRYLATER - The callee (server) is not available and disappeared; all connections are invalid", category: ErrorCategory::Windows },
69    ErrorCode { code: 0x800401F0, description: "CO_E_NOTINITIALIZED - COM not initialized", category: ErrorCategory::Windows },
70    ErrorCode { code: 0x80040154, description: "REGDB_E_CLASSNOTREG - Class not registered", category: ErrorCategory::Windows },
71    ErrorCode { code: 0x80040201, description: "CACHE_E_NOCACHE_UPDATED - No cache updated", category: ErrorCategory::Windows },
72    ErrorCode { code: 0x80070001, description: "ERROR_INVALID_FUNCTION - Incorrect function", category: ErrorCategory::Windows },
73    ErrorCode { code: 0x80070002, description: "ERROR_FILE_NOT_FOUND - The system cannot find the file specified", category: ErrorCategory::Windows },
74    ErrorCode { code: 0x80070003, description: "ERROR_PATH_NOT_FOUND - The system cannot find the path specified", category: ErrorCategory::Windows },
75    ErrorCode { code: 0x80070004, description: "ERROR_TOO_MANY_OPEN_FILES - The system cannot open the file", category: ErrorCategory::Windows },
76    ErrorCode { code: 0x80070005, description: "E_ACCESSDENIED - Access is denied", category: ErrorCategory::Windows },
77    ErrorCode { code: 0x80070006, description: "ERROR_INVALID_HANDLE - The handle is invalid", category: ErrorCategory::Windows },
78    ErrorCode { code: 0x80070007, description: "ERROR_ARENA_TRASHED - The storage control blocks were destroyed", category: ErrorCategory::Windows },
79    ErrorCode { code: 0x80070008, description: "ERROR_NOT_ENOUGH_MEMORY - Not enough storage is available", category: ErrorCategory::Windows },
80    ErrorCode { code: 0x8007000A, description: "ERROR_BAD_ENVIRONMENT - The environment is incorrect", category: ErrorCategory::Windows },
81    ErrorCode { code: 0x8007000B, description: "ERROR_BAD_FORMAT - An attempt was made to load a program with an incorrect format", category: ErrorCategory::Windows },
82    ErrorCode { code: 0x8007000D, description: "ERROR_INVALID_DATA - The data is invalid", category: ErrorCategory::Windows },
83    ErrorCode { code: 0x8007000E, description: "E_OUTOFMEMORY - Not enough memory resources to complete this operation", category: ErrorCategory::Windows },
84    ErrorCode { code: 0x8007000F, description: "ERROR_INVALID_DRIVE - The system cannot find the drive specified", category: ErrorCategory::Windows },
85    ErrorCode { code: 0x80070011, description: "ERROR_NOT_SAME_DEVICE - The system cannot move the file to a different disk drive", category: ErrorCategory::Windows },
86    ErrorCode { code: 0x80070012, description: "ERROR_NO_MORE_FILES - There are no more files", category: ErrorCategory::Windows },
87    ErrorCode { code: 0x80070015, description: "ERROR_NOT_READY - The device is not ready", category: ErrorCategory::Windows },
88    ErrorCode { code: 0x8007001D, description: "ERROR_WRITE_FAULT - The system cannot write to the specified device", category: ErrorCategory::Windows },
89    ErrorCode { code: 0x8007001E, description: "ERROR_READ_FAULT - The system cannot read from the specified device", category: ErrorCategory::Windows },
90    ErrorCode { code: 0x8007001F, description: "ERROR_GEN_FAILURE - A device attached to the system is not functioning", category: ErrorCategory::Windows },
91    ErrorCode { code: 0x80070020, description: "ERROR_SHARING_VIOLATION - The process cannot access the file because it is being used by another process", category: ErrorCategory::Windows },
92    ErrorCode { code: 0x80070021, description: "ERROR_LOCK_VIOLATION - The process cannot access the file because another process has locked a portion of the file", category: ErrorCategory::Windows },
93    ErrorCode { code: 0x80070026, description: "ERROR_HANDLE_EOF - Reached the end of the file", category: ErrorCategory::Windows },
94    ErrorCode { code: 0x80070027, description: "ERROR_HANDLE_DISK_FULL - The disk is full", category: ErrorCategory::Windows },
95    ErrorCode { code: 0x80070032, description: "ERROR_NOT_SUPPORTED - The request is not supported", category: ErrorCategory::Windows },
96    ErrorCode { code: 0x80070033, description: "ERROR_REM_NOT_LIST - Windows cannot find the network path", category: ErrorCategory::Windows },
97    ErrorCode { code: 0x80070035, description: "ERROR_BAD_NETPATH - The network path was not found", category: ErrorCategory::Windows },
98    ErrorCode { code: 0x80070037, description: "ERROR_DEV_NOT_EXIST - The specified network resource or device is no longer available", category: ErrorCategory::Windows },
99    ErrorCode { code: 0x8007003B, description: "ERROR_UNEXP_NET_ERR - An unexpected network error occurred", category: ErrorCategory::Windows },
100    ErrorCode { code: 0x80070040, description: "ERROR_NETNAME_DELETED - The specified network name is no longer available", category: ErrorCategory::Windows },
101    ErrorCode { code: 0x80070041, description: "ERROR_NETWORK_ACCESS_DENIED - Network access is denied", category: ErrorCategory::Windows },
102    ErrorCode { code: 0x80070043, description: "ERROR_BAD_NET_NAME - The network name cannot be found", category: ErrorCategory::Windows },
103    ErrorCode { code: 0x80070050, description: "ERROR_FILE_EXISTS - The file exists", category: ErrorCategory::Windows },
104    ErrorCode { code: 0x80070052, description: "ERROR_DUP_NAME - Duplicate name on the network", category: ErrorCategory::Windows },
105    ErrorCode { code: 0x80070056, description: "ERROR_INVALID_PASSWORD - The specified network password is not correct", category: ErrorCategory::Windows },
106    ErrorCode { code: 0x80070057, description: "E_INVALIDARG - One or more arguments are invalid", category: ErrorCategory::Windows },
107    ErrorCode { code: 0x8007006D, description: "ERROR_BROKEN_PIPE - The pipe has been ended", category: ErrorCategory::Windows },
108    ErrorCode { code: 0x8007006E, description: "ERROR_OPEN_FAILED - The system cannot open the device or file specified", category: ErrorCategory::Windows },
109    ErrorCode { code: 0x8007006F, description: "ERROR_BUFFER_OVERFLOW - The file name is too long", category: ErrorCategory::Windows },
110    ErrorCode { code: 0x80070070, description: "ERROR_DISK_FULL - There is not enough space on the disk", category: ErrorCategory::Windows },
111    ErrorCode { code: 0x80070078, description: "ERROR_CALL_NOT_IMPLEMENTED - This function is not supported on this system", category: ErrorCategory::Windows },
112    ErrorCode { code: 0x80070079, description: "ERROR_SEM_TIMEOUT - The semaphore timeout period has expired", category: ErrorCategory::Windows },
113    ErrorCode { code: 0x8007007A, description: "ERROR_INSUFFICIENT_BUFFER - The data area passed to a system call is too small", category: ErrorCategory::Windows },
114    ErrorCode { code: 0x8007007B, description: "ERROR_INVALID_NAME - The filename, directory name, or volume label syntax is incorrect", category: ErrorCategory::Windows },
115    ErrorCode { code: 0x8007007E, description: "ERROR_MOD_NOT_FOUND - The specified module could not be found", category: ErrorCategory::Windows },
116    ErrorCode { code: 0x8007007F, description: "ERROR_PROC_NOT_FOUND - The specified procedure could not be found", category: ErrorCategory::Windows },
117    ErrorCode { code: 0x80070091, description: "ERROR_DIR_NOT_EMPTY - The directory is not empty", category: ErrorCategory::Windows },
118    ErrorCode { code: 0x8007009E, description: "ERROR_NOT_LOCKED - The segment is already unlocked", category: ErrorCategory::Windows },
119    ErrorCode { code: 0x800700A1, description: "ERROR_BAD_PATHNAME - The specified path is invalid", category: ErrorCategory::Windows },
120    ErrorCode { code: 0x800700AA, description: "ERROR_BUSY - The requested resource is in use", category: ErrorCategory::Windows },
121    ErrorCode { code: 0x800700B7, description: "ERROR_ALREADY_EXISTS - Cannot create a file when that file already exists", category: ErrorCategory::Windows },
122    ErrorCode { code: 0x800700C1, description: "ERROR_BAD_EXE_FORMAT - Not a valid Win32 application", category: ErrorCategory::Windows },
123    ErrorCode { code: 0x800700CB, description: "ERROR_ENVVAR_NOT_FOUND - The system could not find the environment option that was entered", category: ErrorCategory::Windows },
124    ErrorCode { code: 0x800700CE, description: "ERROR_FILENAME_EXCED_RANGE - The file name or extension is too long", category: ErrorCategory::Windows },
125    ErrorCode { code: 0x800700E1, description: "ERROR_VIRUS_INFECTED - Operation did not complete successfully because the file contains a virus", category: ErrorCategory::Windows },
126    ErrorCode { code: 0x800700EA, description: "ERROR_MORE_DATA - More data is available", category: ErrorCategory::Windows },
127    ErrorCode { code: 0x80070102, description: "WAIT_TIMEOUT - The wait operation timed out", category: ErrorCategory::Windows },
128    ErrorCode { code: 0x80070103, description: "NO_MORE_ITEMS - No more data is available", category: ErrorCategory::Windows },
129    ErrorCode { code: 0x8007010B, description: "ERROR_DIRECTORY - The directory name is invalid", category: ErrorCategory::Windows },
130    ErrorCode { code: 0x8007013D, description: "ERROR_MR_MID_NOT_FOUND - The system cannot find message text for message number", category: ErrorCategory::Windows },
131    ErrorCode { code: 0x8007015E, description: "ERROR_FAIL_NOACTION_REBOOT - No action was taken because a system reboot is required", category: ErrorCategory::Windows },
132    ErrorCode { code: 0x800701E7, description: "ERROR_INVALID_ADDRESS - Attempt to access invalid address", category: ErrorCategory::Windows },
133    ErrorCode { code: 0x800701F4, description: "ERROR_USER_PROFILE_LOAD - User profile cannot be loaded", category: ErrorCategory::Windows },
134    ErrorCode { code: 0x80070216, description: "ERROR_ARITHMETIC_OVERFLOW - Arithmetic result exceeded 32 bits", category: ErrorCategory::Windows },
135    ErrorCode { code: 0x8007023C, description: "ERROR_CONTROL_C_EXIT - Application terminated as a result of CTRL+C", category: ErrorCategory::Windows },
136    ErrorCode { code: 0x80070241, description: "ERROR_INVALID_IMAGE_HASH - The hash for the image cannot be found in the system catalogs", category: ErrorCategory::Windows },
137    ErrorCode { code: 0x800702E4, description: "ERROR_ELEVATION_REQUIRED - The requested operation requires elevation", category: ErrorCategory::Windows },
138    ErrorCode { code: 0x800703E5, description: "ERROR_IO_PENDING - Overlapped I/O operation is in progress", category: ErrorCategory::Windows },
139    ErrorCode { code: 0x800703E6, description: "ERROR_NOACCESS - Invalid access to memory location", category: ErrorCategory::Windows },
140    ErrorCode { code: 0x8007041D, description: "ERROR_SERVICE_REQUEST_TIMEOUT - The service did not respond to the start or control request in a timely fashion", category: ErrorCategory::Windows },
141    ErrorCode { code: 0x80070422, description: "ERROR_SERVICE_DISABLED - The service is disabled", category: ErrorCategory::Windows },
142    ErrorCode { code: 0x80070424, description: "ERROR_SERVICE_DOES_NOT_EXIST - The specified service does not exist", category: ErrorCategory::Windows },
143    ErrorCode { code: 0x8007042B, description: "ERROR_PROCESS_ABORTED - The process terminated unexpectedly", category: ErrorCategory::Windows },
144    ErrorCode { code: 0x8007042C, description: "ERROR_SERVICE_DEPENDENCY_FAIL - The dependency service or group failed to start", category: ErrorCategory::Windows },
145    ErrorCode { code: 0x8007046A, description: "ERROR_NOT_ENOUGH_SERVER_MEMORY - Not enough server storage is available to process this command", category: ErrorCategory::Windows },
146    ErrorCode { code: 0x80070490, description: "E_ELEMENT_NOT_FOUND - Element not found", category: ErrorCategory::Windows },
147    ErrorCode { code: 0x800704C3, description: "ERROR_SESSION_CREDENTIAL_CONFLICT - Multiple connections to a server using more than one user name not allowed", category: ErrorCategory::Windows },
148    ErrorCode { code: 0x800704C7, description: "ERROR_CANCELLED - The operation was canceled by the user", category: ErrorCategory::Windows },
149    ErrorCode { code: 0x800704CF, description: "ERROR_NETWORK_UNREACHABLE - The network location cannot be reached", category: ErrorCategory::Windows },
150    ErrorCode { code: 0x800704DD, description: "ERROR_NOT_LOGGED_ON - The user is not logged on", category: ErrorCategory::Windows },
151    ErrorCode { code: 0x800704EC, description: "ERROR_ACCESS_DISABLED_BY_POLICY - This program is blocked by group policy", category: ErrorCategory::Windows },
152    ErrorCode { code: 0x80070522, description: "ERROR_PRIVILEGE_NOT_HELD - A required privilege is not held by the client", category: ErrorCategory::Windows },
153    ErrorCode { code: 0x8007052E, description: "ERROR_LOGON_FAILURE - Logon failure: unknown user name or bad password", category: ErrorCategory::Windows },
154    ErrorCode { code: 0x80070570, description: "ERROR_FILE_CORRUPT - The file or directory is corrupted and unreadable", category: ErrorCategory::Windows },
155    ErrorCode { code: 0x80070574, description: "ERROR_LOGON_FAILURE_MUTUAL_AUTH - Logon Failure: The target account name is incorrect", category: ErrorCategory::Windows },
156    ErrorCode { code: 0x800705B4, description: "ERROR_TIMEOUT - This operation returned because the timeout period expired", category: ErrorCategory::Windows },
157    ErrorCode { code: 0x800705DC, description: "ERROR_EVENTLOG_CANT_START - The event log file is corrupted", category: ErrorCategory::Windows },
158    ErrorCode { code: 0x80070643, description: "ERROR_INSTALL_FAILURE - Fatal error during installation", category: ErrorCategory::Windows },
159    ErrorCode { code: 0x80070652, description: "ERROR_INSTALL_ALREADY_RUNNING - Another installation is already in progress", category: ErrorCategory::Windows },
160    ErrorCode { code: 0x800706BA, description: "RPC_S_SERVER_UNAVAILABLE - The RPC server is unavailable", category: ErrorCategory::Windows },
161    ErrorCode { code: 0x800706BE, description: "RPC_S_CALL_FAILED - The remote procedure call failed", category: ErrorCategory::Windows },
162    ErrorCode { code: 0x80070775, description: "ERROR_INVALID_DATATYPE - The specified data type is invalid", category: ErrorCategory::Windows },
163    ErrorCode { code: 0x800706D9, description: "RPC_S_NO_BINDINGS - There are no bindings", category: ErrorCategory::Windows },
164    ErrorCode { code: 0x800706BB, description: "RPC_S_SERVER_TOO_BUSY - The RPC server is too busy to complete this operation", category: ErrorCategory::Windows },
165    ErrorCode { code: 0x80070BC2, description: "ERROR_SUCCESS_REBOOT_REQUIRED - A restart is required to complete the install", category: ErrorCategory::Windows },
166    ErrorCode { code: 0x80070BC9, description: "ERROR_FAIL_REBOOT_REQUIRED - A restart is required to complete the uninstall", category: ErrorCategory::Windows },
167
168    // ==========================================
169    // Windows Update Agent
170    // ==========================================
171    // WUA success codes
172    ErrorCode { code: 0x00240001, description: "WU_S_SERVICE_STOP - Windows Update Agent was stopped successfully", category: ErrorCategory::WindowsUpdate },
173    ErrorCode { code: 0x00240002, description: "WU_S_SELFUPDATE - Windows Update Agent updated itself", category: ErrorCategory::WindowsUpdate },
174    ErrorCode { code: 0x00240005, description: "WU_S_REBOOT_REQUIRED - The system needs to be rebooted to complete installation", category: ErrorCategory::WindowsUpdate },
175    ErrorCode { code: 0x00240006, description: "WU_S_ALREADY_INSTALLED - The update to be installed is already installed", category: ErrorCategory::WindowsUpdate },
176    ErrorCode { code: 0x00240008, description: "WU_S_ALREADY_DOWNLOADED - The update to be downloaded has already been downloaded", category: ErrorCategory::WindowsUpdate },
177    // WUA error codes
178    ErrorCode { code: 0x80240001, description: "WU_E_NO_SERVICE - Windows Update Agent was unable to provide the service", category: ErrorCategory::WindowsUpdate },
179    ErrorCode { code: 0x80240002, description: "WU_E_MAX_CAPACITY_REACHED - Maximum capacity of the service was exceeded", category: ErrorCategory::WindowsUpdate },
180    ErrorCode { code: 0x80240003, description: "WU_E_UNKNOWN_ID - An ID that was not recognized", category: ErrorCategory::WindowsUpdate },
181    ErrorCode { code: 0x80240004, description: "WU_E_NOT_INITIALIZED - The object could not be initialized", category: ErrorCategory::WindowsUpdate },
182    ErrorCode { code: 0x80240005, description: "WU_E_RANGEOVERLAP - The update handler requested a byte range overlapping a previously requested range", category: ErrorCategory::WindowsUpdate },
183    ErrorCode { code: 0x80240006, description: "WU_E_TOOMANYRANGES - Too many byte ranges requested", category: ErrorCategory::WindowsUpdate },
184    ErrorCode { code: 0x80240007, description: "WU_E_INVALIDINDEX - Invalid index into the update list", category: ErrorCategory::WindowsUpdate },
185    ErrorCode { code: 0x80240008, description: "WU_E_ITEMNOTFOUND - The key for the item queried could not be found", category: ErrorCategory::WindowsUpdate },
186    ErrorCode { code: 0x80240009, description: "WU_E_OPERATIONINPROGRESS - Another conflicting operation was in progress", category: ErrorCategory::WindowsUpdate },
187    ErrorCode { code: 0x8024000A, description: "WU_E_COULDNOTCANCEL - Cancellation of the operation was not allowed", category: ErrorCategory::WindowsUpdate },
188    ErrorCode { code: 0x8024000B, description: "WU_E_CALL_CANCELLED - Operation was cancelled", category: ErrorCategory::WindowsUpdate },
189    ErrorCode { code: 0x8024000C, description: "WU_E_NOOP - No operation was required", category: ErrorCategory::WindowsUpdate },
190    ErrorCode { code: 0x8024000D, description: "WU_E_XML_MISSINGDATA - XML is missing required data", category: ErrorCategory::WindowsUpdate },
191    ErrorCode { code: 0x8024000E, description: "WU_E_XML_INVALID - XML is not valid", category: ErrorCategory::WindowsUpdate },
192    ErrorCode { code: 0x8024000F, description: "WU_E_CYCLE_DETECTED - Circular update relationships were detected", category: ErrorCategory::WindowsUpdate },
193    ErrorCode { code: 0x80240010, description: "WU_E_TOO_DEEP_RELATION - Update relationships too deep to evaluate", category: ErrorCategory::WindowsUpdate },
194    ErrorCode { code: 0x80240011, description: "WU_E_INVALID_RELATIONSHIP - Invalid update relationship", category: ErrorCategory::WindowsUpdate },
195    ErrorCode { code: 0x80240012, description: "WU_E_REG_VALUE_INVALID - Invalid registry value", category: ErrorCategory::WindowsUpdate },
196    ErrorCode { code: 0x80240013, description: "WU_E_DUPLICATE_ITEM - Duplicate item in list", category: ErrorCategory::WindowsUpdate },
197    ErrorCode { code: 0x80240016, description: "WU_E_INSTALL_NOT_ALLOWED - Install not allowed", category: ErrorCategory::WindowsUpdate },
198    ErrorCode { code: 0x80240017, description: "WU_E_NOT_APPLICABLE - The update is not applicable to this computer", category: ErrorCategory::WindowsUpdate },
199    ErrorCode { code: 0x80240018, description: "WU_E_NO_USERTOKEN - Failed to use the BITS service", category: ErrorCategory::WindowsUpdate },
200    ErrorCode { code: 0x80240019, description: "WU_E_EXCLUSIVE_INSTALL_CONFLICT - An exclusive update cannot be installed with other updates", category: ErrorCategory::WindowsUpdate },
201    ErrorCode { code: 0x8024001A, description: "WU_E_POLICY_NOT_SET - A policy value was not set", category: ErrorCategory::WindowsUpdate },
202    ErrorCode { code: 0x8024001B, description: "WU_E_SELFUPDATE_IN_PROGRESS - Self-update in progress", category: ErrorCategory::WindowsUpdate },
203    ErrorCode { code: 0x8024001D, description: "WU_E_INVALID_UPDATE - An update contains invalid metadata", category: ErrorCategory::WindowsUpdate },
204    ErrorCode { code: 0x8024001E, description: "WU_E_SERVICE_STOP - Service stop required", category: ErrorCategory::WindowsUpdate },
205    ErrorCode { code: 0x8024001F, description: "WU_E_NO_CONNECTION - No network connection was available", category: ErrorCategory::WindowsUpdate },
206    ErrorCode { code: 0x80240020, description: "WU_E_NO_INTERACTIVE_USER - Operation cannot continue without user interaction", category: ErrorCategory::WindowsUpdate },
207    ErrorCode { code: 0x80240021, description: "WU_E_TIME_OUT - Operation did not complete because it timed out", category: ErrorCategory::WindowsUpdate },
208    ErrorCode { code: 0x80240022, description: "WU_E_ALL_UPDATES_FAILED - Operation failed for all updates", category: ErrorCategory::WindowsUpdate },
209    ErrorCode { code: 0x80240024, description: "WU_E_NO_UPDATE - There are no updates", category: ErrorCategory::WindowsUpdate },
210    ErrorCode { code: 0x80240025, description: "WU_E_USER_ACCESS_DISABLED - Group policy has disabled user access", category: ErrorCategory::WindowsUpdate },
211    ErrorCode { code: 0x80240026, description: "WU_E_INVALID_UPDATE_TYPE - The type of update is invalid", category: ErrorCategory::WindowsUpdate },
212    ErrorCode { code: 0x80240027, description: "WU_E_URL_TOO_LONG - The URL exceeded the maximum length", category: ErrorCategory::WindowsUpdate },
213    ErrorCode { code: 0x80240028, description: "WU_E_UNINSTALL_NOT_ALLOWED - The update could not be uninstalled", category: ErrorCategory::WindowsUpdate },
214    ErrorCode { code: 0x80240029, description: "WU_E_INVALID_PRODUCT_LICENSE - Search may have missed some updates due to expired product license", category: ErrorCategory::WindowsUpdate },
215    ErrorCode { code: 0x8024002A, description: "WU_E_MISSING_HANDLER - A component required to detect updates was missing", category: ErrorCategory::WindowsUpdate },
216    ErrorCode { code: 0x8024002B, description: "WU_E_LEGACYSERVER - An operation did not complete because it requires a newer version of server", category: ErrorCategory::WindowsUpdate },
217    ErrorCode { code: 0x8024002C, description: "WU_E_BIN_SOURCE_ABSENT - A delta-compressed update could not be installed because it required the source", category: ErrorCategory::WindowsUpdate },
218    ErrorCode { code: 0x8024002D, description: "WU_E_SOURCE_ABSENT - A full-file update could not be installed because it required the source", category: ErrorCategory::WindowsUpdate },
219    ErrorCode { code: 0x8024002E, description: "WU_E_WU_DISABLED - Access to an unmanaged server is not allowed", category: ErrorCategory::WindowsUpdate },
220    ErrorCode { code: 0x8024002F, description: "WU_E_CALL_CANCELLED_BY_POLICY - Operation did not complete because DisableWindowsUpdateAccess policy was set", category: ErrorCategory::WindowsUpdate },
221    ErrorCode { code: 0x80240030, description: "WU_E_INVALID_PROXY_SERVER - The format of the proxy list was invalid", category: ErrorCategory::WindowsUpdate },
222    ErrorCode { code: 0x80240031, description: "WU_E_INVALID_FILE - The file is in the wrong format", category: ErrorCategory::WindowsUpdate },
223    ErrorCode { code: 0x80240032, description: "WU_E_INVALID_CRITERIA - The search criteria string was invalid", category: ErrorCategory::WindowsUpdate },
224    ErrorCode { code: 0x80240033, description: "WU_E_EULA_UNAVAILABLE - License terms could not be downloaded", category: ErrorCategory::WindowsUpdate },
225    ErrorCode { code: 0x80240035, description: "WU_E_UPDATE_NOT_PROCESSED - The update was not processed", category: ErrorCategory::WindowsUpdate },
226    ErrorCode { code: 0x80240036, description: "WU_E_INVALID_OPERATION - The objects current state does not allow the operation", category: ErrorCategory::WindowsUpdate },
227    ErrorCode { code: 0x80240037, description: "WU_E_NOT_SUPPORTED - The functionality is not supported", category: ErrorCategory::WindowsUpdate },
228    ErrorCode { code: 0x80240038, description: "WU_E_WINHTTP_INVALID_FILE - The downloaded file has an unexpected content type", category: ErrorCategory::WindowsUpdate },
229    ErrorCode { code: 0x80240039, description: "WU_E_TOO_MANY_RESYNC - Agent is asked by server to resync too many times", category: ErrorCategory::WindowsUpdate },
230    ErrorCode { code: 0x80240040, description: "WU_E_NO_SERVER_CORE_SUPPORT - WUA API method does not run on Server Core installation", category: ErrorCategory::WindowsUpdate },
231    ErrorCode { code: 0x80240041, description: "WU_E_SYSPREP_IN_PROGRESS - Service is not available while sysprep is running", category: ErrorCategory::WindowsUpdate },
232    ErrorCode { code: 0x80240042, description: "WU_E_UNKNOWN_SERVICE - The update service is no longer registered with AU", category: ErrorCategory::WindowsUpdate },
233    ErrorCode { code: 0x80240043, description: "WU_E_NO_UI_SUPPORT - There is no support for WUA UI", category: ErrorCategory::WindowsUpdate },
234    ErrorCode { code: 0x80240044, description: "WU_E_PER_MACHINE_UPDATE_ACCESS_DENIED - Only administrators can perform this operation on per-machine updates", category: ErrorCategory::WindowsUpdate },
235    ErrorCode { code: 0x80240FFF, description: "WU_E_UNEXPECTED - An operation failed due to reasons not covered by another error code", category: ErrorCategory::WindowsUpdate },
236    // WU download/install manager errors
237    ErrorCode { code: 0x80242000, description: "WU_E_UH_REMOTEUNAVAILABLE - A request for a remote update handler could not be completed", category: ErrorCategory::WindowsUpdate },
238    ErrorCode { code: 0x80242002, description: "WU_E_UH_UNEXPECTEDCBSRESPONSE - The update handler received an unexpected response from CBS", category: ErrorCategory::WindowsUpdate },
239    ErrorCode { code: 0x80242005, description: "WU_E_UH_WRONGHANDLER - The wrong update handler was called", category: ErrorCategory::WindowsUpdate },
240    ErrorCode { code: 0x80242006, description: "WU_E_UH_INVALIDMETADATA - The update handler metadata is invalid", category: ErrorCategory::WindowsUpdate },
241    ErrorCode { code: 0x80242007, description: "WU_E_UH_INSTALLERHUNG - An operation could not be completed because the installer exceeded the time limit", category: ErrorCategory::WindowsUpdate },
242    ErrorCode { code: 0x80242008, description: "WU_E_UH_OPERATIONCANCELLED - An operation being done by the update handler was cancelled", category: ErrorCategory::WindowsUpdate },
243    ErrorCode { code: 0x80242009, description: "WU_E_UH_BADHANDLERXML - The handler metadata XML is invalid", category: ErrorCategory::WindowsUpdate },
244    ErrorCode { code: 0x8024200B, description: "WU_E_UH_INSTALLERFAILURE - The update handler failed to install the update", category: ErrorCategory::WindowsUpdate },
245    ErrorCode { code: 0x8024200C, description: "WU_E_UH_FALLBACKTOSELFCONTAINED - The update handler should download self-contained content", category: ErrorCategory::WindowsUpdate },
246    ErrorCode { code: 0x8024200D, description: "WU_E_UH_NEEDANOTHERDOWNLOAD - The update handler needs to download a different payload", category: ErrorCategory::WindowsUpdate },
247    ErrorCode { code: 0x8024200E, description: "WU_E_UH_NOTIFYFAILURE - Update handler notification failure", category: ErrorCategory::WindowsUpdate },
248    ErrorCode { code: 0x80243001, description: "WU_E_INSTALLATION_RESULTS_UNKNOWN_VERSION - Unknown version of installation results", category: ErrorCategory::WindowsUpdate },
249    ErrorCode { code: 0x80243002, description: "WU_E_INSTALLATION_RESULTS_INVALID_DATA - Invalid data in installation results", category: ErrorCategory::WindowsUpdate },
250    ErrorCode { code: 0x80243003, description: "WU_E_INSTALLATION_RESULTS_NOT_FOUND - Installation results not found", category: ErrorCategory::WindowsUpdate },
251    ErrorCode { code: 0x80243FFD, description: "WU_E_NON_UI_MODE - Unable to show UI when in non-UI mode", category: ErrorCategory::WindowsUpdate },
252    ErrorCode { code: 0x80243FFE, description: "WU_E_WUCLTUI_UNSUPPORTED_VERSION - Unsupported version of WU client UI", category: ErrorCategory::WindowsUpdate },
253    // WUA SOAP/HTTP errors
254    ErrorCode { code: 0x80244000, description: "WU_E_PT_SOAPCLIENT_BASE - SOAPCLIENT_ERRORs base", category: ErrorCategory::WindowsUpdate },
255    ErrorCode { code: 0x80244001, description: "WU_E_PT_SOAPCLIENT_INITIALIZE - SOAP client initialization failed", category: ErrorCategory::WindowsUpdate },
256    ErrorCode { code: 0x80244002, description: "WU_E_PT_SOAPCLIENT_OUTOFMEMORY - SOAP client out of memory", category: ErrorCategory::WindowsUpdate },
257    ErrorCode { code: 0x80244004, description: "WU_E_PT_SOAPCLIENT_CONNECT - Cannot connect to the server", category: ErrorCategory::WindowsUpdate },
258    ErrorCode { code: 0x80244005, description: "WU_E_PT_SOAPCLIENT_SEND - SOAP message could not be sent", category: ErrorCategory::WindowsUpdate },
259    ErrorCode { code: 0x80244006, description: "WU_E_PT_SOAPCLIENT_SERVER - Server error", category: ErrorCategory::WindowsUpdate },
260    ErrorCode { code: 0x80244007, description: "WU_E_PT_SOAPCLIENT_SOAPFAULT - SOAP fault", category: ErrorCategory::WindowsUpdate },
261    ErrorCode { code: 0x80244010, description: "WU_E_PT_EXCEEDED_MAX_SERVER_TRIPS - The number of round trips to the server exceeded the maximum limit", category: ErrorCategory::WindowsUpdate },
262    ErrorCode { code: 0x80244016, description: "WU_E_PT_HTTP_STATUS_BAD_REQUEST - HTTP 400 - Bad request", category: ErrorCategory::WindowsUpdate },
263    ErrorCode { code: 0x80244017, description: "WU_E_PT_HTTP_STATUS_DENIED - HTTP 401 - Unauthorized", category: ErrorCategory::WindowsUpdate },
264    ErrorCode { code: 0x80244018, description: "WU_E_PT_HTTP_STATUS_FORBIDDEN - HTTP 403 - Forbidden", category: ErrorCategory::WindowsUpdate },
265    ErrorCode { code: 0x80244019, description: "WU_E_PT_HTTP_STATUS_NOT_FOUND - HTTP 404 - Not found", category: ErrorCategory::WindowsUpdate },
266    ErrorCode { code: 0x8024401B, description: "WU_E_PT_HTTP_STATUS_PROXY_AUTH_REQ - HTTP 407 - Proxy auth required", category: ErrorCategory::WindowsUpdate },
267    ErrorCode { code: 0x8024401C, description: "WU_E_PT_HTTP_STATUS_REQUEST_TIMEOUT - HTTP 408 - Request timeout", category: ErrorCategory::WindowsUpdate },
268    ErrorCode { code: 0x80244022, description: "WU_E_PT_HTTP_STATUS_SERVICE_UNAVAIL - HTTP 503 - Service unavailable", category: ErrorCategory::WindowsUpdate },
269    ErrorCode { code: 0x8024402C, description: "WU_E_PT_WINHTTP_NAME_NOT_RESOLVED - WinHTTP name not resolved", category: ErrorCategory::WindowsUpdate },
270    ErrorCode { code: 0x80244FFF, description: "WU_E_PT_UNEXPECTED - Communication error not covered by another WU_E_PT code", category: ErrorCategory::WindowsUpdate },
271    // WUA Automatic Updates
272    ErrorCode { code: 0x8024A000, description: "WU_E_AU_NOSERVICE - Automatic Updates was unable to service incoming requests", category: ErrorCategory::WindowsUpdate },
273    ErrorCode { code: 0x8024A002, description: "WU_E_AU_NONLEGACYSERVER - The old version of the Automatic Updates client has stopped because the WSUS server has been upgraded", category: ErrorCategory::WindowsUpdate },
274    ErrorCode { code: 0x8024A003, description: "WU_E_AU_LEGACYCLIENTDISABLED - The old version of the Automatic Updates client was disabled", category: ErrorCategory::WindowsUpdate },
275    ErrorCode { code: 0x8024A004, description: "WU_E_AU_PAUSED - Automatic Updates was unable to process incoming requests because it was paused", category: ErrorCategory::WindowsUpdate },
276    ErrorCode { code: 0x8024A005, description: "WU_E_AU_NO_REGISTERED_SERVICE - No unmanaged service is registered with AU", category: ErrorCategory::WindowsUpdate },
277    // WU CBS (Component-Based Servicing) errors
278    ErrorCode { code: 0x80245001, description: "WU_E_REDIRECTOR_LOAD_XML - The redirector XML document could not be loaded", category: ErrorCategory::WindowsUpdate },
279    ErrorCode { code: 0x80245002, description: "WU_E_REDIRECTOR_S_FALSE - The redirector XML document is missing some required information", category: ErrorCategory::WindowsUpdate },
280    ErrorCode { code: 0x80245003, description: "WU_E_REDIRECTOR_ID_SMALLER - The redirectorId in the downloaded redirector cab is less than in the cached cab", category: ErrorCategory::WindowsUpdate },
281    ErrorCode { code: 0x80246001, description: "WU_E_DM_URLNOTAVAILABLE - A download manager operation could not be completed because the requested file does not have a URL", category: ErrorCategory::WindowsUpdate },
282    ErrorCode { code: 0x80246002, description: "WU_E_DM_INCORRECTFILEHASH - A download manager operation could not be completed because the file digest was not recognized", category: ErrorCategory::WindowsUpdate },
283    ErrorCode { code: 0x80246003, description: "WU_E_DM_UNKNOWNALGORITHM - A download manager operation could not be completed because the file metadata requested an unrecognized hash algorithm", category: ErrorCategory::WindowsUpdate },
284    ErrorCode { code: 0x80246005, description: "WU_E_DM_NONETWORK - A download manager operation could not be completed because the network connection was unavailable", category: ErrorCategory::WindowsUpdate },
285    ErrorCode { code: 0x80246008, description: "WU_E_DM_FAILTOCONNECTTOBITS - A download manager operation failed because the download manager was unable to connect the Background Intelligent Transfer Service", category: ErrorCategory::WindowsUpdate },
286    ErrorCode { code: 0x80248000, description: "WU_E_DS_SHUTDOWN - An operation failed because Windows Update Agent is shutting down", category: ErrorCategory::WindowsUpdate },
287    ErrorCode { code: 0x80248001, description: "WU_E_DS_INUSE - An operation failed because the data store was in use", category: ErrorCategory::WindowsUpdate },
288    ErrorCode { code: 0x80248002, description: "WU_E_DS_INVALID - The current and expected states of the data store do not match", category: ErrorCategory::WindowsUpdate },
289    ErrorCode { code: 0x80248003, description: "WU_E_DS_TABLEMISSING - The data store is missing a table", category: ErrorCategory::WindowsUpdate },
290    ErrorCode { code: 0x80248004, description: "WU_E_DS_TABLEINCORRECT - The data store contains a table with unexpected columns", category: ErrorCategory::WindowsUpdate },
291    ErrorCode { code: 0x80248005, description: "WU_E_DS_INVALIDTABLENAME - A table could not be opened because the table is not in the data store", category: ErrorCategory::WindowsUpdate },
292    ErrorCode { code: 0x80248007, description: "WU_E_DS_NODATA - The information requested is not in the data store", category: ErrorCategory::WindowsUpdate },
293
294    // ==========================================
295    // BITS (Background Intelligent Transfer Service)
296    // ==========================================
297    ErrorCode { code: 0x80200001, description: "BG_E_NOT_FOUND - The requested job was not found", category: ErrorCategory::Bits },
298    ErrorCode { code: 0x80200002, description: "BG_E_INVALID_STATE - The requested action is not allowed in the current job state", category: ErrorCategory::Bits },
299    ErrorCode { code: 0x80200003, description: "BG_E_EMPTY - The job is empty", category: ErrorCategory::Bits },
300    ErrorCode { code: 0x80200004, description: "BG_E_FILE_NOT_AVAILABLE - The file is not available", category: ErrorCategory::Bits },
301    ErrorCode { code: 0x80200005, description: "BG_E_FILE_NOT_AVAILABLE - A file in the job is not available", category: ErrorCategory::Bits },
302    ErrorCode { code: 0x8020000A, description: "BG_E_TOO_MANY_FILES - No more files can be added to this job", category: ErrorCategory::Bits },
303    ErrorCode { code: 0x8020000B, description: "BG_E_LOCAL_FILE_CHANGED - Local file changed during transfer", category: ErrorCategory::Bits },
304    ErrorCode { code: 0x80200010, description: "BG_E_NETWORK_DISCONNECTED - BITS is unable to contact the server", category: ErrorCategory::Bits },
305    ErrorCode { code: 0x80200011, description: "BG_E_STRING_TOO_LONG - A string parameter was too long", category: ErrorCategory::Bits },
306    ErrorCode { code: 0x80200013, description: "BG_E_INSUFFICIENT_HTTP_SUPPORT - The server does not support the necessary HTTP protocol", category: ErrorCategory::Bits },
307    ErrorCode { code: 0x80200014, description: "BG_E_INSUFFICIENT_RANGE_SUPPORT - The server does not support the necessary HTTP byte range", category: ErrorCategory::Bits },
308    ErrorCode { code: 0x80200015, description: "BG_E_ERROR_INFORMATION_UNAVAILABLE - Error information is not available", category: ErrorCategory::Bits },
309    ErrorCode { code: 0x80200016, description: "BG_E_NETWORK_DISCONNECTED - Network disconnected", category: ErrorCategory::Bits },
310    ErrorCode { code: 0x80200017, description: "BG_E_MISSING_FILE_SIZE - Server did not return the file size", category: ErrorCategory::Bits },
311    ErrorCode { code: 0x80200018, description: "BG_E_INSUFFICIENT_HTTP_SUPPORT - Server does not support HTTP features required for BITS", category: ErrorCategory::Bits },
312    ErrorCode { code: 0x80200019, description: "BG_E_INSUFFICIENT_RANGE_SUPPORT - Server does not support the necessary range protocol", category: ErrorCategory::Bits },
313    ErrorCode { code: 0x80200020, description: "BG_E_CONNECTION_CLOSED - Connection was closed because of a redirect", category: ErrorCategory::Bits },
314    ErrorCode { code: 0x80200022, description: "BG_E_HTTP_ERROR_403 - The server requires HTTP authentication", category: ErrorCategory::Bits },
315    ErrorCode { code: 0x80200023, description: "BG_E_HTTP_ERROR_403 - HTTP 403 Forbidden", category: ErrorCategory::Bits },
316    ErrorCode { code: 0x80200024, description: "BG_E_HTTP_ERROR_404 - HTTP 404 Not Found", category: ErrorCategory::Bits },
317    ErrorCode { code: 0x80200025, description: "BG_E_HTTP_ERROR_407 - HTTP 407 Proxy Authentication Required", category: ErrorCategory::Bits },
318    ErrorCode { code: 0x80200049, description: "BG_E_HTTP_ERROR_503 - HTTP 503 Service Unavailable", category: ErrorCategory::Bits },
319
320    // ==========================================
321    // ConfigMgr / SCCM
322    // ==========================================
323    ErrorCode { code: 0x80040600, description: "CCM_E_CONTENT_NOT_FOUND - Content not found on distribution point", category: ErrorCategory::ConfigMgr },
324    ErrorCode { code: 0x80040601, description: "CCM_E_BAD_SITE_CODE - Invalid site code", category: ErrorCategory::ConfigMgr },
325    ErrorCode { code: 0x80040602, description: "CCM_E_NOT_CONNECTED - Not connected to management point", category: ErrorCategory::ConfigMgr },
326    ErrorCode { code: 0x80040690, description: "CCM_E_NO_MANAGEMENT_POINT - Could not discover management point", category: ErrorCategory::ConfigMgr },
327    ErrorCode { code: 0x80040692, description: "CCM_E_TIMEOUT - CCM operation timed out", category: ErrorCategory::ConfigMgr },
328    ErrorCode { code: 0x80040693, description: "CCM_E_LOW_WUA_VERSION - Low WUA version", category: ErrorCategory::ConfigMgr },
329    ErrorCode { code: 0x80040700, description: "E_UPDDEPLOY_APPLY_NOT_ALLOWED - Install not allowed", category: ErrorCategory::ConfigMgr },
330    ErrorCode { code: 0x80040701, description: "E_UPDDEPLOY_DOWNLOAD_NOT_ALLOWED - Download not allowed", category: ErrorCategory::ConfigMgr },
331    ErrorCode { code: 0x80040702, description: "E_ASSIGNMENT_POLICY_NOT_FOUND - Assignment policy not available", category: ErrorCategory::ConfigMgr },
332    ErrorCode { code: 0x80040703, description: "E_ANOTHER_JOB_IN_PROGRESS - Only one job is allowed at a time", category: ErrorCategory::ConfigMgr },
333    ErrorCode { code: 0x80040704, description: "E_HARDREBOOT_PENDING - Hard reboot pending", category: ErrorCategory::ConfigMgr },
334    ErrorCode { code: 0x80040708, description: "E_UPDDEPLOY_APPLY_NOT_REQUIRED - Software Updates install not required", category: ErrorCategory::ConfigMgr },
335    ErrorCode { code: 0x80041001, description: "WMI_E_FAILED - WMI generic failure", category: ErrorCategory::ConfigMgr },
336    ErrorCode { code: 0x80041002, description: "WMI_E_NOT_FOUND - WMI object not found", category: ErrorCategory::ConfigMgr },
337    ErrorCode { code: 0x80041003, description: "WMI_E_ACCESS_DENIED - WMI access denied", category: ErrorCategory::ConfigMgr },
338    ErrorCode { code: 0x80041006, description: "WMI_E_OUT_OF_MEMORY - WMI out of memory", category: ErrorCategory::ConfigMgr },
339    ErrorCode { code: 0x80041007, description: "SCCM_E_DEPENDENCYNOTMET - Dependency not met", category: ErrorCategory::ConfigMgr },
340    ErrorCode { code: 0x80041010, description: "SCCM_E_INVALIDPROPERTY - Invalid property", category: ErrorCategory::ConfigMgr },
341
342    // ==========================================
343    // Delivery Optimization
344    // ==========================================
345    ErrorCode { code: 0x80D01001, description: "DO_E_DOWNLOAD_NOT_FOUND - Download not found", category: ErrorCategory::DeliveryOpt },
346    ErrorCode { code: 0x80D02002, description: "DO_E_DOWNLOAD_CANCELLED - Download was cancelled", category: ErrorCategory::DeliveryOpt },
347    ErrorCode { code: 0x80D02003, description: "DO_E_UNKNOWN_PROPERTY_ID - Unknown property ID", category: ErrorCategory::DeliveryOpt },
348    ErrorCode { code: 0x80D02004, description: "DO_E_READ_ONLY_PROPERTY - Property is read-only", category: ErrorCategory::DeliveryOpt },
349    ErrorCode { code: 0x80D02005, description: "DO_E_NO_DOWNLOAD_SOURCES - No download sources available", category: ErrorCategory::DeliveryOpt },
350    ErrorCode { code: 0x80D02011, description: "DO_E_BLOCKED_BY_COST_TRANSFER_POLICY - Download blocked by cost transfer policy", category: ErrorCategory::DeliveryOpt },
351    ErrorCode { code: 0x80D06005, description: "DO_E_BLOCKED_BY_POLICY - Download blocked by policy", category: ErrorCategory::DeliveryOpt },
352    ErrorCode { code: 0x80D06802, description: "DO_E_BLOCKED_BY_NO_NETWORK - Download blocked because there is no network", category: ErrorCategory::DeliveryOpt },
353
354    // ==========================================
355    // App Install — MSI exit codes
356    // ==========================================
357    ErrorCode { code: 1601, description: "ERROR_INSTALL_SERVICE_FAILURE - The Windows Installer service could not be accessed", category: ErrorCategory::AppInstall },
358    ErrorCode { code: 1602, description: "ERROR_INSTALL_USEREXIT - The user cancels installation", category: ErrorCategory::AppInstall },
359    ErrorCode { code: 1603, description: "ERROR_INSTALL_FAILURE - Fatal error occurred during installation", category: ErrorCategory::AppInstall },
360    ErrorCode { code: 1604, description: "ERROR_INSTALL_SUSPEND - Installation suspended, incomplete", category: ErrorCategory::AppInstall },
361    ErrorCode { code: 1605, description: "ERROR_UNKNOWN_PRODUCT - This action is only valid for products that are currently installed", category: ErrorCategory::AppInstall },
362    ErrorCode { code: 1606, description: "ERROR_UNKNOWN_FEATURE - Feature ID not registered", category: ErrorCategory::AppInstall },
363    ErrorCode { code: 1607, description: "ERROR_UNKNOWN_COMPONENT - Component ID not registered", category: ErrorCategory::AppInstall },
364    ErrorCode { code: 1608, description: "ERROR_UNKNOWN_PROPERTY - This is an unknown property", category: ErrorCategory::AppInstall },
365    ErrorCode { code: 1609, description: "ERROR_INVALID_HANDLE_STATE - Handle is in an invalid state", category: ErrorCategory::AppInstall },
366    ErrorCode { code: 1610, description: "ERROR_BAD_CONFIGURATION - The configuration data for this product is corrupt", category: ErrorCategory::AppInstall },
367    ErrorCode { code: 1612, description: "ERROR_INSTALL_SOURCE_ABSENT - The installation source for this product is not available", category: ErrorCategory::AppInstall },
368    ErrorCode { code: 1613, description: "ERROR_INSTALL_PACKAGE_VERSION - This installation package cannot be installed by the Windows Installer service", category: ErrorCategory::AppInstall },
369    ErrorCode { code: 1618, description: "ERROR_INSTALL_ALREADY_RUNNING - Another installation is already in progress", category: ErrorCategory::AppInstall },
370    ErrorCode { code: 1619, description: "ERROR_INSTALL_PACKAGE_OPEN_FAILED - This installation package could not be opened", category: ErrorCategory::AppInstall },
371    ErrorCode { code: 1620, description: "ERROR_INSTALL_PACKAGE_INVALID - This installation package could not be opened (invalid package)", category: ErrorCategory::AppInstall },
372    ErrorCode { code: 1621, description: "ERROR_INSTALL_UI_FAILURE - There was an error starting the Windows Installer service user interface", category: ErrorCategory::AppInstall },
373    ErrorCode { code: 1622, description: "ERROR_INSTALL_LOG_FAILURE - Error opening installation log file", category: ErrorCategory::AppInstall },
374    ErrorCode { code: 1623, description: "ERROR_INSTALL_LANGUAGE_UNSUPPORTED - This language of this installation package is not supported by your system", category: ErrorCategory::AppInstall },
375    ErrorCode { code: 1624, description: "ERROR_INSTALL_TRANSFORM_FAILURE - Error applying transforms", category: ErrorCategory::AppInstall },
376    ErrorCode { code: 1625, description: "ERROR_INSTALL_PACKAGE_REJECTED - This installation is forbidden by system policy", category: ErrorCategory::AppInstall },
377    ErrorCode { code: 1626, description: "ERROR_FUNCTION_NOT_CALLED - Function could not be executed", category: ErrorCategory::AppInstall },
378    ErrorCode { code: 1627, description: "ERROR_FUNCTION_FAILED - Function failed during execution", category: ErrorCategory::AppInstall },
379    ErrorCode { code: 1628, description: "ERROR_INVALID_TABLE - Invalid or unknown table specified", category: ErrorCategory::AppInstall },
380    ErrorCode { code: 1629, description: "ERROR_DATATYPE_MISMATCH - Data supplied is of wrong type", category: ErrorCategory::AppInstall },
381    ErrorCode { code: 1630, description: "ERROR_UNSUPPORTED_TYPE - Data of this type is not supported", category: ErrorCategory::AppInstall },
382    ErrorCode { code: 1631, description: "ERROR_CREATE_FAILED - The Windows Installer service failed to start", category: ErrorCategory::AppInstall },
383    ErrorCode { code: 1632, description: "ERROR_INSTALL_TEMP_UNWRITABLE - The Temp folder is either full or inaccessible", category: ErrorCategory::AppInstall },
384    ErrorCode { code: 1633, description: "ERROR_INSTALL_PLATFORM_UNSUPPORTED - This installation package is not supported on this platform", category: ErrorCategory::AppInstall },
385    ErrorCode { code: 1635, description: "ERROR_PATCH_PACKAGE_OPEN_FAILED - This patch package could not be opened", category: ErrorCategory::AppInstall },
386    ErrorCode { code: 1636, description: "ERROR_PATCH_PACKAGE_INVALID - This patch package could not be opened (invalid)", category: ErrorCategory::AppInstall },
387    ErrorCode { code: 1637, description: "ERROR_PATCH_PACKAGE_UNSUPPORTED - This patch package cannot be processed by the Windows Installer service", category: ErrorCategory::AppInstall },
388    ErrorCode { code: 1638, description: "ERROR_PRODUCT_VERSION - Another version of this product is already installed", category: ErrorCategory::AppInstall },
389    ErrorCode { code: 1639, description: "ERROR_INVALID_COMMAND_LINE - Invalid command line argument", category: ErrorCategory::AppInstall },
390    ErrorCode { code: 1640, description: "ERROR_INSTALL_REMOTE_DISALLOWED - Only administrators have permission to add, remove, or configure server software during a Terminal Services remote session", category: ErrorCategory::AppInstall },
391    ErrorCode { code: 1641, description: "ERROR_SUCCESS_REBOOT_INITIATED - The requested operation completed successfully. The system will be restarted", category: ErrorCategory::AppInstall },
392    ErrorCode { code: 3010, description: "ERROR_SUCCESS_REBOOT_REQUIRED - A restart is required to complete the install", category: ErrorCategory::AppInstall },
393    // PSADT exit codes
394    ErrorCode { code: 60001, description: "PSADT_GENERAL_FAILURE - PSADT general failure", category: ErrorCategory::AppInstall },
395    ErrorCode { code: 60002, description: "PSADT_MISSING_FILE - PSADT missing file", category: ErrorCategory::AppInstall },
396    ErrorCode { code: 60003, description: "PSADT_REQUIRES_ADMIN - PSADT requires admin but not elevated", category: ErrorCategory::AppInstall },
397    ErrorCode { code: 60004, description: "PSADT_FAILED_LOAD_ASSEMBLY - PSADT failed to load assembly", category: ErrorCategory::AppInstall },
398    ErrorCode { code: 60005, description: "PSADT_DISPLAY_ERROR - PSADT error displaying installation prompt", category: ErrorCategory::AppInstall },
399    ErrorCode { code: 60007, description: "PSADT_EXPORT_TASK_FAILED - PSADT failed to export scheduled task XML", category: ErrorCategory::AppInstall },
400    ErrorCode { code: 60008, description: "PSADT_MODULE_LOAD_FAILED - PSADT module failed to load", category: ErrorCategory::AppInstall },
401    ErrorCode { code: 60009, description: "PSADT_NO_USER - PSADT no logged-on user detected", category: ErrorCategory::AppInstall },
402    ErrorCode { code: 60012, description: "PSADT_USER_DEFERRED - PSADT user selected defer/postpone", category: ErrorCategory::AppInstall },
403    ErrorCode { code: 70001, description: "PSADT_USER_DECLINED - PSADT user selected No when prompted to close app", category: ErrorCategory::AppInstall },
404    // HRESULT-wrapped MSI/AppInstall errors (from original DB)
405    ErrorCode { code: 0x80070641, description: "ERROR_INSTALL_SERVICE_FAILURE - The Windows Installer Service could not be accessed", category: ErrorCategory::AppInstall },
406    ErrorCode { code: 0x80070642, description: "ERROR_INSTALL_USEREXIT - User cancelled installation", category: ErrorCategory::AppInstall },
407    ErrorCode { code: 0x80070644, description: "ERROR_INSTALL_SUSPEND - Installation suspended", category: ErrorCategory::AppInstall },
408    ErrorCode { code: 0x80070645, description: "ERROR_UNKNOWN_PRODUCT - Unknown product", category: ErrorCategory::AppInstall },
409    ErrorCode { code: 0x80070660, description: "ERROR_INSTALL_REMOTE_DISALLOWED - Remote installations are not allowed", category: ErrorCategory::AppInstall },
410    // MSIX/AppX errors
411    ErrorCode { code: 0x80073CF0, description: "ERROR_INSTALL_OPEN_PACKAGE_FAILED - The package could not be opened", category: ErrorCategory::AppInstall },
412    ErrorCode { code: 0x80073CF3, description: "ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED - Package failed dependency validation", category: ErrorCategory::AppInstall },
413    ErrorCode { code: 0x80073CF6, description: "ERROR_INSTALL_OUT_OF_DISK_SPACE - Not enough disk space for package", category: ErrorCategory::AppInstall },
414    ErrorCode { code: 0x80073CF9, description: "ERROR_INSTALL_CANCEL - Package installation was canceled", category: ErrorCategory::AppInstall },
415    ErrorCode { code: 0x80073CFB, description: "ERROR_INSTALL_FAILED - Package already installed, reinstallation blocked", category: ErrorCategory::AppInstall },
416    ErrorCode { code: 0x80073CFF, description: "ERROR_INSTALL_POLICY_FAILURE - To install this app, sideloading must be enabled", category: ErrorCategory::AppInstall },
417    ErrorCode { code: 0x80073D02, description: "ERROR_INSTALL_PREREQUISITE_FAILED - Package prerequisites not met", category: ErrorCategory::AppInstall },
418    ErrorCode { code: 0x80073D06, description: "ERROR_PACKAGES_IN_USE - Package in use, cannot update", category: ErrorCategory::AppInstall },
419    ErrorCode { code: 0x80073D0A, description: "ERROR_DEPLOYMENT_BLOCKED_BY_POLICY - Deployment blocked by policy", category: ErrorCategory::AppInstall },
420    // WinGet
421    ErrorCode { code: 0x8A150001, description: "APPINSTALLER_CLI_ERROR_INTERNAL - Internal error", category: ErrorCategory::AppInstall },
422    ErrorCode { code: 0x8A150002, description: "APPINSTALLER_CLI_ERROR_INVALID_CL - Invalid command line", category: ErrorCategory::AppInstall },
423    ErrorCode { code: 0x8A150003, description: "APPINSTALLER_CLI_ERROR_COMMAND_FAILED - Command failed", category: ErrorCategory::AppInstall },
424    ErrorCode { code: 0x8A150014, description: "APPINSTALLER_CLI_ERROR_NO_APPLICABLE_INSTALLER - No applicable installer found", category: ErrorCategory::AppInstall },
425
426    // ==========================================
427    // Windows Installer (MSI) error codes 1000-3010
428    // ==========================================
429    ErrorCode { code: 1101, description: "MSI 1101 - Could not open file stream", category: ErrorCategory::Msi },
430    ErrorCode { code: 1259, description: "MSI 1259 - This error code is not available", category: ErrorCategory::Msi },
431    ErrorCode { code: 1301, description: "MSI 1301 - Cannot create the file. A directory with this name already exists", category: ErrorCategory::Msi },
432    ErrorCode { code: 1302, description: "MSI 1302 - Please insert the disk", category: ErrorCategory::Msi },
433    ErrorCode { code: 1303, description: "MSI 1303 - The Installer has insufficient privileges to access this directory", category: ErrorCategory::Msi },
434    ErrorCode { code: 1304, description: "MSI 1304 - Error writing to file", category: ErrorCategory::Msi },
435    ErrorCode { code: 1305, description: "MSI 1305 - Error reading from file. Verify that the file exists and that you can access it", category: ErrorCategory::Msi },
436    ErrorCode { code: 1306, description: "MSI 1306 - Another application has exclusive access to the file. Please shut down all other applications", category: ErrorCategory::Msi },
437    ErrorCode { code: 1307, description: "MSI 1307 - There is not enough disk space remaining to install this file", category: ErrorCategory::Msi },
438    ErrorCode { code: 1308, description: "MSI 1308 - Source file not found", category: ErrorCategory::Msi },
439    ErrorCode { code: 1309, description: "MSI 1309 - Error attempting to read from the source install database", category: ErrorCategory::Msi },
440    ErrorCode { code: 1310, description: "MSI 1310 - Error attempting to create the destination file", category: ErrorCategory::Msi },
441    ErrorCode { code: 1311, description: "MSI 1311 - Could not locate source file cabinet", category: ErrorCategory::Msi },
442    ErrorCode { code: 1312, description: "MSI 1312 - Cannot create the directory. A file with this name already exists", category: ErrorCategory::Msi },
443    ErrorCode { code: 1313, description: "MSI 1313 - The volume does not contain a recognized file system", category: ErrorCategory::Msi },
444    ErrorCode { code: 1314, description: "MSI 1314 - The specified path is unavailable", category: ErrorCategory::Msi },
445    ErrorCode { code: 1315, description: "MSI 1315 - Unable to write to the specified folder", category: ErrorCategory::Msi },
446    ErrorCode { code: 1316, description: "MSI 1316 - A network error occurred while attempting to read from the file", category: ErrorCategory::Msi },
447    ErrorCode { code: 1317, description: "MSI 1317 - An error occurred while attempting to create the directory", category: ErrorCategory::Msi },
448    ErrorCode { code: 1318, description: "MSI 1318 - A network error occurred while attempting to create the directory", category: ErrorCategory::Msi },
449    ErrorCode { code: 1319, description: "MSI 1319 - A network error occurred while attempting to open the source file cabinet", category: ErrorCategory::Msi },
450    ErrorCode { code: 1320, description: "MSI 1320 - The specified path is too long", category: ErrorCategory::Msi },
451    ErrorCode { code: 1321, description: "MSI 1321 - The Installer has insufficient privileges to modify this file", category: ErrorCategory::Msi },
452    ErrorCode { code: 1322, description: "MSI 1322 - A portion of the folder path is invalid. It is either empty or exceeds the length allowed", category: ErrorCategory::Msi },
453    ErrorCode { code: 1323, description: "MSI 1323 - The folder path contains words that are not valid in folder paths", category: ErrorCategory::Msi },
454    ErrorCode { code: 1324, description: "MSI 1324 - The folder path contains an invalid character", category: ErrorCategory::Msi },
455    ErrorCode { code: 1325, description: "MSI 1325 - No items were found that match the search criteria", category: ErrorCategory::Msi },
456    ErrorCode { code: 1326, description: "MSI 1326 - The file cannot be installed because the file is protected by Windows File Protection", category: ErrorCategory::Msi },
457    ErrorCode { code: 1327, description: "MSI 1327 - Invalid Drive", category: ErrorCategory::Msi },
458    ErrorCode { code: 1328, description: "MSI 1328 - Error applying patch to file", category: ErrorCategory::Msi },
459    ErrorCode { code: 1329, description: "MSI 1329 - A file that is required cannot be installed because the cabinet file is not digitally signed", category: ErrorCategory::Msi },
460    ErrorCode { code: 1330, description: "MSI 1330 - A file that is required cannot be installed because the cabinet file has an invalid digital signature", category: ErrorCategory::Msi },
461    ErrorCode { code: 1331, description: "MSI 1331 - Cannot correctly copy a file. The file may be corrupt", category: ErrorCategory::Msi },
462    ErrorCode { code: 1332, description: "MSI 1332 - Could not initialize cabinet file server. The required file may be missing", category: ErrorCategory::Msi },
463    ErrorCode { code: 1333, description: "MSI 1333 - Cannot correctly copy a file. The cabinet file signature may be invalid", category: ErrorCategory::Msi },
464    ErrorCode { code: 1334, description: "MSI 1334 - Cannot install required file. Check that the cabinet file exists and is accessible", category: ErrorCategory::Msi },
465    ErrorCode { code: 1335, description: "MSI 1335 - The cabinet file required for this installation is corrupt and cannot be used", category: ErrorCategory::Msi },
466    ErrorCode { code: 1336, description: "MSI 1336 - Could not create a temporary file that is needed to complete this installation", category: ErrorCategory::Msi },
467    ErrorCode { code: 1401, description: "MSI 1401 - Could not create registry key", category: ErrorCategory::Msi },
468    ErrorCode { code: 1402, description: "MSI 1402 - Could not open registry key", category: ErrorCategory::Msi },
469    ErrorCode { code: 1403, description: "MSI 1403 - Could not delete registry value", category: ErrorCategory::Msi },
470    ErrorCode { code: 1404, description: "MSI 1404 - Could not delete registry key", category: ErrorCategory::Msi },
471    ErrorCode { code: 1405, description: "MSI 1405 - Could not read registry value", category: ErrorCategory::Msi },
472    ErrorCode { code: 1406, description: "MSI 1406 - Could not write registry value", category: ErrorCategory::Msi },
473    ErrorCode { code: 1407, description: "MSI 1407 - Could not get value names for registry key", category: ErrorCategory::Msi },
474    ErrorCode { code: 1408, description: "MSI 1408 - Could not get sub key names for registry key", category: ErrorCategory::Msi },
475    ErrorCode { code: 1409, description: "MSI 1409 - Could not read security information for registry key", category: ErrorCategory::Msi },
476    ErrorCode { code: 1410, description: "MSI 1410 - Could not increase the available registry space", category: ErrorCategory::Msi },
477    ErrorCode { code: 1500, description: "MSI 1500 - Another installation is in progress. Complete that installation before proceeding", category: ErrorCategory::Msi },
478    ErrorCode { code: 1501, description: "MSI 1501 - Error accessing secured data. Please make sure the Windows Installer is configured correctly", category: ErrorCategory::Msi },
479    ErrorCode { code: 1502, description: "MSI 1502 - User cancelled installation", category: ErrorCategory::Msi },
480    ErrorCode { code: 1503, description: "MSI 1503 - The Rules Manager could not perform a rules evaluation operation", category: ErrorCategory::Msi },
481    ErrorCode { code: 1611, description: "MSI 1611 - Component qualifier not present", category: ErrorCategory::Msi },
482    ErrorCode { code: 1614, description: "MSI 1614 - Product is uninstalled", category: ErrorCategory::Msi },
483    ErrorCode { code: 1615, description: "MSI 1615 - SQL query syntax invalid or unsupported", category: ErrorCategory::Msi },
484    ErrorCode { code: 1616, description: "MSI 1616 - Record field does not exist", category: ErrorCategory::Msi },
485    ErrorCode { code: 1634, description: "MSI 1634 - Component not used on this computer", category: ErrorCategory::Msi },
486    ErrorCode { code: 1642, description: "MSI 1642 - The installer cannot install the upgrade patch because the program is not installed", category: ErrorCategory::Msi },
487    ErrorCode { code: 1643, description: "MSI 1643 - The patch package is not permitted by software restriction policy", category: ErrorCategory::Msi },
488    ErrorCode { code: 1644, description: "MSI 1644 - One or more customizations are not permitted by software restriction policy", category: ErrorCategory::Msi },
489    ErrorCode { code: 1645, description: "MSI 1645 - Windows Installer does not permit installation from a Remote Desktop Connection", category: ErrorCategory::Msi },
490    ErrorCode { code: 1646, description: "MSI 1646 - The patch is not applied to the product", category: ErrorCategory::Msi },
491    ErrorCode { code: 1647, description: "MSI 1647 - The patch package is invalid", category: ErrorCategory::Msi },
492    ErrorCode { code: 1648, description: "MSI 1648 - No valid sequence could be found for the set of patches", category: ErrorCategory::Msi },
493    ErrorCode { code: 1649, description: "MSI 1649 - Patch removal disallowed by policy", category: ErrorCategory::Msi },
494    ErrorCode { code: 1650, description: "MSI 1650 - The XML patch data is invalid", category: ErrorCategory::Msi },
495    ErrorCode { code: 1651, description: "MSI 1651 - Administrative user failed to apply patch for a per-user managed or a per-machine application", category: ErrorCategory::Msi },
496    ErrorCode { code: 1652, description: "MSI 1652 - Windows Installer is not accessible when the computer is in Safe Mode", category: ErrorCategory::Msi },
497    ErrorCode { code: 1653, description: "MSI 1653 - Could not perform a multiple-package transaction because rollback has been disabled", category: ErrorCategory::Msi },
498    ErrorCode { code: 1654, description: "MSI 1654 - The app that you are trying to run is not supported on this version of Windows", category: ErrorCategory::Msi },
499    ErrorCode { code: 1701, description: "MSI 1701 - The key path is not valid", category: ErrorCategory::Msi },
500    ErrorCode { code: 1702, description: "MSI 1702 - The Installer must restart your system before configuration can continue", category: ErrorCategory::Msi },
501    ErrorCode { code: 1703, description: "MSI 1703 - You must restart your system for the configuration changes to take effect", category: ErrorCategory::Msi },
502    ErrorCode { code: 1704, description: "MSI 1704 - An install for the product is currently suspended", category: ErrorCategory::Msi },
503    ErrorCode { code: 1705, description: "MSI 1705 - An installation for this product is already in progress", category: ErrorCategory::Msi },
504    ErrorCode { code: 1706, description: "MSI 1706 - No valid source could be found for product", category: ErrorCategory::Msi },
505    ErrorCode { code: 1707, description: "MSI 1707 - Installation operation completed successfully", category: ErrorCategory::Msi },
506    ErrorCode { code: 1708, description: "MSI 1708 - Installation operation failed", category: ErrorCategory::Msi },
507    ErrorCode { code: 1709, description: "MSI 1709 - Product not found", category: ErrorCategory::Msi },
508    ErrorCode { code: 1710, description: "MSI 1710 - Configuration of product failed", category: ErrorCategory::Msi },
509    ErrorCode { code: 1711, description: "MSI 1711 - Component not found", category: ErrorCategory::Msi },
510    ErrorCode { code: 1712, description: "MSI 1712 - The source installation database is corrupted", category: ErrorCategory::Msi },
511    ErrorCode { code: 1713, description: "MSI 1713 - The install data is corrupt", category: ErrorCategory::Msi },
512    ErrorCode { code: 1714, description: "MSI 1714 - The older version of the product cannot be removed", category: ErrorCategory::Msi },
513    ErrorCode { code: 1715, description: "MSI 1715 - The path is not valid", category: ErrorCategory::Msi },
514    ErrorCode { code: 1716, description: "MSI 1716 - Not enough disk space", category: ErrorCategory::Msi },
515    ErrorCode { code: 1717, description: "MSI 1717 - Source is not available for installation", category: ErrorCategory::Msi },
516    ErrorCode { code: 1718, description: "MSI 1718 - A newer version of the product is already installed", category: ErrorCategory::Msi },
517    ErrorCode { code: 1719, description: "MSI 1719 - Windows Installer service could not be accessed", category: ErrorCategory::Msi },
518    ErrorCode { code: 1720, description: "MSI 1720 - There is a problem with the Windows Installer package script", category: ErrorCategory::Msi },
519    ErrorCode { code: 1721, description: "MSI 1721 - There is a problem with the Windows Installer package. A DLL required for installation could not be run", category: ErrorCategory::Msi },
520    ErrorCode { code: 1722, description: "MSI 1722 - There is a problem with this Windows Installer package. A script required for this install to complete could not be run", category: ErrorCategory::Msi },
521    ErrorCode { code: 1723, description: "MSI 1723 - There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run", category: ErrorCategory::Msi },
522    ErrorCode { code: 1724, description: "MSI 1724 - Removal completed successfully", category: ErrorCategory::Msi },
523    ErrorCode { code: 1725, description: "MSI 1725 - Removal failed", category: ErrorCategory::Msi },
524    ErrorCode { code: 1726, description: "MSI 1726 - Advertisement completed successfully", category: ErrorCategory::Msi },
525    ErrorCode { code: 1727, description: "MSI 1727 - Advertisement failed", category: ErrorCategory::Msi },
526    ErrorCode { code: 1728, description: "MSI 1728 - Configuration completed successfully", category: ErrorCategory::Msi },
527    ErrorCode { code: 1729, description: "MSI 1729 - Configuration failed", category: ErrorCategory::Msi },
528    ErrorCode { code: 1730, description: "MSI 1730 - You must be an Administrator to remove this application", category: ErrorCategory::Msi },
529    ErrorCode { code: 1801, description: "MSI 1801 - The path is not valid", category: ErrorCategory::Msi },
530    ErrorCode { code: 1802, description: "MSI 1802 - Out of memory. Shut down other applications before retrying", category: ErrorCategory::Msi },
531    ErrorCode { code: 1803, description: "MSI 1803 - There is no disk in drive. Please insert one and click Retry", category: ErrorCategory::Msi },
532    ErrorCode { code: 1804, description: "MSI 1804 - Access denied", category: ErrorCategory::Msi },
533    ErrorCode { code: 1805, description: "MSI 1805 - The folder does not exist", category: ErrorCategory::Msi },
534    ErrorCode { code: 1806, description: "MSI 1806 - There is not enough disk space to complete the installation", category: ErrorCategory::Msi },
535    ErrorCode { code: 1901, description: "MSI 1901 - Error attempting to read from the source install database", category: ErrorCategory::Msi },
536    ErrorCode { code: 1902, description: "MSI 1902 - Scheduling reboot operation: Renaming file", category: ErrorCategory::Msi },
537    ErrorCode { code: 1903, description: "MSI 1903 - Scheduling reboot operation: Deleting file", category: ErrorCategory::Msi },
538    ErrorCode { code: 1904, description: "MSI 1904 - Module failed to register (HRESULT)", category: ErrorCategory::Msi },
539    ErrorCode { code: 1905, description: "MSI 1905 - Module failed to unregister (HRESULT)", category: ErrorCategory::Msi },
540    ErrorCode { code: 1906, description: "MSI 1906 - Failed to cache package", category: ErrorCategory::Msi },
541    ErrorCode { code: 1907, description: "MSI 1907 - Could not register font", category: ErrorCategory::Msi },
542    ErrorCode { code: 1908, description: "MSI 1908 - Could not unregister font", category: ErrorCategory::Msi },
543    ErrorCode { code: 1909, description: "MSI 1909 - Could not create shortcut", category: ErrorCategory::Msi },
544    ErrorCode { code: 1910, description: "MSI 1910 - Could not remove shortcut", category: ErrorCategory::Msi },
545    ErrorCode { code: 1911, description: "MSI 1911 - Could not register type library for file", category: ErrorCategory::Msi },
546    ErrorCode { code: 1912, description: "MSI 1912 - Could not unregister type library for file", category: ErrorCategory::Msi },
547    ErrorCode { code: 1913, description: "MSI 1913 - Could not update INI file", category: ErrorCategory::Msi },
548    ErrorCode { code: 1914, description: "MSI 1914 - Could not schedule file to replace on reboot", category: ErrorCategory::Msi },
549    ErrorCode { code: 1915, description: "MSI 1915 - Error removing ODBC driver manager, ODBC error", category: ErrorCategory::Msi },
550    ErrorCode { code: 1916, description: "MSI 1916 - Error installing ODBC driver manager, ODBC error", category: ErrorCategory::Msi },
551    ErrorCode { code: 1917, description: "MSI 1917 - Error removing ODBC driver, ODBC error", category: ErrorCategory::Msi },
552    ErrorCode { code: 1918, description: "MSI 1918 - Error installing ODBC driver, ODBC error", category: ErrorCategory::Msi },
553    ErrorCode { code: 1919, description: "MSI 1919 - Error configuring ODBC data source, ODBC error", category: ErrorCategory::Msi },
554    ErrorCode { code: 1920, description: "MSI 1920 - Service failed to start. Verify that you have sufficient privileges", category: ErrorCategory::Msi },
555    ErrorCode { code: 1921, description: "MSI 1921 - Service could not be stopped. Verify that you have sufficient privileges", category: ErrorCategory::Msi },
556    ErrorCode { code: 1922, description: "MSI 1922 - Service could not be deleted. Verify that you have sufficient privileges", category: ErrorCategory::Msi },
557    ErrorCode { code: 1923, description: "MSI 1923 - Service could not be installed. Verify that you have sufficient privileges", category: ErrorCategory::Msi },
558    ErrorCode { code: 1924, description: "MSI 1924 - Could not update environment variable", category: ErrorCategory::Msi },
559    ErrorCode { code: 1925, description: "MSI 1925 - You do not have sufficient privileges to complete this installation for all users", category: ErrorCategory::Msi },
560    ErrorCode { code: 1926, description: "MSI 1926 - Could not set file security", category: ErrorCategory::Msi },
561    ErrorCode { code: 1927, description: "MSI 1927 - Component Services (COM+) is not installed on this computer", category: ErrorCategory::Msi },
562    ErrorCode { code: 1928, description: "MSI 1928 - Error registering COM+ application", category: ErrorCategory::Msi },
563    ErrorCode { code: 1929, description: "MSI 1929 - Error unregistering COM+ application", category: ErrorCategory::Msi },
564    ErrorCode { code: 1930, description: "MSI 1930 - Could not change the font description for file", category: ErrorCategory::Msi },
565    ErrorCode { code: 1931, description: "MSI 1931 - Could not validate digital signature for cabinet file", category: ErrorCategory::Msi },
566    ErrorCode { code: 1932, description: "MSI 1932 - The Windows Installer does not permit installation from a Remote Desktop Connection", category: ErrorCategory::Msi },
567    ErrorCode { code: 1933, description: "MSI 1933 - An install for the product failed. Contact your support personnel", category: ErrorCategory::Msi },
568    ErrorCode { code: 1934, description: "MSI 1934 - Windows Installer cannot install a system restart manager", category: ErrorCategory::Msi },
569    ErrorCode { code: 1935, description: "MSI 1935 - An error occurred during the installation of assembly", category: ErrorCategory::Msi },
570
571    // MSI internal errors (2000-2999)
572    ErrorCode { code: 2101, description: "MSI 2101 - Shortcuts not supported by the operating system", category: ErrorCategory::Msi },
573    ErrorCode { code: 2102, description: "MSI 2102 - Invalid .ini action", category: ErrorCategory::Msi },
574    ErrorCode { code: 2103, description: "MSI 2103 - Could not resolve path for shell folder", category: ErrorCategory::Msi },
575    ErrorCode { code: 2104, description: "MSI 2104 - Writing .ini file: mode flag out of range", category: ErrorCategory::Msi },
576    ErrorCode { code: 2105, description: "MSI 2105 - Could not create a critical item needed to complete the install", category: ErrorCategory::Msi },
577    ErrorCode { code: 2106, description: "MSI 2106 - CreateProcess failed, attempting to apply application compatibility fixes", category: ErrorCategory::Msi },
578    ErrorCode { code: 2107, description: "MSI 2107 - The Installer has encountered an unexpected error installing this package", category: ErrorCategory::Msi },
579    ErrorCode { code: 2108, description: "MSI 2108 - No transform matching criteria found", category: ErrorCategory::Msi },
580    ErrorCode { code: 2109, description: "MSI 2109 - Transform rejected", category: ErrorCategory::Msi },
581    ErrorCode { code: 2110, description: "MSI 2110 - Unexpected install message", category: ErrorCategory::Msi },
582    ErrorCode { code: 2111, description: "MSI 2111 - Exception was thrown by custom action", category: ErrorCategory::Msi },
583    ErrorCode { code: 2112, description: "MSI 2112 - Error in running detection manager", category: ErrorCategory::Msi },
584    ErrorCode { code: 2113, description: "MSI 2113 - Uninitialized data", category: ErrorCategory::Msi },
585    ErrorCode { code: 2200, description: "MSI 2200 - Database: memory error", category: ErrorCategory::Msi },
586    ErrorCode { code: 2201, description: "MSI 2201 - Database: invalid persistence mode", category: ErrorCategory::Msi },
587    ErrorCode { code: 2202, description: "MSI 2202 - Database: table already exists", category: ErrorCategory::Msi },
588    ErrorCode { code: 2203, description: "MSI 2203 - Database: error opening file", category: ErrorCategory::Msi },
589    ErrorCode { code: 2204, description: "MSI 2204 - Database: table does not exist", category: ErrorCategory::Msi },
590    ErrorCode { code: 2205, description: "MSI 2205 - Database: table does not exist", category: ErrorCategory::Msi },
591    ErrorCode { code: 2206, description: "MSI 2206 - Database: error opening view", category: ErrorCategory::Msi },
592    ErrorCode { code: 2207, description: "MSI 2207 - Database: invalid fetch request", category: ErrorCategory::Msi },
593    ErrorCode { code: 2208, description: "MSI 2208 - Database: out of data", category: ErrorCategory::Msi },
594    ErrorCode { code: 2209, description: "MSI 2209 - Database: string too long", category: ErrorCategory::Msi },
595    ErrorCode { code: 2210, description: "MSI 2210 - Database: key not matching", category: ErrorCategory::Msi },
596    ErrorCode { code: 2211, description: "MSI 2211 - Database: data not ready", category: ErrorCategory::Msi },
597    ErrorCode { code: 2212, description: "MSI 2212 - Database: record not matching", category: ErrorCategory::Msi },
598    ErrorCode { code: 2213, description: "MSI 2213 - Database: initialization error", category: ErrorCategory::Msi },
599    ErrorCode { code: 2214, description: "MSI 2214 - Database: invalid table", category: ErrorCategory::Msi },
600    ErrorCode { code: 2215, description: "MSI 2215 - Database: invalid row", category: ErrorCategory::Msi },
601    ErrorCode { code: 2216, description: "MSI 2216 - Database: invalid field", category: ErrorCategory::Msi },
602    ErrorCode { code: 2217, description: "MSI 2217 - Database: invalid column", category: ErrorCategory::Msi },
603    ErrorCode { code: 2218, description: "MSI 2218 - Database: error in SQL query", category: ErrorCategory::Msi },
604    ErrorCode { code: 2219, description: "MSI 2219 - Database: record too large", category: ErrorCategory::Msi },
605    ErrorCode { code: 2220, description: "MSI 2220 - Database: information exceeds allocated space", category: ErrorCategory::Msi },
606    ErrorCode { code: 2221, description: "MSI 2221 - Database: invalid modify request", category: ErrorCategory::Msi },
607    ErrorCode { code: 2222, description: "MSI 2222 - Database: modify failed constraint", category: ErrorCategory::Msi },
608    ErrorCode { code: 2223, description: "MSI 2223 - Database: modify operation failed", category: ErrorCategory::Msi },
609    ErrorCode { code: 2224, description: "MSI 2224 - Database: view drop failed", category: ErrorCategory::Msi },
610    ErrorCode { code: 2225, description: "MSI 2225 - Database: invalid state", category: ErrorCategory::Msi },
611    ErrorCode { code: 2226, description: "MSI 2226 - Database: create failed — database already exists", category: ErrorCategory::Msi },
612    ErrorCode { code: 2227, description: "MSI 2227 - Database: invalid table definition", category: ErrorCategory::Msi },
613    ErrorCode { code: 2228, description: "MSI 2228 - Database: invalid column definition", category: ErrorCategory::Msi },
614    ErrorCode { code: 2229, description: "MSI 2229 - Database: table is read-only", category: ErrorCategory::Msi },
615    ErrorCode { code: 2230, description: "MSI 2230 - Database: error writing export file", category: ErrorCategory::Msi },
616    ErrorCode { code: 2231, description: "MSI 2231 - Database: error reading import file", category: ErrorCategory::Msi },
617    ErrorCode { code: 2232, description: "MSI 2232 - Database: merge failed — table schema mismatch", category: ErrorCategory::Msi },
618    ErrorCode { code: 2501, description: "MSI 2501 - Could not create rollback script enumerator", category: ErrorCategory::Msi },
619    ErrorCode { code: 2502, description: "MSI 2502 - Called InstallFinalize when no install in progress", category: ErrorCategory::Msi },
620    ErrorCode { code: 2503, description: "MSI 2503 - Called RunScript when not marked in progress", category: ErrorCategory::Msi },
621    ErrorCode { code: 2504, description: "MSI 2504 - Installer internal error: called Install on a session that is already in install mode", category: ErrorCategory::Msi },
622    ErrorCode { code: 2505, description: "MSI 2505 - Installer internal error: called Finish on a session that is not in install mode", category: ErrorCategory::Msi },
623    ErrorCode { code: 2506, description: "MSI 2506 - Cannot find table in SQL query", category: ErrorCategory::Msi },
624    ErrorCode { code: 2507, description: "MSI 2507 - Installer could not access or create the rollback directory", category: ErrorCategory::Msi },
625    ErrorCode { code: 2508, description: "MSI 2508 - Rollback disabled", category: ErrorCategory::Msi },
626    ErrorCode { code: 2509, description: "MSI 2509 - Rollback install not supported", category: ErrorCategory::Msi },
627    ErrorCode { code: 2510, description: "MSI 2510 - Error waiting for patch thread", category: ErrorCategory::Msi },
628    ErrorCode { code: 2511, description: "MSI 2511 - Stored rollback script", category: ErrorCategory::Msi },
629    ErrorCode { code: 2601, description: "MSI 2601 - Invalid value for property", category: ErrorCategory::Msi },
630    ErrorCode { code: 2602, description: "MSI 2602 - The product is already registered", category: ErrorCategory::Msi },
631    ErrorCode { code: 2603, description: "MSI 2603 - The product is not registered", category: ErrorCategory::Msi },
632    ErrorCode { code: 2604, description: "MSI 2604 - Unknown table", category: ErrorCategory::Msi },
633    ErrorCode { code: 2605, description: "MSI 2605 - Invalid data in row", category: ErrorCategory::Msi },
634    ErrorCode { code: 2606, description: "MSI 2606 - Could not add row", category: ErrorCategory::Msi },
635    ErrorCode { code: 2607, description: "MSI 2607 - Installation script corrupt", category: ErrorCategory::Msi },
636    ErrorCode { code: 2608, description: "MSI 2608 - Could not register script", category: ErrorCategory::Msi },
637    ErrorCode { code: 2609, description: "MSI 2609 - Could not unregister script", category: ErrorCategory::Msi },
638    ErrorCode { code: 2611, description: "MSI 2611 - Installation script missing from install package", category: ErrorCategory::Msi },
639    ErrorCode { code: 2612, description: "MSI 2612 - Installation script from package could not be obtained", category: ErrorCategory::Msi },
640    ErrorCode { code: 2613, description: "MSI 2613 - Invalid string length for table column", category: ErrorCategory::Msi },
641    ErrorCode { code: 2614, description: "MSI 2614 - Column with this name already exists", category: ErrorCategory::Msi },
642    ErrorCode { code: 2615, description: "MSI 2615 - The table was not altered", category: ErrorCategory::Msi },
643    ErrorCode { code: 2616, description: "MSI 2616 - Error getting disk free space", category: ErrorCategory::Msi },
644    ErrorCode { code: 2701, description: "MSI 2701 - The depth of a feature exceeds the acceptable limit of", category: ErrorCategory::Msi },
645    ErrorCode { code: 2702, description: "MSI 2702 - A Feature table record was not found for the requested feature", category: ErrorCategory::Msi },
646    ErrorCode { code: 2703, description: "MSI 2703 - Called MoveData when not at install state", category: ErrorCategory::Msi },
647    ErrorCode { code: 2704, description: "MSI 2704 - Undefined property in the Condition column of the LaunchCondition table", category: ErrorCategory::Msi },
648    ErrorCode { code: 2705, description: "MSI 2705 - Invalid table. A required column is missing from the table", category: ErrorCategory::Msi },
649    ErrorCode { code: 2706, description: "MSI 2706 - New upgrade feature not found in Feature table", category: ErrorCategory::Msi },
650    ErrorCode { code: 2707, description: "MSI 2707 - Duplicate component found in Component table", category: ErrorCategory::Msi },
651    ErrorCode { code: 2708, description: "MSI 2708 - Missing component in Component table", category: ErrorCategory::Msi },
652    ErrorCode { code: 2709, description: "MSI 2709 - Service name already in ServiceInstall table", category: ErrorCategory::Msi },
653    ErrorCode { code: 2710, description: "MSI 2710 - The property does not exist in the Property table", category: ErrorCategory::Msi },
654    ErrorCode { code: 2711, description: "MSI 2711 - The features in this product have not been completed", category: ErrorCategory::Msi },
655    ErrorCode { code: 2712, description: "MSI 2712 - Invalid handle for file", category: ErrorCategory::Msi },
656    ErrorCode { code: 2713, description: "MSI 2713 - Missing package name for product code", category: ErrorCategory::Msi },
657    ErrorCode { code: 2714, description: "MSI 2714 - File key not found in File table", category: ErrorCategory::Msi },
658    ErrorCode { code: 2715, description: "MSI 2715 - Missing patch info for registered product", category: ErrorCategory::Msi },
659    ErrorCode { code: 2716, description: "MSI 2716 - Source media info not found", category: ErrorCategory::Msi },
660    ErrorCode { code: 2717, description: "MSI 2717 - Invalid DiskId in Media table", category: ErrorCategory::Msi },
661    ErrorCode { code: 2718, description: "MSI 2718 - Missing file in assembly table", category: ErrorCategory::Msi },
662    ErrorCode { code: 2719, description: "MSI 2719 - Invalid assembly transform filter", category: ErrorCategory::Msi },
663    ErrorCode { code: 2720, description: "MSI 2720 - Could not determine publishing root", category: ErrorCategory::Msi },
664    ErrorCode { code: 2721, description: "MSI 2721 - Could not unpin assembly from cache", category: ErrorCategory::Msi },
665    ErrorCode { code: 2722, description: "MSI 2722 - Could not find the requested assembly in the side-by-side assembly cache", category: ErrorCategory::Msi },
666    ErrorCode { code: 2723, description: "MSI 2723 - Assembly name missing from AssemblyName table", category: ErrorCategory::Msi },
667    ErrorCode { code: 2724, description: "MSI 2724 - File key not found in File table for assembly", category: ErrorCategory::Msi },
668    ErrorCode { code: 2725, description: "MSI 2725 - Source file cabinet not found for assembly", category: ErrorCategory::Msi },
669    ErrorCode { code: 2726, description: "MSI 2726 - Invalid GUID format for registered product", category: ErrorCategory::Msi },
670    ErrorCode { code: 2727, description: "MSI 2727 - Invalid GUID format for registered feature", category: ErrorCategory::Msi },
671    ErrorCode { code: 2728, description: "MSI 2728 - Invalid GUID format for registered component", category: ErrorCategory::Msi },
672    ErrorCode { code: 2729, description: "MSI 2729 - Property Manager not initialized", category: ErrorCategory::Msi },
673    ErrorCode { code: 2730, description: "MSI 2730 - The server returned an unexpected error trying to install this package", category: ErrorCategory::Msi },
674    ErrorCode { code: 2731, description: "MSI 2731 - Selection Manager not initialized", category: ErrorCategory::Msi },
675    ErrorCode { code: 2732, description: "MSI 2732 - Directory Manager not initialized", category: ErrorCategory::Msi },
676    ErrorCode { code: 2733, description: "MSI 2733 - Bad foreign key in table", category: ErrorCategory::Msi },
677    ErrorCode { code: 2734, description: "MSI 2734 - Invalid reinstall mode", category: ErrorCategory::Msi },
678    ErrorCode { code: 2735, description: "MSI 2735 - Custom action has no DLL or EXE listed in Binary table", category: ErrorCategory::Msi },
679    ErrorCode { code: 2736, description: "MSI 2736 - Custom action name not found in CustomAction table", category: ErrorCategory::Msi },
680    ErrorCode { code: 2737, description: "MSI 2737 - Could not access custom action DLL", category: ErrorCategory::Msi },
681    ErrorCode { code: 2738, description: "MSI 2738 - Could not access VBScript runtime for custom action", category: ErrorCategory::Msi },
682    ErrorCode { code: 2739, description: "MSI 2739 - Could not access JScript runtime for custom action", category: ErrorCategory::Msi },
683    ErrorCode { code: 2740, description: "MSI 2740 - Custom action attempted to call a function not present", category: ErrorCategory::Msi },
684    ErrorCode { code: 2741, description: "MSI 2741 - Configuration information for product is corrupt", category: ErrorCategory::Msi },
685    ErrorCode { code: 2742, description: "MSI 2742 - Marshaling to Server failed: No action data", category: ErrorCategory::Msi },
686    ErrorCode { code: 2743, description: "MSI 2743 - Could not execute custom action. Expected an integer return value", category: ErrorCategory::Msi },
687    ErrorCode { code: 2744, description: "MSI 2744 - EXE failed called by custom action", category: ErrorCategory::Msi },
688    ErrorCode { code: 2745, description: "MSI 2745 - Transform from patch has failed verification. This patch may be invalid", category: ErrorCategory::Msi },
689    ErrorCode { code: 2746, description: "MSI 2746 - Custom action tried to install on a per-user managed app", category: ErrorCategory::Msi },
690    ErrorCode { code: 2747, description: "MSI 2747 - Transform rejected, custom action tried to remove a per-user unmanaged app", category: ErrorCategory::Msi },
691    ErrorCode { code: 2748, description: "MSI 2748 - Transform from patch package is invalid", category: ErrorCategory::Msi },
692    ErrorCode { code: 2749, description: "MSI 2749 - Custom action DLL crash detected", category: ErrorCategory::Msi },
693    ErrorCode { code: 2750, description: "MSI 2750 - Transform rejected. The rollback was disabled when the transform was applied", category: ErrorCategory::Msi },
694    ErrorCode { code: 2751, description: "MSI 2751 - Transform rejected. The system does not support elevated custom actions", category: ErrorCategory::Msi },
695    ErrorCode { code: 2752, description: "MSI 2752 - Custom action script error", category: ErrorCategory::Msi },
696    ErrorCode { code: 2753, description: "MSI 2753 - The file is not marked for installation", category: ErrorCategory::Msi },
697    ErrorCode { code: 2754, description: "MSI 2754 - The file key is not found in the File table", category: ErrorCategory::Msi },
698    ErrorCode { code: 2755, description: "MSI 2755 - Server returned unexpected error attempting to install package", category: ErrorCategory::Msi },
699    ErrorCode { code: 2756, description: "MSI 2756 - Invalid custom action name", category: ErrorCategory::Msi },
700    ErrorCode { code: 2757, description: "MSI 2757 - Could not create custom action thread", category: ErrorCategory::Msi },
701    ErrorCode { code: 2758, description: "MSI 2758 - Custom action threw an exception", category: ErrorCategory::Msi },
702    ErrorCode { code: 2759, description: "MSI 2759 - Custom action failed. The action was attempted but the function returned an error", category: ErrorCategory::Msi },
703    ErrorCode { code: 2760, description: "MSI 2760 - Custom action data not set correctly", category: ErrorCategory::Msi },
704    ErrorCode { code: 2761, description: "MSI 2761 - Queuing a custom action failed", category: ErrorCategory::Msi },
705    ErrorCode { code: 2762, description: "MSI 2762 - Custom action sequencing error", category: ErrorCategory::Msi },
706    ErrorCode { code: 2763, description: "MSI 2763 - Could not get property for custom action", category: ErrorCategory::Msi },
707    ErrorCode { code: 2765, description: "MSI 2765 - Assembly name missing from AssemblyName table", category: ErrorCategory::Msi },
708    ErrorCode { code: 2801, description: "MSI 2801 - Unknown Message", category: ErrorCategory::Msi },
709    ErrorCode { code: 2802, description: "MSI 2802 - No publisher for event found", category: ErrorCategory::Msi },
710    ErrorCode { code: 2803, description: "MSI 2803 - Dialog View did not find a record in UIText table", category: ErrorCategory::Msi },
711    ErrorCode { code: 2804, description: "MSI 2804 - On activation of the control, its condition evaluated to error", category: ErrorCategory::Msi },
712    ErrorCode { code: 2806, description: "MSI 2806 - The dialog is not registered as creatable", category: ErrorCategory::Msi },
713    ErrorCode { code: 2807, description: "MSI 2807 - Control not registered as creatable", category: ErrorCategory::Msi },
714    ErrorCode { code: 2808, description: "MSI 2808 - On activation of the control, there was no condition", category: ErrorCategory::Msi },
715    ErrorCode { code: 2809, description: "MSI 2809 - Event failed because active dialog has the subscriber", category: ErrorCategory::Msi },
716    ErrorCode { code: 2810, description: "MSI 2810 - Event failed because active dialog does not have the subscriber", category: ErrorCategory::Msi },
717    ErrorCode { code: 2811, description: "MSI 2811 - Error in running control event", category: ErrorCategory::Msi },
718    ErrorCode { code: 2812, description: "MSI 2812 - Custom action error in event handler", category: ErrorCategory::Msi },
719    ErrorCode { code: 2813, description: "MSI 2813 - Control attribute failure", category: ErrorCategory::Msi },
720    ErrorCode { code: 2814, description: "MSI 2814 - Window creation failure", category: ErrorCategory::Msi },
721    ErrorCode { code: 2815, description: "MSI 2815 - Could not get DC for window", category: ErrorCategory::Msi },
722    ErrorCode { code: 2816, description: "MSI 2816 - Could not get text metrics for font", category: ErrorCategory::Msi },
723    ErrorCode { code: 2817, description: "MSI 2817 - Could not find table: BBControl", category: ErrorCategory::Msi },
724    ErrorCode { code: 2818, description: "MSI 2818 - Error in installing billboard", category: ErrorCategory::Msi },
725    ErrorCode { code: 2819, description: "MSI 2819 - Could not find a DLL required for this install", category: ErrorCategory::Msi },
726    ErrorCode { code: 2820, description: "MSI 2820 - Rollback data not found", category: ErrorCategory::Msi },
727    ErrorCode { code: 2821, description: "MSI 2821 - Could not load handler for Rollback", category: ErrorCategory::Msi },
728    ErrorCode { code: 2822, description: "MSI 2822 - Error in initializing rollback: state data might be inaccessible", category: ErrorCategory::Msi },
729    ErrorCode { code: 2901, description: "MSI 2901 - Invalid parameter in operation for creating patch package", category: ErrorCategory::Msi },
730    ErrorCode { code: 2902, description: "MSI 2902 - Error in creating patch package", category: ErrorCategory::Msi },
731    ErrorCode { code: 2903, description: "MSI 2903 - Missing file table in sub-storage", category: ErrorCategory::Msi },
732    ErrorCode { code: 2904, description: "MSI 2904 - Invalid sub-storage name", category: ErrorCategory::Msi },
733    ErrorCode { code: 2905, description: "MSI 2905 - Error in file hash computation", category: ErrorCategory::Msi },
734    ErrorCode { code: 2906, description: "MSI 2906 - Missing file hash info", category: ErrorCategory::Msi },
735    ErrorCode { code: 2907, description: "MSI 2907 - Duplicate file key in patch creation", category: ErrorCategory::Msi },
736    ErrorCode { code: 2908, description: "MSI 2908 - Could not register component", category: ErrorCategory::Msi },
737    ErrorCode { code: 2909, description: "MSI 2909 - Could not unregister component", category: ErrorCategory::Msi },
738    ErrorCode { code: 2910, description: "MSI 2910 - Could not determine user's security ID", category: ErrorCategory::Msi },
739    ErrorCode { code: 2911, description: "MSI 2911 - Could not remove the folder", category: ErrorCategory::Msi },
740    ErrorCode { code: 2912, description: "MSI 2912 - Could not schedule file to be replaced on reboot", category: ErrorCategory::Msi },
741    ErrorCode { code: 2919, description: "MSI 2919 - No cabinet specified for compressed file", category: ErrorCategory::Msi },
742    ErrorCode { code: 2920, description: "MSI 2920 - Source directory not specified for file", category: ErrorCategory::Msi },
743    ErrorCode { code: 2924, description: "MSI 2924 - One or more volume labels do not match", category: ErrorCategory::Msi },
744    ErrorCode { code: 2927, description: "MSI 2927 - Source directory is missing from Directory table", category: ErrorCategory::Msi },
745    ErrorCode { code: 2928, description: "MSI 2928 - Exceeded maximum number of sources during patch apply", category: ErrorCategory::Msi },
746    ErrorCode { code: 2929, description: "MSI 2929 - Could not determine packaging type", category: ErrorCategory::Msi },
747    ErrorCode { code: 2932, description: "MSI 2932 - Could not create file summary information", category: ErrorCategory::Msi },
748    ErrorCode { code: 2933, description: "MSI 2933 - Could not initialize rollback security", category: ErrorCategory::Msi },
749    ErrorCode { code: 2934, description: "MSI 2934 - Could not get rollback security information", category: ErrorCategory::Msi },
750    ErrorCode { code: 2935, description: "MSI 2935 - Could not open rollback script", category: ErrorCategory::Msi },
751    ErrorCode { code: 2936, description: "MSI 2936 - Could not read rollback script", category: ErrorCategory::Msi },
752    ErrorCode { code: 2937, description: "MSI 2937 - Could not write rollback script", category: ErrorCategory::Msi },
753    ErrorCode { code: 2938, description: "MSI 2938 - Rollback script creation error", category: ErrorCategory::Msi },
754    ErrorCode { code: 2939, description: "MSI 2939 - Could not execute rollback script", category: ErrorCategory::Msi },
755    ErrorCode { code: 2940, description: "MSI 2940 - Installer transform failure", category: ErrorCategory::Msi },
756
757    // MSI patch errors (3000-3010)
758    ErrorCode { code: 3000, description: "MSI 3000 - Patch sequencing error: could not find the patch in the patch list", category: ErrorCategory::Msi },
759    ErrorCode { code: 3001, description: "MSI 3001 - Patch sequencing error: could not determine sequence for patch", category: ErrorCategory::Msi },
760    ErrorCode { code: 3002, description: "MSI 3002 - Patch was removed from sequencing", category: ErrorCategory::Msi },
761
762    // PSADT (PowerShell App Deployment Toolkit) exit codes
763
764    // ==========================================
765    // Certificate errors
766    // ==========================================
767    ErrorCode { code: 0x800B0001, description: "TRUST_E_PROVIDER_UNKNOWN - Unknown trust provider", category: ErrorCategory::Certificate },
768    ErrorCode { code: 0x800B0003, description: "TRUST_E_SUBJECT_FORM_UNKNOWN - Unknown form type", category: ErrorCategory::Certificate },
769    ErrorCode { code: 0x800B0004, description: "TRUST_E_SUBJECT_NOT_TRUSTED - The subject is not trusted for the specified action", category: ErrorCategory::Certificate },
770    ErrorCode { code: 0x800B0100, description: "TRUST_E_NOSIGNATURE - No signature was present in the subject", category: ErrorCategory::Certificate },
771    ErrorCode { code: 0x800B0101, description: "CERT_E_EXPIRED - A required certificate is not within its validity period", category: ErrorCategory::Certificate },
772    ErrorCode { code: 0x800B0106, description: "CERT_E_CHAINING - Could not form a valid certificate chain", category: ErrorCategory::Certificate },
773    ErrorCode { code: 0x800B0109, description: "CERT_E_UNTRUSTEDROOT - A certificate chain processed but terminated in a root certificate not trusted", category: ErrorCategory::Certificate },
774    ErrorCode { code: 0x800B010A, description: "CERT_E_CHAINING - A certificate chain could not be built to a trusted root authority", category: ErrorCategory::Certificate },
775    ErrorCode { code: 0x800B010B, description: "CERT_E_REVOCATION_FAILURE - The revocation process could not continue", category: ErrorCategory::Certificate },
776    ErrorCode { code: 0x800B010C, description: "CERT_E_CN_NO_MATCH - The certificate CN name does not match the passed value", category: ErrorCategory::Certificate },
777    ErrorCode { code: 0x800B010D, description: "CERT_E_WRONG_USAGE - The certificate is not valid for the requested usage", category: ErrorCategory::Certificate },
778    ErrorCode { code: 0x800B0110, description: "CERT_E_CRITICAL - A certificate contains an unknown extension that is marked critical", category: ErrorCategory::Certificate },
779    ErrorCode { code: 0x800B0111, description: "CERT_E_PURPOSE - The certificate is being used for a purpose other than the ones specified by the CA", category: ErrorCategory::Certificate },
780    ErrorCode { code: 0x800B0113, description: "CERT_E_MALFORMED - A certificate is missing or has an empty value for an important field", category: ErrorCategory::Certificate },
781    ErrorCode { code: 0x800B0114, description: "CERT_E_UNTRUSTEDCA - A certification chain processed correctly but one of the CA certificates is not trusted by the policy provider", category: ErrorCategory::Certificate },
782
783    // ==========================================
784    // Intune / MDM
785    // ==========================================
786    ErrorCode { code: 0x87D00215, description: "INTUNEWIN_E_INSTALL_FAILURE - The application installation failed", category: ErrorCategory::Intune },
787    ErrorCode { code: 0x87D00324, description: "INTUNEWIN_E_DETECTION_FAILED - Post-install detection failed", category: ErrorCategory::Intune },
788    ErrorCode { code: 0x87D00607, description: "INTUNEWIN_E_DOWNLOAD_FAILED - Content download failed", category: ErrorCategory::Intune },
789    ErrorCode { code: 0x87D01101, description: "INTUNEWIN_E_TIMEOUT - Application install timed out", category: ErrorCategory::Intune },
790    ErrorCode { code: 0x87D10001, description: "INTUNE_CLIENT_ERROR - Intune client error", category: ErrorCategory::Intune },
791    ErrorCode { code: 0x87D1041C, description: "INTUNE_NOT_DETECTED_POST_INSTALL - Application was not detected after installation completed", category: ErrorCategory::Intune },
792    ErrorCode { code: 0x87D11388, description: "INTUNE_IOS_BUSY - iOS device is currently busy", category: ErrorCategory::Intune },
793    ErrorCode { code: 0x87D1313C, description: "INTUNE_NETWORK_LOST - Network connection on the client was lost during download", category: ErrorCategory::Intune },
794    ErrorCode { code: 0x87D13B64, description: "INTUNE_IOS_INSTALL_FAILURE - iOS app installation failure", category: ErrorCategory::Intune },
795    ErrorCode { code: 0x87D13B66, description: "INTUNE_APP_EXPIRED - App is managed but has expired or been removed by user", category: ErrorCategory::Intune },
796    ErrorCode { code: 0x87D13B9B, description: "INTUNE_RETRY_NEXT_SYNC - App installation failed, Intune will retry next sync", category: ErrorCategory::Intune },
797    ErrorCode { code: 0x87D30000, description: "INTUNE_UNKNOWN - Unknown error (last step succeeded but current step has no defined output)", category: ErrorCategory::Intune },
798    ErrorCode { code: 0x87D30001, description: "INTUNE_NOT_DETECTED_AFTER_INSTALL - App was not detected after installation", category: ErrorCategory::Intune },
799    ErrorCode { code: 0x87D30003, description: "INTUNE_REBOOT_REQUIRED - App install requires device reboot", category: ErrorCategory::Intune },
800    ErrorCode { code: 0x87D30004, description: "INTUNE_UNINSTALLED_AFTER_DETECT - App was uninstalled after being detected", category: ErrorCategory::Intune },
801    ErrorCode { code: 0x87D30006, description: "INTUNE_DETECTION_FAILED - App was installed but detection check failed", category: ErrorCategory::Intune },
802    ErrorCode { code: 0x87D30065, description: "INTUNE_CONTENT_INFO_FAILED - Failed to retrieve content information", category: ErrorCategory::Intune },
803    ErrorCode { code: 0x87D30067, description: "INTUNE_UNZIP_FAILED - Error unzipping downloaded content", category: ErrorCategory::Intune },
804    ErrorCode { code: 0x87D30068, description: "INTUNE_DOWNLOAD_FAILED - Error downloading content", category: ErrorCategory::Intune },
805    ErrorCode { code: 0x87D3006A, description: "INTUNE_DOWNLOAD_TIMEOUT - Content download timed out", category: ErrorCategory::Intune },
806    ErrorCode { code: 0x87D300C8, description: "INTUNE_INSTALL_PENDING - App install not yet complete", category: ErrorCategory::Intune },
807    ErrorCode { code: 0x87D300CA, description: "INTUNE_ENFORCEMENT_FAILED - Failed to enforce app", category: ErrorCategory::Intune },
808    ErrorCode { code: 0x87D300CC, description: "INTUNE_OOBE_SKIPPED - Device in OOBE, skipping", category: ErrorCategory::Intune },
809    ErrorCode { code: 0x87D300CE, description: "INTUNE_NOT_APPLICABLE - App not applicable to device", category: ErrorCategory::Intune },
810
811    // ==========================================
812    // Network — WinHTTP errors
813    // ==========================================
814    ErrorCode { code: 0x80072EE1, description: "ERROR_WINHTTP_OUT_OF_HANDLES - No more handles could be generated", category: ErrorCategory::Network },
815    ErrorCode { code: 0x80072EE2, description: "ERROR_WINHTTP_TIMEOUT - The request has timed out", category: ErrorCategory::Network },
816    ErrorCode { code: 0x80072EE4, description: "ERROR_WINHTTP_INTERNAL_ERROR - An internal error has occurred", category: ErrorCategory::Network },
817    ErrorCode { code: 0x80072EE5, description: "ERROR_WINHTTP_INVALID_URL - The URL is invalid", category: ErrorCategory::Network },
818    ErrorCode { code: 0x80072EE7, description: "ERROR_WINHTTP_NAME_NOT_RESOLVED - The server name could not be resolved", category: ErrorCategory::Network },
819    ErrorCode { code: 0x80072EFD, description: "ERROR_WINHTTP_CANNOT_CONNECT - Connection to the server failed", category: ErrorCategory::Network },
820    ErrorCode { code: 0x80072EFE, description: "ERROR_WINHTTP_CONNECTION_ERROR - The connection with the server has been reset or terminated", category: ErrorCategory::Network },
821    ErrorCode { code: 0x80072F06, description: "ERROR_WINHTTP_SECURE_CERT_DATE_INVALID - SSL certificate date is invalid", category: ErrorCategory::Network },
822    ErrorCode { code: 0x80072F0C, description: "ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED - The server requires SSL client authentication", category: ErrorCategory::Network },
823    ErrorCode { code: 0x80072F0D, description: "ERROR_WINHTTP_INVALID_CA - Invalid CA certificate", category: ErrorCategory::Network },
824    ErrorCode { code: 0x80072F76, description: "ERROR_WINHTTP_HEADER_NOT_FOUND - The requested header could not be located", category: ErrorCategory::Network },
825    ErrorCode { code: 0x80072F78, description: "ERROR_WINHTTP_INVALID_SERVER_RESPONSE - The server response could not be parsed", category: ErrorCategory::Network },
826    ErrorCode { code: 0x80072F89, description: "ERROR_WINHTTP_SECURE_CERT_REVOKED - SSL certificate revoked", category: ErrorCategory::Network },
827    ErrorCode { code: 0x80072F8A, description: "ERROR_WINHTTP_SECURE_CERT_CN_INVALID - SSL certificate common name does not match", category: ErrorCategory::Network },
828    ErrorCode { code: 0x80072F8F, description: "ERROR_WINHTTP_SECURE_FAILURE - One or more SSL errors were encountered", category: ErrorCategory::Network },
829
830    // ==========================================
831    // Security — Crypto / SSPI
832    // ==========================================
833    ErrorCode { code: 0x80090001, description: "NTE_BAD_UID - Bad UID", category: ErrorCategory::Security },
834    ErrorCode { code: 0x80090002, description: "NTE_BAD_HASH - Bad hash", category: ErrorCategory::Security },
835    ErrorCode { code: 0x80090003, description: "NTE_BAD_KEY - Bad key", category: ErrorCategory::Security },
836    ErrorCode { code: 0x80090005, description: "NTE_BAD_DATA - Bad data", category: ErrorCategory::Security },
837    ErrorCode { code: 0x80090006, description: "NTE_BAD_SIGNATURE - Invalid signature", category: ErrorCategory::Security },
838    ErrorCode { code: 0x80090010, description: "NTE_PROV_TYPE_NOT_DEF - Provider type not defined", category: ErrorCategory::Security },
839    ErrorCode { code: 0x80090020, description: "NTE_INTERNAL_ERROR - Internal error", category: ErrorCategory::Security },
840    ErrorCode { code: 0x80090300, description: "SEC_E_INSUFFICIENT_MEMORY - Not enough memory available to complete the request", category: ErrorCategory::Security },
841    ErrorCode { code: 0x80090302, description: "SEC_E_INVALID_HANDLE - The handle specified is invalid", category: ErrorCategory::Security },
842    ErrorCode { code: 0x80090304, description: "SEC_E_LOGON_DENIED - The logon attempt failed", category: ErrorCategory::Security },
843    ErrorCode { code: 0x80090308, description: "SEC_E_INVALID_TOKEN - The token supplied to the function is invalid", category: ErrorCategory::Security },
844    ErrorCode { code: 0x80090311, description: "SEC_E_NO_AUTHENTICATING_AUTHORITY - No authority could be contacted for authentication", category: ErrorCategory::Security },
845    ErrorCode { code: 0x80090317, description: "SEC_E_CERT_EXPIRED - The received certificate has expired", category: ErrorCategory::Security },
846    ErrorCode { code: 0x80090322, description: "SEC_E_WRONG_PRINCIPAL - The target principal name is incorrect", category: ErrorCategory::Security },
847    ErrorCode { code: 0x80090325, description: "SEC_E_UNTRUSTED_ROOT - The certificate chain was issued by an authority that is not trusted", category: ErrorCategory::Security },
848    ErrorCode { code: 0x80090326, description: "SEC_E_REVOCATION_OFFLINE - The revocation function was unable to check revocation because the revocation server was offline", category: ErrorCategory::Security },
849    ErrorCode { code: 0x80090331, description: "SEC_E_ALGORITHM_MISMATCH - The client and server cannot communicate because they do not possess a common algorithm", category: ErrorCategory::Security },
850];