I followed the instructions here:
vs_enterprise.exe --layout D:\Downloads\VS2017 --lang en-US
After downloading 12.5 GB, it reported "There is not enough space on the disk" and crashed (the full error is below). I was downloading to a folder on a drive that has almost 1.9 TB free (D:), so I was puzzled how it could run out of space. However, then I noticed that it has filled up my SSD (C:) which was almost full. I found the 7.5 GB folder "C:\Users\jminer\AppData\Local\Temp\e244pwhd" that contains the Visual Studio 2017 install files that the installer left behind when it crashed. The installer should not require much free space on any drive except the one it is downloading to.
I'm not sure I can download it until this problem is fixed because it is difficult to free up more space on C:. Full error:
Error: Package 'Microsoft.TeamFoundation.OfficeIntegration,version=15.108.25918.0,chip=x86' failed to download from 'https://download.microsoft.com/download/A/E/7/AE77DD6A-65D5-4354-9008-8192FA5DC9CC/cab1.cab'. Bits download failed: File not found.. WinInet download failed: There is not enough space on the disk. . WebClient download failed: There is not enough space on the disk.
Unhandled Exception: System.IO.IOException: There is not enough space on the disk.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.WriteCore(Byte buffer, Int32 offset, Int32 count) at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer) at System.IO.FileStream.Flush(Boolean flushToDisk) at System.IO.TextWriter.SyncTextWriter.Flush() at Microsoft.VisualStudio.Setup.Services.FileLogger.WriteLine(String format, Object args) at Microsoft.VisualStudio.Setup.Services.AggregateLogger.WriteCallback(Action`1 callback) at Microsoft.VisualStudio.Setup.Services.AggregateLogger.WriteError(Exception ex, String format, Object args) at Microsoft.VisualStudio.Setup.Activities.AsyncCoordinator.InvokeAsync(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj)
Added a solution by Timotei Dolean · Mar 19 at 09:12 PM
This seems like a super big oversight by the installer.
I solved it by doing the following: I chose "D:\tmp" as the designated temporary directory, on a drive where I have a big amount of space. I executed the following commands from the command line:
setx TMP D:\tmp setx TEMP D:\tmp vs_Enterprise.exe --layout VS2017Enterprise --lang en-US
After the installer completes downloading everything:
setx TMP %USERPROFILE%\AppData\Local\Temp setx TEMP %USERPROFILE%\AppData\Local\Temp
Basically, during the executing we override the temp directory
Added a solution by Andrew Sarratori · Dec 05, 2016 at 11:32 PM
Thanks for sending this feedback. I have opened an bug tracking this as it appears to be issue with the package caching mechanism in the installer. In the meantime, the only workaround would be to clear up space on the C-drive as that is where the package cache defaults to currently.
Failed to install Win10SDK package
Blank screen on Install
first installation on windows 7 64bit
SSDT doesn't include MSBuild