Visual Studio 无法在 Windows 10 上正确安装

2024-03-10

我将我的笔记本电脑升级到 Windows 10(无预览版 - 真正的东西!)。然后我安装了 Visual Studio Community Edition 2015(我已经安装了 VS 2013),这样我就可以开始使用 Cordova 功能。安装过程会持续很长时间,最后会出现一页警告。这些警告似乎与日志文件中的条目相对应(在本文的底部)。 我尝试卸载/重新安装 VS2015,认为连接问题是罪魁祸首 - 但这不起作用。 我下载了 ISO,卸载,然后从 ISO 重新安装 - 同样的问题。 好吧,我想无论如何我都会尝试创建一个应用程序,但是我收到了精彩的“对象未设置为引用......”消息框,这当然不会给您任何关于正在发生的事情的线索在。 所以 - 我重新启动 VS2015 并只是尝试创建一个新的非 Cordova 项目 - 我遇到了相同的“对象未设置为引用...”对话框。 我能够打开现有的 VS 2013 项目 - 它工作得很好。 因此,我尝试在 Windows 7 上重复这次奇妙的冒险。一切正常。 我的结论是Win10和VS2015之间存在某种问题。 VS2013 在 Win10 和 Win7 上都运行良好 - VS2015 在 Win7 上运行良好。 我真的很想将我们的团队升级到Win10(遗憾的是,其中一些人正在使用Win8.1),我们也想升级到VS2015,但在我们知道这里发生了什么之前,我们无法继续前进。

我最终在 VS 2013 上安装了 Cordova 扩展 CTP(但我必须对我的 Win10 和 Win7 机器都执行此操作,以便我可以在它们之间共享解决方案),这样我就可以开始 - 效果很好。

我仔细检查了一下,BITS 服务说它正在 Win10 框中运行。

有什么帮助吗?

日志片段如下:

[2AB8:23DC][2015-08-04T07:41:17]i000: MUX:  Source confirmed
[2AB8:2954][2015-08-04T07:41:18]i000: MUX:  Finished connecting secondary installer pipe
[2AB8:23A4][2015-08-04T07:41:24]i000: MUX:  Updating secondary installer progress display name: TypeScript for Visual Studio
[2AB8:23A4][2015-08-04T07:41:35]i000: MUX:  Updating secondary installer progress display name: KB3073097
[2AB8:23A4][2015-08-04T07:44:21]i000: MUX:  Updating secondary installer progress display name: Windows 10 SDK 10.0.10240
[2AB8:23A4][2015-08-04T07:44:25]i000: MUX:  Updating secondary installer progress display name: Android SDK Setup (API Level 19 and 21)
[2AB8:23A4][2015-08-04T07:45:57]i000: MUX:  Updating secondary installer progress display name: Microsoft Visual Studio Emulator for Android
[2AB8:23A4][2015-08-04T07:46:50]i000: MUX:  Updating secondary installer progress display name: Apache Ant (1.9.3)
[2AB8:23A4][2015-08-04T07:47:04]i000: MUX:  Updating secondary installer progress display name: Android Native Development Kit (R10E, 32 bits)
[2AB8:23A4][2015-08-04T07:52:55]i000: MUX:  Updating secondary installer progress display name: Tools for Windows 10 Universal Apps (Windows SDK 10.0.10240)
[2AB8:23A4][2015-08-04T07:53:00]i000: MUX:  Updating secondary installer progress display name: Android SDK Setup (API Level 22)
[2AB8:23A4][2015-08-04T07:53:02]i000: MUX:  Updating secondary installer progress display name: Visual C++ iOS Development
[2AB8:23A4][2015-08-04T07:53:08]i000: MUX:  Updating secondary installer progress display name: Visual C++ Android Development
[2AB8:23A4][2015-08-04T07:53:14]i000: MUX:  Updating secondary installer progress display name: HTML/JavaScript (Apache Cordova) Update 1
[2AB8:23A4][2015-08-04T07:53:22]i000: MUX:  Updating secondary installer progress display name: C#/.NET (Xamarin)
[2AB8:23A4][2015-08-04T07:58:05]i000: MUX:  Updating secondary installer progress display name: Emulators for Windows Mobile 10.0.10240
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: TypeScript for Visual Studio : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: KB3073097 : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Windows 10 SDK 10.0.10240 : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Android SDK Setup (API Level 19 and 21) : This product did not download successfully: BITS download failed. BITS service may have been disabled on the machine.
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Microsoft Visual Studio Emulator for Android : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Apache Ant (1.9.3) : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Android Native Development Kit (R10E, 32 bits) : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Tools for Windows 10 Universal Apps (Windows SDK 10.0.10240) : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Android SDK Setup (API Level 22) : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Visual C++ iOS Development : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Visual C++ Android Development : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: HTML/JavaScript (Apache Cordova) Update 1 : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: C#/.NET (Xamarin) : This product did not download successfully: 
[2AB8:1968][2015-08-04T07:58:08]i000: MUX:  ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Emulators for Windows Mobile 10.0.10240 : This product did not download successfully: 
[1C70:27A4][2015-08-04T07:58:39]e000: Error 0x80048648: Process returned error: 0x80048648
[1C70:27A4][2015-08-04T07:58:39]e000: Error 0x80048648: Failed to execute EXE package.
[2AB8:1968][2015-08-04T07:58:39]e000: Error 0x80048648: Failed to configure per-machine EXE package.
[2AB8:1968][2015-08-04T07:58:39]i000: MUX:  Installation size in bytes for package: VSSecondaryInstaller_box MaxAppDrive: 0  MaxSysDrive: 4192628136  AppDrive: 0  SysDrive: 4186217896
[2AB8:1968][2015-08-04T07:58:39]i000: MUX:  ExecutePackageComplete for secondary installer
[2AB8:1968][2015-08-04T07:58:39]i000: MUX:  Disconnecting secondary installer pipe
[2AB8:1968][2015-08-04T07:58:39]i000: MUX:  Return Code:0x80048648 Msi Messages:TypeScript for Visual Studio : This product did not download successfully:  Result Detail:0 Restart:None
[2AB8:1968][2015-08-04T07:58:39]i000: MUX:  Set Result: Return Code=-2147187128 (0x80048648), Error Message=TypeScript for Visual Studio : This product did not download successfully: , Result Detail=, Vital=False, Package Action=Install, Package Id=VSSecondaryInstaller_box
[2AB8:1968][2015-08-04T07:58:39]i000: Setting string variable 'BundleResult' to value '0'
[2AB8:1968][2015-08-04T07:58:39]w350: Applied non-vital package: VSSecondaryInstaller_box, encountered error: 0x80048648. Continuing...
[2AB8:1968][2015-08-04T07:58:39]i000: MUX:  ExecutePackageBegin PackageId: community_finalizer

我在安装VS2013 update 5(iso版本)时遇到了类似的问题。

如果您在 Windows 10 中安装/重新安装/更新 VS2013 时出现问题,以下是我成功操作所遵循的步骤:

  1. (暂时)关闭系统还原。
  2. 关闭 AVG 防病毒软件 - 直到下次重新启动并关闭身份 AVG 任务管理器中的保护。如果您使用另一个,请执行相同的操作 防病毒软件。
  3. 安装/卸载/更新 Visual Studio 2013。 当安装/重新安装/更新停止时,结束 64 位 Windows 安装程序 在任务管理器中,操作将继续进行。做同样的事 如果发生同样的情况,直到操作成功完成。
  4. 确保 Windows 安装程序没有在任务管理器中运行,以便下一步 脚步。
  5. 运行 subincl.exe (https://learn.microsoft.com/en-us/archive/blogs/astebner/solving-setup-errors-by-using-the-subinacl-tool-to-repair-file-and-registry-permissions https://learn.microsoft.com/en-us/archive/blogs/astebner/solving-setup-errors-by-using-the-subinacl-tool-to-repair-file-and-registry-permissions).
  6. 在管理模式下运行命令并转到\ProgramData\Package Cache并运行命令:Del /F /S *.msiDelete /F /S *.cab.
  7. 安装/重新安装/更新。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Visual Studio 无法在 Windows 10 上正确安装 的相关文章

随机推荐