title: How do I vs2019 for C++ from command line with a specified config file?
body: <p>I'm aware that I can install vs2019 by checking the option in GUI interaction. Actually, I've setup a box this way. I'm trying another way.</p>
  <p><a href="https://i.stack.imgur.com/lJzu0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lJzu0.png" alt="enter image description here" /></a></p>
  <p>Per <a href="https://docs.microsoft.com/en-us/visualstudio/install/command-line-parameter-examples?view=vs-2019" rel="nofollow noreferrer">ms doc</a> I can do the job from command line.</p>
  <pre><code>vs_enterprise.exe --installPath C:\minVS ^
  --add Microsoft.VisualStudio.Workload.CoreEditor ^
  --passive --norestart
  </code></pre>
  <p>The command above would install a minimal instance of Visual Studio, with no interactive prompts but progress displayed.</p>
  <p>How do I use this approach to install vs2019 for C++ from command line with a specified config file?</p>
  <pre><code>{
    &quot;version&quot;: &quot;1.0&quot;,
    &quot;components&quot;: [
      &quot;Microsoft.VisualStudio.Component.CoreEditor&quot;,
      &quot;Microsoft.VisualStudio.Workload.CoreEditor&quot;,
      &quot;Microsoft.VisualStudio.Component.NuGet&quot;,
      &quot;Microsoft.VisualStudio.Component.Roslyn.Compiler&quot;,
      &quot;Microsoft.Component.MSBuild&quot;,
      &quot;Microsoft.VisualStudio.Component.TextTemplating&quot;,
      &quot;Microsoft.VisualStudio.Component.IntelliCode&quot;,
      &quot;Component.Microsoft.VisualStudio.LiveShare&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.CoreIde&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.Tools.x86.x64&quot;,
      &quot;Microsoft.VisualStudio.Component.Graphics.Tools&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.DiagnosticTools&quot;,
      &quot;Microsoft.VisualStudio.Component.Debugger.JustInTime&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.Redist.14.Latest&quot;,
      &quot;Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core&quot;,
      &quot;Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.CMake.Project&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.ATL&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest&quot;,
      &quot;Microsoft.VisualStudio.Component.VC.ASAN&quot;,
      &quot;Microsoft.VisualStudio.Workload.NativeDesktop&quot;
    ]
  }
  </code></pre>
  <p>This configuration file is exported from vs2019 bootstrapper.</p>