
我嘗試在 Windows 7 Home Premium 64 位元電腦上安裝 Visual Studio 2012,但安裝失敗。我嘗試安裝所有版本(Premium、Ultimate 等),但出現以下錯誤。
該電腦未加入網域,我以管理使用者身分登入。我正在使用 Security Essentials,但在安裝之前將其關閉。安裝來源來自MSDN。
錯誤日誌太大而無法上傳,但以下是日誌中的重要部分:
[1350:2188] [2012-10-07T18:24:13]:MUX:錯誤:「System.Windows.Media.FontFamily」的型別初始值設定項引發例外狀況。 [1350:2188] [2012-10-07T18:24:13]:MUX:堆疊:位於MS.Internal的System.Windows.Media.Typeface..ctor(FontFamily fontFamily,FontStyle樣式,FontWeight重量,FontStrface..ctor(FontFamily fontFamily,FontStyle樣式,FontWeight重量,FontStretch拉伸) 。
TextBlock
。
Measure(在 System.Windows.Controls.StackPanel.MeasureOverride(大小約束)處的大小 availableSize)
在 System.Windows.FrameworkElement.MeasureCore(大小可用的大小)
在System.Windows.UIElement.Measure(大小可用的大小) 在
System.Windows.Controls.Grid處。MeasureCell (Int32 cell,布林forceInfinityV)
在System.Windows.Documents.AdornerDecorator.MeasureOverride(大小約束) 在System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在System.Windows.UIElement.Measure(Size availableSize) 在System.Windows.Controls.Bize.Windows.Controls.B.Measure )約束)在System.Windows.FrameworkElement.MeasureCore(大小可用大小) 在System.Windows.UIElement.Measure(大小可用大小) 在System.Windows.Window.MeasureOverrideHelper(大小約束)在System.Windows.Window.MeasureOverride(大小可用大小)在System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在System.Windows.UIElement.Measure(Size availableSize) 在System.Windows.Interop.HwndSource.SetLayoutSize() 在System.Windows. (視覺值)在System.Windows.Interop.HwndSource.set_RootVisual(視覺值)
在System.Windows.Window.SetRootVisual()在System.Windows.Window.SetupInitialState(雙重請求頂部,雙重請求左,雙重請求寬度,雙請求寬度,雙請求寬度請求高度)在System.Windows。 Bootstrapper.ManagedUx.RunUI(ViewModelCommonUi viewModel )在Microsoft.Devdiv.Bootstrapper.ManagedUx.InternalRun() 在Microsoft.Devdiv.Bootstrapper.ManagedUx.Run() 在System.Threading.ThStart.Bootstrapper.ManagedUx.Run() 在System.Threading.ThStart.ThStart.ThStartS. ExecutionContext.Run(ExecutionContextexecutionContext, ContextCallback回調,物件狀態)位於 System.Threading.ThreadHelper.ThreadStart()
答案1
可能是損壞的字體。試試這 3 種方法來解決問題
答案2
好像需要VS 2010的一些組件,所以我先安裝了VS 2010,然後安裝了VS 2012,成功了。
之後我卸載了 VS 2010。
這看起來很奇怪,但這只對我有用。