Too many log files being created in Temp folder

From the logs I figured out that Visual Studio 2013 was not installed correctly. After running repair from the Visual Studio installer the problem got resolved.


This article describes the problem and gives the solution. It worked in my case:

If you have Microsoft Visual Studio 2013 Professional, Premium, or Ultimate editions installed and are finding many small MSI*.log files in your %TEMP% directory, you may find you are running low on disk space because of how many of these files are created. While they may only be about 3MB, what causes these files to be produced can do so often enough that it may not take long to fill up the drive where %TEMP% resides.

Workaround

We are consistently seeing this issue caused by a missing directory, C:\Windows\Microsoft.NET\Framework\URTInstallPath_GAC (or %SystemRoot%\Microsoft.NET\Framework\URTInstallPath_GAC).

To work around this issue,

  1. Open an elevated command prompt.
  2. Type: mkdir %SystemRoot%\Microsoft.NET\Framework\URTInstallPath_GAC

In PowerShell, use $env:SystemRoot instead of %SystemRoot%.