Skip to content

Instantly share code, notes, and snippets.

@altairlage
Last active March 11, 2019 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altairlage/bdae00970121146a5ecf6924c052b2fb to your computer and use it in GitHub Desktop.
Save altairlage/bdae00970121146a5ecf6924c052b2fb to your computer and use it in GitHub Desktop.
References:
https://docs.microsoft.com/pt-br/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017
https://docs.microsoft.com/pt-br/visualstudio/install/workload-and-component-ids?view=vs-2017
https://docs.microsoft.com/pt-br/visualstudio/install/workload-component-id-vs-community?view=vs-2017
https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017
Powershell commands:
setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;
Invoke-Webrequest -uri “https://aka.ms/vs/15/release/vs_enterprise.exe” -Outfile “c:\temp\vs_enterprise.exe”
$scriptblock = {c:\temp\vs_enterprise.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop;includeOptional --quiet}
Invoke-Command -scriptblock $scriptblock
Create offline installer folder:
https://docs.microsoft.com/pt-br/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2017
https://docs.microsoft.com/pt-br/visualstudio/install/automated-installation-with-response-file?view=vs-2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment