繁体   English   中英

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

[英]Visual Studio does not install correctly on Windows 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( http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx )。
  6. 在管理员模式下运行命令并转到\\ProgramData\\Package Cache并运行命令: Del /F /S *.msiDelete /F /S *.cab.
  7. 安装/重新安装/更新。

我在Windows 10上发现了VS2015的许多问题。太多了。

一种可行的方法是在安装VS2015后重新安装所有第三方工具。 例如,安装VS2015和组件。 接下来卸载操作系统上与Cordova相关的任何内容。 接下来逐个安装第三方Cordova组件,最后重新安装并修复VS2015 Cordova组件。 我还没有尝试在VS2015和Windows 10上使用Cordova。

但是,例如,安装VS2015后升级到Windows 10将完全破坏Hyper-V环境。 这可以通过黑客攻击Hyper-V设置来解决。 然而,这也会打破你的Genymotion和VirtualBox安装(必须重新安装)。 此外,用于Android的Microsoft Visual Studio模拟器根本不起作用 - 不要浪费你的时间。 我卸载了我的。

这些问题在微软已知(我在过去48小时内已经与主要的MS员工就这些主题直接发送了电子邮件),他们说他们正在努力解决这些问题。

绝对是一项正在进行的工作。 祝你在Windows 10上使用VS2015好运。

我安装包时因为网络问题而遇到同样的问题。 因为下载缓存,我准备安装VS2015时无法解决问题。

最后,我删除“C:\\ ProgramData \\ Package Cache”下的所有文件夹,然后重新安装VS2015,不用担心,这很快。

问题得到解决。

祝好运!!!

如果您在VM中进行安装,则没有解决方案,模拟器本身就是虚拟机,如果您在Hyper-V环境中运行,则似乎存在问题。 我可以像在VMWare Workstation中运行一样确认并遇到同样的问题。 这应该会减少搜索解决方案的范围。

“使用Hyper-V模拟设备当您在没有虚拟化的真实硬件上安装Visual Studio 2015时,您可以选择使用Hyper-V模拟Windows和Android设备的功能。当您安装到Hyper-V中时,您将无法模拟Windows或Android设备。这是因为模拟器本身就是虚拟机,您当前无法在另一个VM中托管VM。解决方法是使用真正的Windows或Android设备,您可以直接部署和调试应用程序。“

我和VS2015有类似的问题,因为VS2015,我最终重新格式化了我的电脑。 我做的是:我下载了VS2015的默认设置。 然后它工作了! 但下载这些功能是可怕的。 我有必要使用Tools和Windows SDK,我需要Common C ++。 所以我首先下载了Common C ++,然后创建了一个还原点(如果Tools和Windows SDK的安装不成功,我会备份我的文件)。 现在VS2015工作正常,但不确定你是否可以免费下载一些功能。 希望这可以帮助你:)

它帮助我重新启用“从其他PC下载更新”,我因某些原因禁用了这些更新。

要做到这一点1.转到设置/更新和安全/ Windows更新/高级选项/选择更新的交付方式2.确保它是“开启”和“本地网络上的PC和Internet上的PC”

在我的BizSpark Enterprise for License过期后,我在安装VS2015 Professional时遇到了很多问题。 我必须完成上述所有操作,以及删除/重命名文件夹

C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18

并禁用Windows Defender。 不过,我的安装会闪现闪屏并挂起。 最终工作的是从Windows组件中删除.NET 2.0和3.5。 (除了已经列出的所有步骤之外,不是替代。)我还确保ISO文件的SHA1值匹配并运行TotalUninstaller工具以删除旧安装的每个跟踪。

现在我有一个不同的问题,祝我好运! 我其实喜欢Windows 10和VS2015,但有几天......

乔伊

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM