Visual Studio Professional 2022 安装程序崩溃
Posted
技术标签:
【中文标题】Visual Studio Professional 2022 安装程序崩溃【英文标题】:Visual Studio Professional 2022 installer crashes 【发布时间】:2022-01-10 01:50:11 【问题描述】:我一直在尝试从 VS Pro 2019 升级到 VS Pro 2022,最终我设法卸载了旧版本,而新版本在安装时崩溃了。
dd_installer_XXX.log 文件以以下异常结束:
[3cb0:0004][2021-12-03T17:23:35] Telemetry property vs.willow.processtype : ui
[3cb0:0001][2021-12-03T17:23:36] Adding Install Log to Watson=C:\Users\***\AppData\Local\Temp\dd_installer_20211203172335.log
[3cb0:0001][2021-12-03T17:23:38] Error 0x57f50000: Unhandled exception has occurred: System.ComponentModel.Win32Exception (0x80004005): Unknown error (0x57f50000)
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
到目前为止,我已尝试应用所有可用的 Windows 更新,现在我使用的是 Win 10 版本 20H2 OS Build 19042.1387。我还尝试卸载所有 Visual Studio 组件并从程序文件目录中删除 Microsoft Visual Studio 文件夹,然后再运行 InstallCleanup.exe。该设备是联想 ThinkPad T480。
有没有其他人遇到过这样的问题并且能够解决它们?我的下一个停靠点是询问服务台是否可以在安装过程中禁用 McAfee,因为这是我不太信任的软件...
【问题讨论】:
服务台应该是您的第一站。 【参考方案1】:与我们的服务台合作禁用 McAfee AV,但安装程序仍然崩溃。似乎与此有关:
https://developercommunity.visualstudio.com/t/visual-studio-2022-installation-fails-because-of-m/1578946
最终我们能够通过使用 Chocolatey 从这里安装程序来解决这个问题:https://community.chocolatey.org/packages/visualstudio2022professional
【讨论】:
以上是关于Visual Studio Professional 2022 安装程序崩溃的主要内容,如果未能解决你的问题,请参考以下文章