This usually means the downloaded file was corrupted or Windows Update needs a refresh. Go to Device Manager, find the printer, right-click, and select "Update Driver."
For Windows 10 and 11 users, the HP Smart App offers a modern interface for setup and scanning. Supported Operating Systems The M521dw is compatible with a wide range of platforms: Серия МФУ HP Color LaserJet Pro M521 - HP Support laserjet pro mfp m521dw driver