![无法为 Visual Studio 2017 安装 odt。安装错误](https://linux22.com/image/1598382/%E6%97%A0%E6%B3%95%E4%B8%BA%20Visual%20Studio%202017%20%E5%AE%89%E8%A3%85%20odt%E3%80%82%E5%AE%89%E8%A3%85%E9%94%99%E8%AF%AF.png)
我想为 Visual Studio 2017 安装 odt。我从https://www.oracle.com/technetwork/topics/dotnet/downloads/odacmsidownloadvs2017-3806459.html安装程序启动后过了一段时间,弹出一个错误提示无法安装工具,并提示我查看它生成的日志文件并删除错误,但我似乎无法在日志文件中找到错误是什么。日志文件的内容如下:
24/07/2019 2:33:48 PM - Microsoft VSIX Installer
24/07/2019 2:33:48 PM - -------------------------------------------
24/07/2019 2:33:48 PM - vsixinstaller.exe version:
24/07/2019 2:33:48 PM - 15.0.26228.9 built by: D15RTWSVC
24/07/2019 2:33:48 PM - -------------------------------------------
24/07/2019 2:33:48 PM - Command line parameters:
24/07/2019 2:33:48 PM - C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\ide\vsixinstaller,/skuName:Enterprise,/skuVersion:15.0,/quiet,/admin,C:\Program Files (x86)\Oracle Developer Tools for VS2017\odt\Oracle.VsDevTools.15.0.vsix,/logFile:C:\Users\maaz\AppData\Local\Temp\Oracle.VsDevTools.15.0_vsix_7-24-2019_14-33-47.log
24/07/2019 2:33:48 PM - -------------------------------------------
24/07/2019 2:33:48 PM - Microsoft VSIX Installer
24/07/2019 2:33:48 PM - -------------------------------------------
24/07/2019 2:33:48 PM - Failed to initialize settings for Isolated Shell C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\ssms.exe: Unable to find an entry point named '?' in DLL 'PkgdefMgmt.dll'.
24/07/2019 2:33:49 PM - Initializing Install...
24/07/2019 2:33:49 PM - Extension Details...
24/07/2019 2:33:49 PM - Identifier : Oracle.VsDevTools.15.0
24/07/2019 2:33:49 PM - Name : Oracle Developer Tools for Visual Studio 2017
24/07/2019 2:33:49 PM - Author : Oracle Corporation
24/07/2019 2:33:49 PM - Version : 18.3.0
24/07/2019 2:33:49 PM - Description : Oracle Developer Tools for Visual Studio 2017 is a free VS addin that makes it easy to browse and modify Oracle schema objects and data, edit and debug PL/SQL, generate SQL deployment scripts, perform schema comparisons, tune SQL and .NET app performance, and much more.
24/07/2019 2:33:49 PM - Locale : en-US
24/07/2019 2:33:49 PM - MoreInfoURL : http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index- 097110.html
24/07/2019 2:33:49 PM - InstalledByMSI : False
24/07/2019 2:33:49 PM - SupportedFrameworkVersionRange : [4.5,)
24/07/2019 2:33:49 PM -
24/07/2019 2:33:49 PM - SignatureState : Unsigned
24/07/2019 2:33:49 PM - Supported Products :
24/07/2019 2:33:49 PM - Microsoft.VisualStudio.Community
24/07/2019 2:33:49 PM - Version : [15.0]
24/07/2019 2:33:49 PM - Microsoft.VisualStudio.Pro
24/07/2019 2:33:49 PM - Version : [15.0]
24/07/2019 2:33:49 PM - Microsoft.VisualStudio.Enterprise
24/07/2019 2:33:49 PM - Version : [15.0]
24/07/2019 2:33:49 PM -
24/07/2019 2:33:49 PM - References :
24/07/2019 2:33:49 PM - Prerequisites :
24/07/2019 2:33:49 PM - -------------------------------------------- -----------
24/07/2019 2:33:49 PM - Identifier : Microsoft.VisualStudio.Component.CoreEditor
24/07/2019 2:33:49 PM - Name : Visual Studio core editor
24/07/2019 2:33:49 PM - Version : [15.0,16.0)
24/07/2019 2:33:49 PM -
24/07/2019 2:33:49 PM - Signature Details...
24/07/2019 2:33:49 PM - Extension is not signed.
24/07/2019 2:33:49 PM -
24/07/2019 2:33:51 PM - PKGDEF Information: Looking for master PkgDef file, Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\master.pkgdef
24/07/2019 2:33:51 PM - PKGDEF Information: Creating PkgDefCacheNonVolatile
24/07/2019 2:33:51 PM - PKGDEF Information: Double-checking master pkgdef file
24/07/2019 2:33:51 PM - PKGDEF Information: PkgDefManagement initialized
24/07/2019 2:33:51 PM - PKGDEF Information: RootFolder, Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
24/07/2019 2:33:51 PM - PKGDEF Information: ShellFolder, Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
24/07/2019 2:33:51 PM - PKGDEF Information: PkgDefSearchPath, Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.admin.pkgdef
24/07/2019 2:33:51 PM - PKGDEF Information: ImageManifestSearchPath, Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions;C:\Users\maaz\AppData\Local\Microsoft\VisualStudio\15.0_ae723756\Extensions
24/07/2019 2:33:51 PM - PKGDEF Information: ApplicationExtensionsFolder, Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions
24/07/2019 2:33:51 PM - PKGDEF Information: "ZeroImpact" = dword:0, "MergeRegistry" = dword:3
24/07/2019 2:33:51 PM - PKGDEF Information: Could not find ConfigurationChanged timestamp., PKGDEF: 80070002
24/07/2019 2:33:51 PM - PKGDEF Information: Could not find ConfigurationChanged timestamp., PKGDEF: 80070002
24/07/2019 2:33:51 PM - PKGDEF Information: User extensions enabled by setting, Path: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\15.0_ae723756\ExtensionManager\EnableAdminExtensions
24/07/2019 2:33:51 PM - PKGDEF Information: PkgDefCache flags, PKGDEF: 7001
24/07/2019 2:33:51 PM - PKGDEF Information: Could not find ConfigurationChanged timestamp., PKGDEF: 80070002
24/07/2019 2:33:51 PM - PKGDEF Information: Could not find ConfigurationChanged timestamp., PKGDEF: 80070002
24/07/2019 2:33:51 PM - PKGDEF Information: PkgDefManagement startup complete
24/07/2019 2:33:52 PM - The extension with ID 'Oracle.VsDevTools.15.0' is not installed to Visual Studio Enterprise 2017.
24/07/2019 2:33:52 PM - Beginning to install extension to Visual Studio Enterprise 2017...
24/07/2019 2:33:52 PM - Install Error : System.IO.FileNotFoundException: Unable to find the specified file.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.GetInstanceForSetupI nstance(ISetupInstance2 currentSetupInstance, ServiceProvider setupServiceProvider)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.Install(IInstallableExtension extension, InstallFlags installFlags)
at VSIXInstaller.App.InstallSilently(IInstallableExtension extension, IReadOnlyList`1 installSKUs)
24/07/2019 2:33:52 PM - VSIX TaskScheduler: VSIX Auto Updatetask already exists.
24/07/2019 2:33:52 PM - System.IO.FileNotFoundException: Unable to find the specified file.
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.GetInstanceForSetupInstance(ISetupInstance2 currentSetupInstance, ServiceProvider setupServiceProvider)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.Install(IInstallableExtension extension, InstallFlags installFlags)
at VSIXInstaller.App.InstallSilently(IInstallableExtension extension, IReadOnlyList`1 installSKUs)
at VSIXInstaller.App.OnStartup(StartupEventArgs e)
我已经下载了适用于 Visual Studio 2017 的最新版本的 odt
答案1
我正在使用适用于 Visual Studio 2017 的最新版本的 Oracle Developer Tools。
您可能正在使用插件的最新版本,但您没有运行 Visual Studio 2017 的当前版本,因为您遇到的问题已在 中修复Visual Studio 2017 15.3.2
。升级到 后,Visual Studio 2017 15.9.14
您应该能够毫无问题地安装插件。
此问题已修复,现已在我们的最新更新中提供。您可以通过产品内通知或从此处下载更新:https://www.visualstudio.com/vs/感谢所有提供反馈的人。
来源:无法初始化独立 Shell C:\Program Files (x86)\Microsoft SQL 的设置
在 VSIX 安装/卸载期间,Visual Studio 升级因 AccessDenied 失败而失败。