Visual Studio setup crashes with an exception after the splash screen is shown

Applies to: Microsoft Visual Studio 2012 Update 4Visual Studio Ultimate 2012Visual Studio Premium 2012

This issue may occur because there are issues with certain fonts on your system, such as invalid characters in the font path or invalid file timestamps. You can use this information in this article to determine whether you are hitting this problem and resolve the problem as needed.

Diagnosis to determine whether fonts on your system are causing this crash


To do this, you have to open the Visual Studio setup log file and look for a particular exception near the end of the log. You can find the setup log file in your %TEMP% directory. The Visual Studio setup log file is typically one of the latest log files in your %TEMP% directory. The name of the Visual Studio setup log file has the following pattern:

dd_<EXE name>_<Time stamp>.log

The <Time stamp> token in the log name pattern has the time format: yyyymmddhhmmss. The <EXE name> token in the log name pattern is the same name as the setup executable. The setup executable name varies by the name of the Visual Studio product that you tried to install. The following are examples of the value in the <Exe name> token:

Visual Studio product short name<EXE name> value
Ultimatevs_ultimate
Premiumvs_premium
Professionalvs_professional
Windows Expresswinexpress_full
Web Expressvns_full
Desktop Expresswdexpress_full
As soon as you find the Visual Studio setup log, you have to look for one of the following messages that are logged near the end of the log file:
Exception typeMessages


Invalid font name or path[70B4:8A7C][<Time stamp>]e000: MUX: ERROR: The type initializer for 'System.Windows.Media.FontFamily' threw an exception.
[70B4:8A7C][<Time stamp>]e000: MUX: Stack: at System.Windows.Media.Typeface..ctor(FontFamily fontFamily, FontStyle style, FontWeight weight, FontStretch stretch)
at MS.Internal.Text.DynamicPropertyReader.GetTypeface(DependencyObject element)
at MS.Internal.Text.TextProperties.InitCommon(DependencyObject target)
at MS.Internal.Text.TextProperties..ctor(FrameworkElement target, Boolean isTypographyDefaultValue)
Invalid font time stamp[70B4:8A7C][<Time stamp>]e000: MUX: ERROR: The type initializer for 'System.Windows.Media.FontFamily' threw an exception.
[70B4:8A7C][<Time stamp>]e000: MUX: Stack: at System.Windows.Media.Typeface..ctor(FontFamily fontFamily, FontStyle style, FontWeight weight, FontStretch stretch)
at MS.Internal.Text.DynamicPropertyReader.GetTypeface(DependencyObject element)
at MS.Internal.Text.TextProperties.InitCommon(DependencyObject target)
at MS.Internal.Text.TextProperties..ctor(FrameworkElement target, Boolean isTypographyDefaultValue)

Workaround


To work around this problem, check whether there are invalid characters in your font paths, and then check whether there are invalid file timestamps in your fonts. To do this, follow these steps:
  1. Check for invalid characters in the font paths

    1. Locate the following registry key by using Registry Editor:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
    2. Examine the individual font paths to see whether there are any invalid characters, such as ":." If there are invalid characters, correct them, and then retry the Visual Studio setup.
  2. Check for invalid file timestamps in the fonts

    1. Open a command prompt, and then locate the following directory:

      %WINDIR%\Font
    2. List the fonts in this directory by using the following command:
      DIR
    3. Look for any invalid timestamps, such as "01/02/20145" for font <Bad font>.TTF.
    4. If there are invalid timestamps, correct them. To do this, follow these steps:
      1. Open an elevated PowerShell window, and then input the following command in order to fix the font with the invalid time stamp, substituting your font file name for '<Bad font>.TTF':

        (Get-Item "C:\Windows\Fonts\<Bad font>.TTF").LastWriteTime = "01/01/2014"

      2. Repeat the steps for all fonts by using invalid timestamps, and then retry the Visual Studio setup.


Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.