how to install VS2026 on a local air-gapped computer

Eli Feldman 0 Reputation points
2026-11-30T06:16:58.2733333+00:00

I want to install VS2026 on a computer without an internet connection at all.

Not even while installing.

Developer technologies | Visual Studio | Setup
0 comments No comments

2 answers

Sort by: Most helpful
  1. AI answer

    2026-11-30T06:18:01.1733333+00:00

    Create and verify a full Visual Studio 2026 layout on an internet-connected administrative computer, transfer the complete layout to the air-gapped computer, and install from it with --noWeb.^1^

    1. Create the installation layout online

    On an internet-connected computer:

    1. Download the Visual Studio 2026 bootstrapper for the licensed edition:
      • vs_community.exe
      • vs_professional.exe
      • vs_enterprise.exe
    2. Open Command Prompt as administrator.
    3. Create a full layout containing the required language. For Enterprise and English:
    vs_enterprise.exe --layout C:\VSLayout --lang en-US
    vs_enterprise.exe --layout C:\VSLayout --verify
    

    Use the bootstrapper matching your edition. Add other required language codes to the layout command.

    For the initial air-gapped deployment, Microsoft recommends a full layout rather than limiting layout creation with a scenario-specific .vsconfig. Use the .vsconfig later to select which workloads and components are installed on the destination computer.^1^

    Do not use Visual Studio Installer’s Download all, then install files as transferable media. Those files are customized for the computer that downloaded them and are not designed for installation on another computer.^2^

    2. Transfer all required content

    After --verify succeeds, transfer the following through your approved removable-media process:

    • The entire C:\VSLayout directory, without removing or modifying packages.
    • A reviewed .vsconfig file describing the required workloads and components.
    • Any extensions, SDKs, NuGet packages, package feeds, or other dependencies needed by your projects.
    • Any licensing material required by your Visual Studio edition.

    Stage the layout at a stable path on the offline computer, such as C:\VSLayout. Keep it there after installation because Visual Studio records the source path and may require it for adding components, repair, or servicing.^2^

    A Visual Studio layout does not mirror external package feeds or automatically include extensions referenced by a .vsconfig file. Those payloads must be prepared separately.^1^

    3. Prepare certificate trust

    The offline computer must trust the Microsoft certificates used to sign setup packages. If its root and intermediate certificates are not current:

    1. Open C:\VSLayout\Certificates.
    2. Right-click each certificate and select Install Certificate.
    3. Complete the Certificate Manager wizard using the appropriate machine certificate stores.
    4. Leave the password blank if prompted.

    Offline certificate preparation is necessary because Windows cannot retrieve missing certificate-chain information while disconnected.^3^

    Do not re-sign packages or bypass signature verification.

    4. Install without any network access

    Place the desired configuration at, for example, C:\VSConfig\Developer.vsconfig. Open an elevated Command Prompt on the offline computer and run:

    C:\VSLayout\vs_enterprise.exe ^
      --config "C:\VSConfig\Developer.vsconfig" ^
      --addProductLang en-US ^
      --noWeb --passive --wait --norestart
    

    Change the executable to match the edition in the layout.

    --noWeb prevents setup from obtaining missing Visual Studio packages from Microsoft services. If the layout lacks a required package, installation fails rather than going online.^1^

    After completion:

    • Process any restart requirement.
    • Launch Visual Studio using the intended user account.
    • Confirm offline licensing works for your edition.
    • Build and restore a representative solution using only staged dependencies.
    • Check that the configured update source does not reference an internet-only location.

    Ongoing updates

    Retain the complete layout for new installations, component changes, repair, and recovery. Existing offline installations can later be serviced with a verified minimal update layout when its edition, base version, workloads, languages, and target version match the installed client.^4^

    A minimal update layout is not a replacement installation or repair source. Transfer updates into the isolated environment and apply them with administrative privileges and --noWeb.


    References

    1. Deploy and maintain fully offline Visual Studio workstations
    2. Create an offline installation package of Visual Studio for local installation
    3. Install certificates required for Visual Studio offline installation
    4. Update Visual Studio with minimal offline layout - Visual Studio (Windows) | Microsoft Learn
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.
  2. Nancy Vo (WICLOUD CORPORATION) 8,240 Reputation points Microsoft External Staff Moderator
    2026-11-30T07:49:36.9033333+00:00

    Hello @Eli Feldman ,

    Thanks for your question.

    The offline PC doesn't need internet at any point. The download is done once on another Windows PC that has internet. You save Visual Studio into a folder (called a "layout"), copy the folder to the offline PC, and install from it.

    Visual Studio 2026 is supported on Windows 11 and Windows Server 2019, 2022 and 2025. Windows 10 isn't on that list, and Windows Enterprise LTSC editions aren't supported, so please check the offline PC's Windows version first.

    1. On the PC with internet, download the installer for your edition (vs_community.exe, vs_professional.exe or vs_enterprise.exe) from the table in Create and maintain a network installation of Visual Studio. Put it in a new folder, C:\VS2026Layout. Open Command Prompt as administrator and run the following (use your edition's file name):
         cd C:\VS2026Layout
         vs_community.exe --layout C:\VS2026Layout --lang en-US
         vs_community.exe --layout C:\VS2026Layout --verify
      
      This downloads all workloads in English, about 40 GB for Community and 50 GB for Enterprise. If the verify step lists missing or invalid files, run the same command with --fix instead of --verify while the PC is still online.
    2. Copy the whole folder to the offline PC (for example by USB), to the same path C:\VS2026Layout. Install from there, not from the USB drive, and keep the folder after setup. Visual Studio records this path and looks for it when you add components or update later.
    3. On the offline PC, open C:\VS2026Layout\Certificates. For each file, right-click > Install Certificate > Local Machine > Place all certificates in the following store > Trusted Root Certification Authorities. If asked for a password, leave it blank.
    4. Open Command Prompt as administrator and run:
         C:\VS2026Layout\vs_community.exe --noWeb --addProductLang en-US
      
      Select the workloads you need and install. --noWeb makes setup use only the files in the folder. --addProductLang en-US selects English, the language you downloaded. Without it, setup uses your Windows language, which may not be in the folder.

    The "Download all, then install" option in Visual Studio Installer isn't suitable for this. That download is customized for the PC that runs it and isn't designed to be moved to another computer.

    About licensing, since this PC can never sign in:

    • Community doesn't require sign-in. It may ask you to sign in within 30 days, but this doesn't affect use.
    • Professional and Enterprise 2026 are unlocked by signing in with a subscription account. Without sign-in they run as a 30-day trial, so to keep using them you need a product key. Visual Studio 2026 keys aren't on the Visual Studio Subscriptions portal. If your organization uses Volume Licensing, they may be available from your Volume Licensing administrator. Enter the key in File > Account Settings > License with a Product Key.

    More details:

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.