How can I install Visual Studio 2019 on a PC that is not connected to the internet?

Frank DiFonzo 0 Reputation points
2023-02-01T16:50:16.9866667+00:00

Please help me understand how to install Visual Studio 2019 on a PC that is not connected to the internet? When running the VS2019 installer downloaded from Microsoft on the standalone PC, the application needs a connection to the internet in order to download the needed software. Is it possible to download the needed files to my online PC, then copy these files to the standalone PC and perform the install (after I provide the valid key code)?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Philippe Levesque 5,681 Reputation points MVP
    2023-02-01T17:00:37.37+00:00

    Hi, please follow that guide to download an offline installation to install on other computer.

    Create, maintain, and deploy a network installation of Visual Studio

    That will create a "layout" to be able to reinstall somewhere else.

    0 comments No comments

  2. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2023-02-02T10:17:20.48+00:00

    Hi @Frank DiFonzo ,

    Welcome to Microsoft Q&A forum.

    You need to download the bootstrapper file > use the command line to download the workloads and components to a generated layout folder > copy this layout folder to your offline machine > open the layout folder and double-click to run the setup file(.exe) of VS > VS Installer will be installed firstly and then you need to select the corresponding workloads and components that you downloaded into the layout folder in VS Installer > click to install the VS.

    Besides, here’s the workloads and components IDs for you to refer to.

    BTW, if you are going to install VS Community version on an offline machine, then you may need to connect to network to sign in/update sign-in VS periodically. If you are going to install Professional or Enterprise version, then you can use product key to activate/sign in VS.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments