Skip to content

Instantly share code, notes, and snippets.

@wongsyrone
Last active October 2, 2018 13:03
Show Gist options
  • Save wongsyrone/2ae6b641975b5685abbfd72edd9d483b to your computer and use it in GitHub Desktop.
Save wongsyrone/2ae6b641975b5685abbfd72edd9d483b to your computer and use it in GitHub Desktop.
visual studio 2017 offline installation
create initial layout, this write settings to --layout dir
D:\>vs_community.exe --layout D:\vs2017layout --lang en-US --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.CoreEditor --add Microsoft.VisualStudio.Component.NuGet --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.16299.Desktop --add Microsoft.VisualStudio.Component.Windows81SDK --add Microsoft.Component.VC.Runtime.UCRTSDK
after initial layout creation, just execute this to update layout
D:\>D:\vs2017layout\vs_community.exe --layout D:\vs2017layout
clean old layout, after this cmd, can delete the Archive dir
PS D:\> D:\vs2017layout\vs_community.exe --layout D:\vs2017layout --clean D:\vs2017layout\Archive\{GUID}\Catalog.json
Before installation, install certs, no need to input any passwords
maintainence
https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio
https://docs.microsoft.com/en-us/visualstudio/install/update-a-network-installation-of-visual-studio
https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment