Share via

SQL server installation fails

fujiyama 6 Reputation points
2022-06-09T07:55:15.743+00:00

SQL server installation fails

I apologize for any grammatical errors as I am translating at DeepL

*process

  1. download SQL server 2017 Express

https://www.microsoft.com/ja-JP/download/details.aspx?id=55994

2.Run SQL server installer

3.Select Normal Installation

4.An error occurs.
Errer massage:Failed to install setup.exe

*What I have already tried

reboot
custom installation
Change the drive to install

Please let me know if I should attach any other information

Thank you for your help.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


3 answers

Sort by: Most helpful
  1. Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
    2022-06-09T21:48:09.047+00:00

    I found this in Detail.txt:

    (01) 2022-06-09 17:00:26 Slp: Exception type: System.IO.DirectoryNotFoundException
    (01) 2022-06-09 17:00:26 Slp: Message:
    (01) 2022-06-09 17:00:26 Slp: パス 'C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20220609_162958' の一部が見つかりませんでした。
    (01) 2022-06-09 17:00:26 Slp: HResult : 0x80070003

    I don't know Chinese, so I can't read that part. But it seems that the directory path above is missing. This would indicate that either Setup is confused about the name, or the file has been deleted.

    It appears to be the former, because earlier in the log the folder is said to be on the D drive, but the error message has the C drive.

    Exactly why this may be happening, I don't know. But maybe this is a clue.

    Was this answer helpful?


  2. Seeya Xi-MSFT 16,756 Reputation points
    2022-06-09T09:54:44.077+00:00

    Hi @fujiyama ,

    (01) 2022-06-09 16:48:18 Slp: インストールのログ ファイルを開くときに、エラーが発生しました。指定されたログ ファイルの場所が存在し、書き込み可能であることを確認してください。

    You can uninstall SQL Server and reinstall it agin.
    please follow the below steps to remove all components of previous installed SQL Server completely:

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in 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. Reboot the machine
      In addition, please use an administrator account to reinstall SQL Server on your computer(Right click->run as administrator).

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  3. Olaf Helper 47,621 Reputation points
    2022-06-09T08:00:36.46+00:00

    Please View and Read SQL Server Setup Log Files for more details about the issue.

    Was this answer helpful?


Your answer

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