【问题标题】:How to install `Installer Projects` for Visual Studio 2019如何为 Visual Studio 2019 安装“安装程序项目”
【发布时间】:2020-02-27 09:35:59
【问题描述】:

当我尝试为 Visual Studio 2019 安装 Installer Project-Package 时,我会收到以下日志:

27.02.2020 10:30:57 - -------------------------------------------
27.02.2020 10:30:57 - Microsoft VSIX Installer
27.02.2020 10:30:57 - -------------------------------------------
27.02.2020 10:31:03 - Initializing Install...
27.02.2020 10:31:07 - Extension Details...
27.02.2020 10:31:07 -   Identifier         : VSInstallerProjects
27.02.2020 10:31:07 -   Name               : Microsoft Visual Studio Installer Projects
27.02.2020 10:31:07 -   Author             : Microsoft
27.02.2020 10:31:07 -   Version            : 0.9.6
27.02.2020 10:31:07 -   Description        : This official Microsoft extension provides support for Visual Studio Installer Projects in Visual Studio.
27.02.2020 10:31:07 -   Locale             : en-US
27.02.2020 10:31:07 -   MoreInfoURL        : 
27.02.2020 10:31:07 -   InstalledByMSI     : False
27.02.2020 10:31:07 -   SupportedFrameworkVersionRange : [4.6.1,)
27.02.2020 10:31:07 - 
27.02.2020 10:31:09 -   SignatureState     : ValidSignature
27.02.2020 10:31:09 -   SignedBy           : Microsoft Corporation
27.02.2020 10:31:09 -   Certificate Info   : 
27.02.2020 10:31:09 -       -------------------------------------------------------
27.02.2020 10:31:09 -       [Subject]       : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
27.02.2020 10:31:09 -       [Issuer]        : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
27.02.2020 10:31:09 -       [Serial Number] : 3300000305DFD27DFE8F86CDB3000000000305
27.02.2020 10:31:09 -       [Not Before]    : 05.06.2019 19:36:58
27.02.2020 10:31:09 -       [Not After]     : 03.06.2020 19:36:58
27.02.2020 10:31:09 -       [Thumbprint]    : 417A476992589EA95299F5057960010675759457
27.02.2020 10:31:09 - 
27.02.2020 10:31:09 -   Supported Products : 
27.02.2020 10:31:09 -       Microsoft.VisualStudio.Community
27.02.2020 10:31:09 -           Version : [15.0,17.0)
27.02.2020 10:31:09 - 
27.02.2020 10:31:09 -   References         : 
27.02.2020 10:31:09 -   Prerequisites      : 
27.02.2020 10:31:09 -       -------------------------------------------------------
27.02.2020 10:31:09 -       Identifier   : Microsoft.VisualStudio.MinShell
27.02.2020 10:31:09 -       Name         : Visual Studio Min Shell
27.02.2020 10:31:09 -       Version      : [15.0.26205,17.0)
27.02.2020 10:31:09 - 
27.02.2020 10:31:09 -       -------------------------------------------------------
27.02.2020 10:31:09 -       Identifier   : Microsoft.Component.ClickOnce
27.02.2020 10:31:09 -       Name         : ClickOnce Publishing
27.02.2020 10:31:09 -       Version      : [15.0,17.0)
27.02.2020 10:31:09 - 
27.02.2020 10:31:09 - Signature Details...
27.02.2020 10:31:09 -   Extension is signed with a valid signature.
27.02.2020 10:31:09 - 
27.02.2020 10:31:09 - System.Runtime.InteropServices.COMException (0x80070490): Element nicht gefunden. (Exception from HRESULT: 0x80070490)
   bei Microsoft.VisualStudio.Setup.Configuration.ISetupConfiguration2.GetInstanceForPath(String path)
   bei VSIXInstaller.LocationBasedSKU..ctor(String appidInstallPath, String appidName, Version vsVersion, String edition, String rootSuffix)
   bei VSIXInstaller.LocationBasedSKU..ctor(String appidInstallPath, String appidName, Version vsVersion, String edition, String rootSuffix, IntPtr alternateUserToken)
   bei VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   bei VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   bei VSIXInstaller.ExtensionService.ComputeInstallableExtensions(IStateData stateData, Boolean isRepairSupported, Boolean isExtensionPack, IDictionary`2 skuDataMapping, IList`1 installableExtensionsPaths)
   bei VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   bei VSIXInstaller.App.Initialize()
   bei System.Threading.Tasks.Task`1.InnerInvoke()
   bei System.Threading.Tasks.Task.Execute()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

有谁知道这些错误的含义以及我能做什么?

【问题讨论】:

  • 看起来像缺少 COM 对象,表明缺少运行时或必备条件 - 或安装损坏。尝试在不同的机器或虚拟机上?还可以尝试使用不同的管理员权限帐户和maybe skim this list for other things to test and rule out 登录。不确定这个包在 2019 年有效吗?在虚拟机上尝试 2017 年?

标签: installation visual-studio-2019


【解决方案1】:

有谁知道这些错误是什么意思以及我能做什么?

Microsoft Visual Studio Installer Projects扩展在我这边VS2019安装成功。所以我怀疑你的 VS 环境有问题。请按照以下步骤解决您的问题:

1)删除C:\Users\user\AppData\Local\Microsoft\VisualStudio\16.0_xxxxx\ComponentModelCache下的所有VS2019组件缓存

2)禁用Extensions-->Manage Extensions下的任何第三方扩展,以防止任何其他扩展影响它。

3) VS 安装程序中的do a repair

4) 将您的 VS2019 更新到最新版本,不要忘记更新您的操作系统版本,以防有一些修复。

【讨论】:

  • 您好,谢谢您的回答。我按照您的所有步骤操作,但仍然收到错误消息。我将尝试重新安装 Visual Studio 并希望它可以正常工作。现在没有时间,但如果它在接下来的几天有效,我会更新这个问题。
猜你喜欢
  • 2020-04-26
  • 1970-01-01
  • 1970-01-01
  • 2014-10-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多