Visual Studio Community 2022 Offline Installer Review

Problem: You are trying to install VS into a folder that already has files. Solution: Specify a new, empty directory for the installation target, or delete the contents of the target folder.

  • Open an elevated Command Prompt (Run as administrator).
  • Create a layout folder and start the download using the bootstrapper with workload/component selection:
  • Wait for the download to complete. The tool downloads all chosen packages to the layout folder.
  • To install from the layout on an offline machine, run:
    C:\VS2022Offline\vs_setup.exe
    
    or run the bootstrapper in the folder and choose workloads.
  • You likely don't need the Azure SDK, Universal Windows Platform, and Visual Studio Extension development all at once. To create a custom offline installer that only includes the workloads you need, use the --add parameter.

    Example 1: Only .NET Desktop development and C++ Desktop.

    vs_community.exe --layout C:\VS2022_Layout_Selective --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --lang en-US
    

    Example 2: Game dev with Unity and .NET (typical indie dev). visual studio community 2022 offline installer

    vs_community.exe --layout C:\VS2022_Layout_GameDev --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCrossPlat --add Microsoft.VisualStudio.Workload.CoreEditor --lang en-US
    

    Example 3: Only Python and Data Science.

    vs_community.exe --layout C:\VS2022_Layout_Python --add Microsoft.VisualStudio.Workload.Python --lang en-US
    

    To see a list of all available workload IDs, use:

    vs_community.exe --list
    

    This is the most important part. To keep the offline folder manageable, you should only include the workloads you actually need. Here are the most common workload IDs for Community 2022: Problem: You are trying to install VS into

    | Workload | ID | | :--- | :--- | | .NET desktop development | Microsoft.VisualStudio.Workload.ManagedDesktop | | Desktop development with C++ | Microsoft.VisualStudio.Workload.NativeDesktop | | Game development with Unity | Microsoft.VisualStudio.Workload.ManagedGame | | ASP.NET and web development | Microsoft.VisualStudio.Workload.NetWeb | | Python development | Microsoft.VisualStudio.Workload.Python | | Node.js development | Microsoft.VisualStudio.Workload.Node |

    Unlike a standard web installer that downloads only the requested components at the moment of installation, the Visual Studio 2022 offline installer—officially termed a "layout"—is a complete, local copy of the installation media. It is created not by downloading a single executable, but by using the Visual Studio bootstrapper with specific command-line arguments. For example, a developer might run:

    vs_community.exe --layout C:\VS2022_Layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --lang en-US
    

    This command instructs the bootstrapper to download all necessary packages for the specified workloads (e.g., .NET desktop and web development) and language resources into a local folder. The result is a self-contained directory, often several gigabytes in size, that mirrors Microsoft’s distribution servers. This local layout can then be copied to USB drives, network shares, or archived for future use. Open an elevated Command Prompt (Run as administrator)

    Before we dive in, you must understand the files you are dealing with.

    Crucial Note: Microsoft does not provide a single monolithic .exe file for VS 2022 Community. The "offline installer" is actually a layout—a structured folder. You must generate this layout yourself using a command-line tool.