Visual Studio Offline Update
Are you in need of installing Visual Studio 2019 on a machine without internet access? In this blog post, we will guide you through the process of performing an offline installation of Visual Studio 2019. Let’s get started!
Download the Visual Studio Bootstrapper
- Log into the machine with an account that has access to the internet.
- Navigate to https://visualstudio.microsoft.com/vs/older-downloads/.
- Under the 2019 option, click “Download”.
- You will be prompted to log into your Microsoft account. A free account will work fine.
- Save the downloaded file to your local “public downloads” folder.
- The filename will be similar to “vs_professional__375265950.1556885515.exe”.
Create a Local Install Cache
- Log into the machine with a local administrator account.
- To create a complete local layout with all features (this may take a while), follow these steps:
- Open a command prompt.
- Execute the following commands:
cd C:\Users\Public\Downloads vs_professional__375265950.1556885515.exe --layout c:\vslayout --lang en-US
- Note: A complete Visual Studio layout requires a minimum of 35-40 GB of disk space.
Copy the Local Install Cache to A Network Location or USB Drive
- Using a NAS or some other type of media that will hold 35-40GB of data, copy the data so it can be transferred to the offline machine.
- Copy the local install cache to the offline machine to the ~\users\public\public downloads) directory.
Install Visual Studio from the Local Cache
- Navigate to the “vslayout” folder and run the “vs_setup.exe” file as an administrator.
- Click “Continue” when you agree to the Microsoft Software License Terms.
- Do some research to determine which “Workloads” and/or “Individual components” should be installed.
- Reboot the system after the installation has completed.
Register Visual Studio 2019 with a License Key
- Launch Visual Studio 2019 from the Windows start menu.
- Click the “Continue without code” link on the bottom right of the screen.
- Click Help/Register Product.
- Click the “Unlock with a Product Key” link.
- Enter the 25-character key obtained from the Microsoft VLSC, and click Apply.
- Visual Studio 2019 should now be successfully installed and licensed.
Congratulations! You have successfully performed an offline installation of Visual Studio 2019. Now you can start developing your applications with ease.
For more information, you can visit the Visual Studio Documentation