美文网首页技术杂记
windows 补丁相关 cbs 中state状态值

windows 补丁相关 cbs 中state状态值

作者: 飞鱼会飞 | 来源:发表于2020-09-21 14:40 被阅读0次

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

相关文章

网友评论

    本文标题:windows 补丁相关 cbs 中state状态值

    本文链接:https://www.haomeiwen.com/subject/oduvyktx.html