Use the QuickBooks Install Diagnostic Tool
Open the QuickBooks Tool Hub.
In the tool hub, select Installation Issues.
Select QuickBooks Install Diagnostic Tool. Let the tool run. It can take up to 20 minutes.
When the tool finishes, restart your computer.
Window updates prevent and often fix install errors.
Check out Windows Update: FAQ on how to update your version of Windows from Microsoft,
Once the update finishes, restart your computer.
If you could open QuickBooks before you saw the error, Open QuickBooks and your company file.
If you weren't able to install QuickBooks, install QuickBooks Desktop again.