You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Oracle Development Tools 18.3.0.0.0 for VS2017时遇AnotherInstallationRunning错误求助

解决Visual Studio 2017安装Oracle Development Tools时的AnotherInstallationRunning错误

问题描述

安装适用于Visual Studio 2017的Oracle Development Tools(版本18.3.0.0.0)时,遇到无法解决的安装错误,错误日志中的核心堆栈跟踪如下:

1/9/2020 3:39:09 PM - System.AggregateException: One or more errors occurred. ---> System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. --- End of inner exception stack trace --- at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties) at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install) at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token) at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0() at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.Install() at Microsoft.VisualStudio.ExtensionManager.ExtensionBatchEngine.Execute(List1 installableExtensions, Version targetVsVersion) at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BatchEngineInstall(List1 installableExtensions, InstallFlags installFlags, Version targetVsVersion) at VSIXInstaller.BatchSetupEngineInstaller.Install(SupportedVSSKU sku, List1 extensionsToInstall, InstallFlags installFlags) at VSIXInstaller.BatchSetupEngineInstaller.BatchInstall(IReadOnlyList1 targetSkus, IEnumerable1 extensionsToInstall) at VSIXInstaller.SilentEngine.Execute(ExtensionData data) at VSIXInstaller.App.OnStartup(StartupEventArgs e) ---> (Inner Exception #0) System.OperationCanceledException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. ---> Microsoft.VisualStudio.Setup.CanceledByPrecheckException: Pre-check verification failed with warning(s) : AnotherInstallationRunning. --- End of inner exception stack trace --- at Microsoft.VisualStudio.Setup.PrecheckManager.RunPrechecks(PrecheckParameters precheckParameters, VariableCollection properties) at Microsoft.VisualStudio.Setup.Engine.RunPrecheck(String destination, Product product, ExecuteAction action, IWindowsRestartManager rmService, ITelemetryOperation installOperation, InstallOperation install) at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token) at Microsoft.VisualStudio.ExtensionManager.SetupEngineService.<Install>b__14_0() at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---

排查后确认:未手动启动其他安装进程,检查msiexec进程无论是否运行都报错;猜测是Oracle安装包启动VS扩展安装器导致冲突,多次重启、管理员身份安装无效;手动安装扩展成功,但VS中使用自定义工具仍报错。

环境信息:Visual Studio 2017版本15.9.18,Oracle Development Tools版本18.3.0.0.0


解决方案

结合类似问题的排查经验,给你以下几个可行的解决步骤:

  • 彻底清理安装相关进程
    打开任务管理器,结束所有和安装、VS相关的进程:

    • msiexec.exe(Windows安装服务进程)
    • VSIXInstaller.exe(VS扩展安装程序)
    • Oracle Universal Installer及相关子进程
    • Visual Studio Installer、devenv.exe(VS主进程)
      结束后,右键Oracle安装包选择以管理员身份运行,全程不要打开Visual Studio。
  • 拆分安装流程,避免冲突

    1. 运行Oracle Development Tools安装包,在组件选择步骤中,取消勾选Visual Studio Integration相关选项,先完成Oracle核心工具的安装。
    2. 单独下载对应版本的Oracle VS扩展(确保版本和你的ODT 18.3.0.0.0、VS2017匹配),关闭所有VS实例后,双击.vsix文件完成扩展安装。
  • 修复VS扩展加载异常
    如果手动装完扩展后自定义工具仍报错,尝试重置VS用户数据:

    1. 以管理员身份打开命令提示符,运行:
      devenv /resetuserdata
      
    2. 重启Visual Studio,重新加载Oracle相关工具,测试自定义功能是否正常。
      另外,确认你的VS2017 15.9.18已安装所有可用补丁,避免版本兼容问题。
  • 重置Windows Installer服务
    按下Win+R输入services.msc打开服务管理器,找到Windows Installer服务:

    • 若服务未启动,右键点击启动;若已启动,选择重启。
      完成后再尝试安装或修复操作。

内容的提问来源于stack exchange,提问作者Marco J

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 07:57:31