Freigeben über


Tip of the Day: CBS Servicing States Chart - Refresher

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

Comments

  • Anonymous
    November 10, 2015
    Great post, I´m been looking for this for a long time. Thks a lot.
  • Anonymous
    February 26, 2016
    Great post!! Thank you, that clears a lot of things
  • Anonymous
    August 06, 2016
    So glad I stumbled upon this. Thanks for sharing!
    • Anonymous
      April 24, 2017
      thx great post!
  • Anonymous
    April 14, 2018
    This is extremely helpful! It is going straight in my One Note for future reference. Thanks :-)