{"record":{"id":"896b8a5c610b9f8d","repo":"BCUninstaller/Bulk-Crap-Uninstaller","slug":"0x80070032-this-app-is-part-of-windows-and-canno","errorCode":null,"errorMessage":"0x80070032 - This app is part of Windows and cannot be uninstalled on a per-user basis.","messagePattern":"0x80070032 - This app is part of Windows and cannot be uninstalled on a per-user basis\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"warning","filePath":"source/UninstallTools/Uninstaller/BulkUninstallEntry.cs","lineNumber":445,"sourceCode":"                                    The application terminated as a result of a CTRL+C. \r\n                                    Indicates that the application has been terminated either by user's \r\n                                    keyboard input CTRL+C or CTRL+Break or closing command prompt window. */\r\n                                _skipLevel = SkipCurrentLevel.Terminate;\r\n                            }\r\n                            else\r\n                            {\r\n                                switch (exitVar)\r\n                                {\r\n                                    case 2:\r\n                                        throw new Exception(\"The system cannot find the file specified. Indicates that the file can not be found in specified location.\");\r\n                                    case 3:\r\n                                        throw new Exception(\"The system cannot find the path specified. Indicates that the specified path can not be found.\");\r\n                                    case 5:\r\n                                        throw new Exception(\"Access is denied. Indicates that user has no access right to specified resource.\");\r\n                                    case 9009:\r\n                                        throw new Exception(\"Program is not recognized as an internal or external command, operable program or batch file.\");\r\n                                    case -2147024846:\r\n                                        throw new Exception(\"0x80070032 - This app is part of Windows and cannot be uninstalled on a per-user basis.\");\r\n\r\n                                    default:\r\n                                        if (options.RetryFailedQuiet || (UninstallerEntry.UninstallerKind == UninstallerType.Nsis && !options.PreferQuiet))\r\n                                            retry = true;\r\n                                        throw new IOException(Localisation.UninstallError_UninstallerReturnedCode + exitVar);\r\n                                }\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n            catch (Exception ex)\r\n            {\r\n                error = ex;\r\n                Trace.WriteLine(@$\"Exception when uninstalling {UninstallerEntry.DisplayName}: {ex}\");\r\n            }\r\n            finally\r\n            {\r","sourceCodeStart":427,"sourceCodeEnd":463,"githubUrl":"https://github.com/BCUninstaller/Bulk-Crap-Uninstaller/blob/608321de98e92297377b1eb69029af55c25504a1/source/UninstallTools/Uninstaller/BulkUninstallEntry.cs#L427-L463","documentation":"The exit-code switch maps exitVar == -2147024846 (0x80070032) to a thrown Exception: 'This app is part of Windows and cannot be uninstalled on a per-user basis.' HRESULT 0x80070032 wraps Win32 ERROR_NOT_SUPPORTED (50); the OS rejected the per-user removal of an inbox/WINDOWS-component app.","triggerScenarios":"Attempting to uninstall a Windows store/inbox app or system component that the OS refuses to remove for the current user — typically an AppX/UWP package marked non-removable or a Windows optional feature that cannot be uninstalled per-user.","commonSituations":"User selects an inbox Windows app (e.g. Cortana, Edge, a system AppX) in the bulk list; the uninstaller exits 0x80070032 because Remove-AppxPackage would also be refused for that package.","solutions":["Pre-filter the uninstall list to hide/exclude known non-removable Windows components, or mark them as 'cannot be uninstalled'.","For AppX packages, check the package's NonRemovable flag (Get-AppxPackageManifest) before offering uninstall.","Surface a user-facing message that this component is part of Windows and must be removed via OS settings (if at all)."],"exampleFix":"// before\nmanager.RunUninstaller(entry, options);\n\n// after\nif (entry.UninstallerKind == UninstallerType.StoreApp && IsNonRemovable(entry))\n{\n    entry.MarkNotUninstallable(\"Part of Windows; remove via OS settings.\");\n    return;\n}\nmanager.RunUninstaller(entry, options);","handlingStrategy":"validation","validationCode":"if (entry.UninstallerKind == UninstallerType.StoreApp && IsNonRemovablePackage(entry))\n{\n    entry.MarkNotUninstallable(\"Part of Windows; remove via OS settings.\");\n    return;\n}\nmanager.RunUninstaller(entry, options);","typeGuard":"null","tryCatchPattern":"try { manager.RunUninstaller(entry, options); }\ncatch (Exception ex) when (ExitCodeOf(ex) == -2147024846)\n{\n    entry.MarkNotUninstallable(\"Part of Windows; cannot be uninstalled per-user.\");\n}","preventionTips":["Pre-filter known non-removable Windows components from the uninstall list.","Check AppX package NonRemovable flag before offering uninstall.","Direct users to Windows Settings for OS-managed components."],"tags":["uninstaller","process-exit-code","appx","windows-component","hresult","not-supported"],"backgroundTag":null,"analyzedSha":"608321de98e92297377b1eb69029af55c25504a1","analyzedAt":"2026-08-13T12:17:35.389Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}