windows 补丁相关 cbs 中state状态值

Tip of the Day: CBS Servicing States Chart - Refresher

  • 2015/10/12
  • 2 分钟可看完

Ever find yourself lost in the CBS log? It’s likely that if you’ve opened the CBS.log in Windows\Logs, you have. Don’t know what the value in the registry means? Now you can!

Here are the definitions of ApplicableState and CurrentState. In a CBS log, they will be in decimal, but they will show up as hex in the registry.

Cached state location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\ApplicabilityEvaluationCache<package name>

Package location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages<package name>

Applicable/Current State Hex Dec
Absent 0 0
Uninstall Pending 0x5 5
Resolving 0x10 16
Resolved 0x20 32
Staging 0x30 48
Staged 0x40 64
Superseded 0x50 80
Install Pending 0x60 96
Partially Installed 0x65 101
Installed 0x70 112
Permanent 0x80 128
CBS State Value
CbsInstallStateAbsent 0
CbsInstallStateResolving 1
CbsInstallStateResolved 2
CbsInstallStateStaging 3
CbsInstallStateStaged 4
CbsInstallStateUninstallRequested 5
CbsInstallStateInstallRequested 6
CbsInstallStateInstalled 7
CbsInstallStatePermanent 8
Install/Applicability State (CbsApi.dll) Value Description
CbsInvalidStatePermanent -128 non-removable, but broken
CbsInvalidStateInstalled -112 fully installed, but broken
CbsInvalidStateStaged -64 installable, but broken
CbsInvalidStateResolved -32 all composed component manifests, but broken
CbsInstallStatePartiallyInstalled -19 used for rollup aggregated package's EvaluateApplicability return
CbsInstallStateCancel -18 used with ICbsUpdate:SetInstallState
CbsInstallStateSuperseded -17 only returned from EvaluateApplicability
CbsInstallStateDefault -16 reevaluate selectability to default state
CbsInstallStateAbsent 0 component manifest not registered, no files
CbsInstallStateResolving 16 all composed component manifests, files lacking
CbsInstallStateResolved 32 all composed component manifests, files lacking
CbsInstallStateStaging 48 installable, with all composed components and files
CbsInstallStateStaged 64 installable, with all composed components and files
CbsInstallStateUninstallRequested 80 installed, but with pending uninstall
CbsInstallStateInstallRequested 96 installable, with pending install request
CbsInstallStateInstalled 112 fully installed, available for binding
CbsInstallStatePermanent 128 non-removable

From URL: https://docs.microsoft.com/zh-cn/archive/blogs/tip_of_the_day/tip-of-the-day-cbs-servicing-states-chart-refresher

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容