DPInst exit codes explained

The DPInst executable returns a decimal value. We cand decode it find out what the outcome of the installation was.

First, the value needs to be convert the decimal value into hexadecimal. The easieast way to do it is using the Calculator. Switch to Programmer View, select Decimal, enter the value, click on Hex. That’s it.

You’ll obtain a value like 0xWWXXYYZZ(or less digits – in this case, the zeros in front won’t be shown). Then, we separate the pairs. Basically, we`ll get 4 hex numbers. This is their meaning:

0xWW If a package couldn’t be installed, this will be set to 0x80.
If a reboot is needed, its value will be 0x40.
Otherwise, it will be 0x00.
0xXX  Number of driver packages that could not be installed
0xYY ┬áNumber of driver packages that have been copied to the driver store but haven’t been installed on a device
0xZZ  Number of driver packages that have been installed on a device

We have made available a calculator that will decode this value for you, and that will also allow you to calculate the returned value of different scenarios.

DPInst Exit Code Calculator

Below you can find an exit code calculator for DPInst.
The first one explains the outcome of a dpinst execution, while the second one calculates the exit codes based on what the expected outcome.

Decode exit code
Decimal value to be decoded:


Calculate expected exit code based on the estimated outcome
Number of driver packages that will be installed on a device
Number of driver packages that will be copied to the driver store
Number of driver packages that will fail
Reboot needed

Calculated Hexadecimal Exit Code:

Calculated Decimal Exit Code (this is what DpInst will return!):