Always back up important data before flashing the BIOS.
Close all open applications and temporarily disable your antivirus software. Run the downloaded HP SoftPaq installer ( spXXXXX.exe ). Choose the option to . hp compaq dc5800 small form factor bios update
What is currently displayed in your system settings? Are you upgrading the CPU to a specific processor ? Always back up important data before flashing the BIOS