| Previous | Next |
| SPAPI_E_INVALID_CLASS_INSTALLER | SPAPI_E_DI_NOFILECOPY |
SPAPI_E_DI_DO_DEFAULT
This status is installation control flow, not a failed default action
SPAPI_E_DI_DO_DEFAULT is returned by a class installer when it has finished its own processing and wants SetupAPI to invoke the default handler for the current DIF request. The installation application should not display the value as an ordinary failure before considering the SetupDiCallClassInstaller contract.
A class installer that already called the default handler must return success instead; otherwise the operation can run twice. Co-installers follow a different protocol and do not use this status to request default handling.
Trace the DIF dispatch sequence
- Log the DIF code, class installer result, and whether DI_NODI_DEFAULTACTION is set.
- Verify that custom code did not call the default handler and then return this status.
- Keep co-installer preprocessing and postprocessing results separate from the class installer result.
- After SetupDiCallClassInstaller, inspect the device installation parameters for reboot or restart flags.
References
- Microsoft: handling DIF codes
- Microsoft: calling default DIF handlers
- Microsoft: SetupDiCallClassInstaller
Looking for a different code? Search another status or error code.