Skip to content

Instantly share code, notes, and snippets.

@alimd
Last active October 26, 2025 09:03
Show Gist options
  • Select an option

  • Save alimd/a20c31732fbb1c190acb9127c4465468 to your computer and use it in GitHub Desktop.

Select an option

Save alimd/a20c31732fbb1c190acb9127c4465468 to your computer and use it in GitHub Desktop.
Create an offline installation of Visual Studio

Visual Studio Offline

Please run cmd as administrator before start.

Create an offline installation of Visual Studio

cd C:\VisualStudioOffline

vs_Enterprise.exe --layout C:\VisualStudioOffline\layout --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCrossPlat --includeRecommended --includeOptional  --lang en-US

Update/Repair layout

cd C:\VisualStudioOffline

vs_Enterprise.exe --layout C:\VisualStudioOffline\layout --fix --lang en-US

vs_Enterprise.exe --layout C:\VisualStudioOffline\layout --clean --lang en-US

Install

cd C:\VisualStudioOffline\layout

vs_Enterprise.exe --noWeb --nocache

Refrences

  1. Create an offline installation of Visual Studio
  2. Use command-line parameters to install Visual Studio
  3. Visual Studio Enterprise component directory
@AdriProg2000
Copy link

Can you make the offline installation .zip please?

@alimd
Copy link
Author

alimd commented Oct 26, 2025

Can you make the offline installation .zip please?

To create a zip file in windows, right-click the C:\VisualStudioOffline and select Send to > Compressed (zipped) folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment