Windows 10/11 a missing registry key causes printer installations to fail:
a) Click on the down arrow to see details:
and check the error code:
b) Download the file that match:
c) Double click on the downloaded file and accept to import this settings into the registry.
Restart your computer and retry the printer installation.