title: How to download Visual Studio 2017 Community Edition for offline installation?
body: <p>I am trying to get a Visual Studio 2017 Community Edition offline distribution by executing <code>vs_Community.exe --layout f:\vs2017c\</code> as offered in <a href="https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio" rel="noreferrer">the documentation</a> (<code>vs_Community.exe</code> downloaded <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community" rel="noreferrer">here</a>, or by <a href="https://download.microsoft.com/download/D/1/4/D142F7E7-4D7E-4F3B-A399-5BACA91EB569/vs_Community.exe" rel="noreferrer">direct link</a>) but this doesn't work. All I get are 2 files: <code>f:\vs2017c\vs_installer.version.json</code> and <code>f:\vs2017c\certificates\vs_installer_opc.SignCertificates.p12</code>. I have also tried <code>/layout</code> instead of <code>--layout</code> with no luck. What am I doing wrong? By the way, are there ISO files available perhaps?</p>
  
  <p><strong>UPDATE:</strong> I have installed the certificate, restarted the computer and re-tried running the installer a number of times. Nothing has really changed. A couple of times I could notice something written in red appearing in the console for less than half a second. Finally I have ran CCleaner (with full CCEnhancer custom to-clean list) to clean up everything (again! I have already done this before the first try) and tried again and now it is downloading...</p>
  
  <p><strong>UPDATE2:</strong></p>
  
  <p>I thought I have succeede but I was wrong. What I have done was a bat file of the following contents:</p>
  
  <pre><code>vs_Community.exe --layout f:\vs2017c --lang en-US --add [a list of 133 individual component IDs]
  </code></pre>
  
  <p>As the result of running this command the installer has tried to download all the components (including those I did not select) in all the languages (I only need en-us).</p>
  
  <p>I have noticed it is downloading what I don't need, terminated the process and deleted everything for a fresh start. Next time I have only individual workloads instead of listing all the individual components. I have even tried simplifying it to just one workload like</p>
  
  <pre><code>vs_Community.exe --lang en-US --layout f:\vs2017c\ --add Microsoft.VisualStudio.Workload.ManagedDesktop
  </code></pre>
  
  <p>but this just doesn't work. Instead, the following pops up for half a second as the "Give us a minute. We'll be done soon..." progress bar finishes:</p>
  
  <p><a href="https://i.stack.imgur.com/WzISt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WzISt.png" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE3:</strong></p>
  
  <p>I have found out that putting  the backslash at the end of the layout path beraks the stuff. I.e. <code>vs_Community.exe --layout f:\vs2017c</code> works but <code>vs_Community.exe --layout f:\vs2017c\</code> does not. This is not the only problem, however - listing a number of workloads tohether with <code>;includeRecommended;includeOptional</code> after <code>vs_Community.exe --layout f:\vs2017c</code> breaks it too (although it worked as I've tried it with just one workload and one extra component AND (an important condition) purged the temporary files)...</p>
  
  <p><strong>UPDATE4:</strong></p>
  
  <p>I have managed to grab the <code>f:\vs2017c\q.2ho\resources\app\layout\Setup.exe</code> you can see in the window title on the screenshot (which is a little bit tricky as it appears for just some seconds and gets automatically deleted shortly after) but its help output is very different from the one above. It seems that it chain-launched some other exe in the previous case. Its own output is below, no obvious way to specify individual workloads/components:</p>
  
  <p><a href="https://i.stack.imgur.com/f5dmC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/f5dmC.png" alt="q.2ho\resources\app\layout\Setup.exe output"></a></p>
  
  <p>Finally I have given up trying to choose individual components and workloads and tried the following with no luck either: <code>vs_Community.exe --lang en-en --layout f:\vs2017c --all --includeRecommended --includeOptional</code>.</p>
  
  <p>At the end I have ended up using just <code>vs_Community.exe --lang en-en --layout f:\vs2017c --all</code> - it works and only downloads the language I need, though includes a number of components I don't need actually. The resulting directory size is 18 gigabytes.</p>
  
  <p>I've finished downloading and dot it installed already as by now but the question about how to actually use the layout feature parameters reliably the way they are meant to remains.</p>