【问题标题】:SSMS silent install does not work due to forced restart由于强制重启,SSMS 静默安装无法正常工作
【发布时间】:2021-02-14 21:13:59
【问题描述】:

为什么即使使用了 /norestart 参数,静默安装 SQL Server Management Studio 也需要重新启动计算机?我是这样从 InnoSetup 安装的

 ShellExec(Verb, ExpandConstant('{syswow64}\cmd.exe'), 
'/C ' + 'start /w SSMS-Setup-ENU.exe /install /quiet /norestart /log "SSMS_logs/ssms-logs.log"', '', WShow, ewWaitUntilTerminated, Err);

并且日志显示安装由于挂起重新启动而停止。 提前致谢

【问题讨论】:

  • 什么日志?什么安装? SSMS 日志/安装?还是 Inno Setup 日志/安装?向我们展示日志。
  • 如果 HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations 存在,那么它必须安装需要重新启动的依赖项,例如 Visual Studio Tools for Applications 或 SQL Server Management Studio Extensions 的热修复。如果安装了以前版本的工具或以前安装的残余,则可能会发生这种情况。日志文件应该告诉哪个组件需要重新启动。

标签: sql-server ssms inno-setup


【解决方案1】:

在 AlwaysLearning 之上构建,我发现的解决方案是仅安装在不需要重新启动的系统上。如果这对您不起作用,请尝试以下解决方法:enter link description here

【讨论】:

    猜你喜欢
    • 2011-11-29
    • 1970-01-01
    • 2018-03-08
    • 1970-01-01
    • 2019-10-19
    • 1970-01-01
    • 2015-08-11
    • 1970-01-01
    • 2014-10-10
    相关资源
    最近更新 更多