Visual Studio 未在 Windows 10 上正确安装 [英] Visual Studio does not install correctly on Windows 10

查看:36
本文介绍了Visual Studio 未在 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:来源确认[2AB8:2954][2015-08-04T07:41:18]i000:MUX:完成连接二次安装管道[2AB8:23A4][2015-08-04T07:41:24]i000:MUX:更新辅助安装程序进度显示名称:Visual Studio 的 TypeScript[2AB8:23A4][2015-08-04T07:41:35]i000:MUX:更新辅助安装程序进度显示名称:KB3073097[2AB8:23A4][2015-08-04T07:44:21]i000:MUX:更新辅助安装程序进度显示名称:Windows 10 SDK 10.0.10240[2AB8:23A4][2015-08-04T07:44:25]i000:MUX:更新辅助安装程序进度显示名称:Android SDK 设置(API 级别 19 和 21)[2AB8:23A4][2015-08-04T07:45:57]i000:MUX:更新辅助安装程序进度显示名称:Microsoft Visual Studio Emulator for Android[2AB8:23A4][2015-08-04T07:46:50]i000:MUX:更新辅助安装程序进度显示名称:Apache Ant (1.9.3)[2AB8:23A4][2015-08-04T07:47:04]i000:MUX:更新辅助安装程序进度显示名称:Android 原生开发工具包(R10E,32 位)[2AB8:23A4][2015-08-04T07:52:55]i000:MUX:更新辅助安装程序进度显示名称:Windows 10 通用应用程序工具(Windows SDK 10.0.10240)[2AB8:23A4][2015-08-04T07:53:00]i000:MUX:更新辅助安装程序进度显示名称:Android SDK 设置(API 级别 22)[2AB8:23A4][2015-08-04T07:53:02]i000:MUX:更新辅助安装程序进度显示名称:Visual C++ iOS 开发[2AB8:23A4][2015-08-04T07:53:08]i000:MUX:更新辅助安装程序进度显示名称:Visual C++ Android Development[2AB8:23A4][2015-08-04T07:53:14]i000:MUX:更新辅助安装程序进度显示名称:HTML/JavaScript (Apache Cordova) Update 1[2AB8:23A4][2015-08-04T07:53:22]i000:MUX:更新辅助安装程序进度显示名称:C#/.NET (Xamarin)[2AB8:23A4][2015-08-04T07:58:05]i000:MUX:更新辅助安装程序进度显示名称: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 : 此产品未成功下载:[2AB8:1968][2015-08-04T07:58:08]i000: MUX: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: KB3073097 : 此产品未成功下载:[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 : 此产品未成功下载:[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) : 这个产品没有下载成功:BITS 下载失败.机器上的 BITS 服务可能已被禁用.[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 : 此产品未成功下载:[2AB8:1968][2015-08-04T07:58:08]i000: MUX: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Apache Ant (1.9.3) : 此产品未成功下载:[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) : 这个产品没有下载成功:[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): 这个产品未成功下载:[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) : 此产品未成功下载:[2AB8:1968][2015-08-04T07:58:08]i000: MUX: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Visual C++ iOS Development: 此产品未成功下载:[2AB8:1968][2015-08-04T07:58:08]i000: MUX: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Visual C++ Android Development: 此产品未成功下载:[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 : 此产品未下载成功地:[2AB8:1968][2015-08-04T07:58:08]i000: MUX: ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: C#/.NET (Xamarin) : 此产品未成功下载:[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 : 此产品未成功下载:[1C70:27A4][2015-08-04T07:58:39]e000:错误 0x80048648:进程返回错误:0x80048648[1C70:27A4][2015-08-04T07:58:39]e000:错误 0x80048648:无法执行 EXE 包.[2AB8:1968][2015-08-04T07:58:39]e000:错误 0x80048648:无法配置每台机器的 EXE 包.[2AB8:1968][2015-08-04T07:58:39]i000:MUX:包的安装大小(以字节为单位):VSSecondaryInstaller_box MaxAppDrive:0 MaxSysDrive:4192628136 AppDrive:0 SysDrive:4186217896[2AB8:1968][2015-08-04T07:58:39]i000:MUX:二级安装程序的 ExecutePackageComplete[2AB8:1968][2015-08-04T07:58:39]i000:MUX:断开辅助安装管道[2AB8:1968][2015-08-04T07:58:39]i000:MUX:返回代码:0x80048648 Msi 消息:Visual Studio 的 TypeScript:此产品未成功下载:结果详细信息:0 重启:无[2AB8:1968][2015-08-04T07:58:39]i000: MUX: Set Result: Return Code=-2147187128 (0x80048648), Error Message=TypeScript for Visual Studio : 此产品未成功下载:, 结果详细信息=, Vital=False, Package Action=Install, Package Id=VSSecondaryInstaller_box[2AB8:1968][2015-08-04T07:58:39]i000:将字符串变量BundleResult"设置为值0"[2AB8:1968][2015-08-04T07:58:39]w350:应用的非关键包:VSSecondaryInstaller_box,遇到错误:0x80048648.继续...[2AB8:1968][2015-08-04T07:58:39]i000: MUX: ExecutePackageBegin PackageId: community_finalizer

解决方案

我在安装VS2013 update 5(iso version)时遇到类似问题.

如果您在 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. 安装/重新安装/更新.

I upgraded my laptop to Windows 10 (no preview edition - the real thing!). I then installed Visual Studio Community Edition 2015 (I already have VS 2013 installed) so I can begin to use the Cordova functionality. The install churns and burns for a long time and finally finishes with a pageful of warnings. The warnings seem to correspond to entries in the log file (at the bottom of this post). I have tried uninstalling / reinstalling VS2015 thinking that a connection issue was the culprit - this did not work. I downloaded the ISO, uninstalled, and then reinstalled from the ISO - same problem. Well, I thought that I would try to just create an app anyway, but I was greeted with the wonderful "Object not set to a reference...." message box which of course does not give you a clue as to what is going on. So - I restarted VS2015 and just tried to create a new non-Cordova project - I was greeted with the same "Object not set to a reference..." dialog box. I was able to open an existing VS 2013 project - it worked fine. So, I tried to repeat this wonderful adventure on Windows 7. Everything worked fine. My conclusion is that there is some kind of issue between Win10 and VS2015. VS2013 works great on both Win10 and Win7 - and VS2015 works fine on Win7. I really want to upgrade our team to Win10 (some of them, sadly, are on Win8.1), and we also want to move to VS2015, but we cant go forward until we know what is going on here.

I finally installed the Cordova extensions CTP on VS 2013 (but I had to do this to both my Win10 and my Win7 box so I could share the Solution between them) just so I could get going - that works great.

I double checked and the BITS service says that it is running in the Win10 box.

Any help?

Log Snip below:

[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

解决方案

I encountered similar problem in installing VS2013 update 5(iso version).

If you somehow messed up the installation/re-installation/Update of VS2013 in Windows 10, here are the steps I followed for successful operation:

  1. Turn off system restore (temporarily).
  2. Turn off AVG antivirus - until next reboot and turn off identity AVG protection in task manager. Do the same thing if you're using another antivirus.
  3. Install/Uninstall/Update Visual Studio 2013. When install/reinstall/update stalls, end the 64 bit windows installer in task manager and the operation will proceed. Do the same thing if the same happens until the operation is finished successfully.
  4. Make sure windows installer is not running in task manager for next steps.
  5. Run subincl.exe (http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx).
  6. Run command in admin mode and go to \ProgramData\Package Cache and run the command: Del /F /S *.msiDelete /F /S *.cab.
  7. Install/Reinstall/Update.

这篇关于Visual Studio 未在 Windows 10 上正确安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆