When sql server 2008 express installation tips "to restart the computer failed"

When sql server 2008 express installation tips "to restart the computer failed"

Solution:

 Open the Registry Editor (regedit.exe), in HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager

  PendingFileRenameOperations found items, and delete it. This will clear the pending installation project.

  Note: Do not restart the computer , proceed with the installation!

========================================================================================================

PendingFileRenameOperations explanation:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager存放的是当前系统会话的快照,而PendingFileRenameOperations记录的是一个未成功进行的文件更名操作,应用程序如SQL Server在安装时可能会使用这个键值,记录在安装过程中对临时文件的操作,如果在安装进程启动时就发现这个键值存在,它就认为上一个安装程序没有完成,从而拒绝继续自身的安装进程。
这个键值的类型是REG_MULTI_SZ。格式如下:
    \??\源文件1路径
    \??\目标文件1路径
    \??\源文件2路径
    \??\目标文件2路径
如果目标文件所在行为空,则表示需要系统删除源文件。如果目标文件所在行不为空,则系统用目标文件替换源文件。
这个键值在重启或者用户注销重新登录的时候会起作用。

转载于:https://www.cnblogs.com/kevinGao/p/4188729.html

Guess you like

Origin blog.csdn.net/weixin_34248258/article/details/93051745