簡體   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