Can't install SQL SERVER 2019 due to error code -2068054016 a previous installation required a reboot of a machine

Rachel Cha 1 Reputation point
2022-02-23T23:55:34.387+00:00

177220-screenshot-1064.png

I keep getting messages while I am trying to download the SQL Server 2019. I turned off my laptop and tried again a few times, but it still did not work. How can I resolve this problem?

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
SQL Server Other
{count} votes

2 answers

Sort by: Most helpful
  1. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2022-02-24T02:04:11.81+00:00

    Hi @Rachel Cha ,

    If restarting your server could not resolve this issue. Please check the SQL server setup log (both summary and detail log) that mentioned in your screenshot. And share us the SQL setup log for analysis. The log is located at C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\Log\20220223_011057.

    In addition, did you have a failure previous installation? If so, please uninstall the previous SQL Server completely. Maybe there have some components have been left.

    Please follow below steps to delete the left components:

    1. Uninstall the existing SQL Server and all the components from the add remove program.
    2. Backup the registry.
    3. Delete the following keys using regedit:
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
      --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
    6. Rename all the SQL Server folders in the computer.
    7. Reboot the machine.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2022-02-24T23:10:02.387+00:00

    First, I recommend that you download the ISO and install from that file. At least diagnostics are a little bit easier.

    For this problem, check HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations in the registry,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.