https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022 Answer from JohnnyKeyboard on reddit.com
๐ŸŒ
Reddit
reddit.com โ€บ r/dotnet โ€บ is the vs 2022 offline installer available?
r/dotnet on Reddit: Is the VS 2022 offline installer available?
February 21, 2025 -

Hello there,

I remember theres always an offline installer (about 22-25gb) to install visual studio completely.

2017 and 2019 had this type of installers, does anyone knows if VS 2022 offline installer is currently available?

Thank you

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ how to install visual studio (online or offline) through windows firewall?
r/VisualStudio on Reddit: How to install Visual Studio (online or offline) through windows firewall?
April 24, 2019 -

I'm trying to install the file: vs_community.exe when I click it, it creates an install stub in the temp folder in my user profile called vs_setup_bootstrapper.exe

But since the windows firewall is setup to block all programs not in the allowed list, it's impossible to allow the temporary vs_setup_bootstrapper.exe due its temporary nature. Allowing vs_community.exe doesn't work since only the temporary vs_setup_bootstrapper is trying to break through the firewall.

VS 2017 has an offline installer but I can't find one for VS 2019

How to install the program through a firewall?

๐ŸŒ
Reddit
reddit.com โ€บ r/c_programming โ€บ visual studio offline local layout install on computer with no internet - questions
r/C_Programming on Reddit: Visual Studio Offline Local Layout Install On Computer With No Internet - Questions
June 22, 2022 -

I used a computer with internet to download and make a offline local layout folder via cmd and it started to download the C++ workloads etc. Then when it finished I copied the offline local layout folder onto a USB stick so I can begin installing it on the client pc that has no internet connection.

On the client pc how do I begin the offline install? Do I need to run it via CMD? I also want to use the โ€”noweb flag to avoid it accessing anything from the web. I want this to be purely offline.

So how do I begin doing this? What do I type to start the offline install with the noweb flag and do I get to select the install location? Can anyone help me with what I need to type in cmd on the client pc?

Thanks

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ downloading only selected packages for visual studio offline
r/VisualStudio on Reddit: Downloading only selected packages for Visual Studio Offline
March 27, 2017 -

I was thinking of making an offline installer for Visual Studio 2017 and I was successful in doing that. But, it downloaded everything and it was around 20 GB, which is just too much.

Is there any way to download only selected components/Packages for VS 2017 offline? I just want to use VS for C# development and with Xamarin for Android dev. Any suggestions?

Please don't down-vote for no reason.

EDIT:

Found a command on SO which should get me basic stuff for Xamarin and Android dev and C#.

vs_community__198857855.1490528169.exe --layout "C:\vs2017" -add Microsoft.VisualStudio.Workload.NetCrossPlat -add Microsoft.VisualStudio.Workload.ManagedDesktop -add Microsoft.VisualStudio.Workload.NetCoreTools --lang en-US

I haven't tested if it downloaded everything or not. Will share if it works perfectly. But, please do share some more info if you something new :D

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ truely offline build tools installation?
r/VisualStudio on Reddit: Truely offline build tools installation?
November 27, 2018 -

Hi

I need to install Visual Studio build tools for an offline desktop, which is Windows 10. And I do not have any other windows pc, laptop etc. How do i get the build tools install on my Win desktop.

I am sorry to say but all the docs about offline installations from MS is plain oldschool corporate MS bullshit, none of them are offline installers.

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ visual studio cannot be installed offline
r/VisualStudio on Reddit: Visual Studio cannot be installed offline
October 16, 2025 -

I have created an offline installation via bootstrapper as explained in Microsoft. But when I copied all files to the offline server and try to run vs_setup.exe and vs_community.exe and when I hit continue on this screen nothing happen. I run it as administrator and cleared the cache on Program Data still same issue. Any suggestions?

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ offline install doesn't work
r/VisualStudio on Reddit: Offline install doesn't work
October 11, 2021 -

just out of curiosity, has anyone been able to get an offline installation of visual studio 2022 to actually install? i downloaded 31GB of dog shit installed the certificates

and the fucking piece of turd still tries to download shit and refuses to install

really don't appreciate having my time FLUSHED down the bowl like that

fucking scumbag visual studio developers

that product has completely jumped the shark

there is NO fucking reason microsoft shouldn't be providing visual studio isos today

they make you jump through pointless hoops and then it doesn't even fucking work

https://cdn.discordapp.com/attachments/197420215363960832/1005511008363749456/unknown.png

it's not just me fucking ridiculous can't wait until my next toilet requires an internet connection. then i'll be able to skip the middleman while FLUSHING

Find elsewhere
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ visualstudio โ€บ install โ€บ create-an-offline-installation-of-visual-studio
Create an offline installation - Visual Studio (Windows) | Microsoft Learn
You can use the Download all, then install feature from the Visual Studio Installer to download an installation package on the local machine before you install it locally, or you can use the command line to create a local installation package ...
๐ŸŒ
Reddit
reddit.com โ€บ r/windows10 โ€บ visual studio 2019 pro offline update
r/Windows10 on Reddit: Visual studio 2019 pro offline update
December 10, 2022 -

Has anyone had any luck updating visual studio professional 2019 offline? I'm trying to do the update using Microsoft update catalog KB for my product version and it's KB prerequisite, but no dice. Any suggestions?

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ visual studio offline installer problem
r/VisualStudio on Reddit: Visual Studio Offline Installer Problem
January 11, 2020 - I've downloaded the cache or installation files using this command "vs_community.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US" on other machine and transfer it to my machine and put it on the drive C. I'm trying to run the installer using the command "c:\vslayout\vs_community.exe --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --noWeb" and the installer would run but error will appear saying I couldn't download this and that. I searched an answer from the web and Youtube but couldn't find and an answer and I'm doing this for two days. Maybe some good people can help me on this sub. I am not a programmer but trying to learn Visual Studio to write a program for Tekla Open API.
๐ŸŒ
Reddit
reddit.com โ€บ r/mdt โ€บ silently install + configure visual studio 2022
r/MDT on Reddit: Silently Install + Configure Visual Studio 2022
September 16, 2024 -

Im struggling to add this application to my deployment share. Can you tell me what im missing here?

Heres whats happening: https://imgur.com/lXmCzYB

It attempts to download, and then just stays at 99% forever and never installs or puts any files on the computer.

Here is what I have on the MDT Side:
Quiet Install Command: vs_setup.exe --quiet --wait --norestart --includeRecommended --add Microsoft.VisualStudio.Workload.NetDesktop --add Microsoft.VisualStudio.Workload.Python --path cache="C:\toolkit\Applications\VS 2022"

What am I doing wrong here?

EDIT: after reading multiple comments and re-reading the documentation from microsoft - here is the process that worked for me!!

Download visual studio bootstrapper.exe: https://aka.ms/vs/17/release/vs_professional.exe

Then open CMD and run: vs_enterprise.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Python --includeRecommended

This will download about 7GB of files to c:\localVSlayout.
Then once this is finished, it will create a file called "response.json"
Edit this file with notepadd++ and I added the following: "productKey": "{replace with product key}","arch":"x64"}

Then, inside of my deployment share, I added the visual studio application and here is my command line: vs_professional.exe --passive --norestart --wait --in response.json

This will fully install Visual Studio 2022 with my company product key and its ready to roll!!

Top answer
1 of 4
6
It is bad practice to deploy applications via the Internet when deploying OS images. Instead, create a local layout of VSPro2022 and install from there. Download the Visual Studio Bootstrapper: vs_professional.exe , and remove the "downloaded file block". Create an offline installation source by running: vs_professional.exe --layout C:\Layout --all --lang en-US This will download all missing/updated installation packages into the Layout sub-directory. This process requires about 75 GB of disk space and can take > 1 hour to complete. Wait for the layout creation to complete. Remove the "downloaded file block" from Layout\vs_Professional.exe and Layout\vs_setup.exe files. Import the layout folder into MDT. Set the command line as desired, such as: vs_professional.exe --quiet --wait --norestart --noweb --add "component-1" ... --add "component-n" --productKey xxx...xxx EDIT: To make it truely offline installation, you'll need to import the provided certificates to prevent the installer from requiring Internet access to verify the code signing certs Reference: https://docs.microsoft.com/en-us/visualstudio/install/install-certificates-for-visual-studio-offline?view=vs-2022 certutil.exe -addstore -f "Root" "layout\certificates\manifestRootCertificate.cer" certutil.exe -addstore -f "Root" "layout\certificates\manifestCounterSignRootCertificate.cer" certutil.exe -addstore -f "Root" "layout\certificates\vs_installer_opc.RootCertificate.cer"
2 of 4
2
Update: here is the solution that worked for me!! Download visual studio bootstrapper.exe: https://aka.ms/vs/17/release/vs_professional.exe Then open CMD and run: vs_enterprise.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Python --includeRecommended This will download about 7GB of files to c:\localVSlayout. Then once this is finished, it will create a file called "response.json" Edit this file with notepadd++ and I added the following: "productKey": "{replace with product key}","arch":"x64"} Then, inside of my deployment share, I added the visual studio application and here is my command line: vs_professional.exe --passive --norestart --wait --in response.json This will fully install Visual Studio 2022 with my company product key and its ready to roll!!
๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ WindowsServer โ€บ comments โ€บ 1djic0p โ€บ installation_visual_studio_offline_mode
Installation visual studio offline mode : r/WindowsServer
January 10, 2024 - I need to install visual studio (2019,2022) community edition , for servers that didnt have any acess to the internet. And for the offline instation need to get a riret connection .
๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ visual studio offline install/activation in a secure environment
r/VisualStudio on Reddit: Visual Studio Offline Install/Activation in a Secure Environment
September 1, 2019 - This subreddit is for discussing and asking questions for the Visual Studio IDE. ... I have a bit of a unique situation. I plan on giving beginner programming lessons to a group of people, but it will be in an environment with no outside communication (phone, internet, etc). I am looking to create an offline installer for Visual Studio for them to install it on their personal devices, but the Community version requires a check-in after 30 days, which will not be possible in this situation.
๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ i can't download visual studio community 2019 anymore. what's going on?
r/VisualStudio on Reddit: I can't download Visual Studio Community 2019 anymore. What's going on?
June 24, 2024 - Today I installed VS 2019 and so far so good. (Using Win7 Ult SP1, 2nd Gen Celeron G530 Processor) I'm busy working on a exe file, but I have an issue with a MSFlexGrid. Can you recommend a forum where I could ask for some advice please? Would be very grateful. ... Thank you even from 2025! ... This is from a comment in the first answer. If you want to download directly from Microsoft using the Visual Studio Installer, use the following link.
๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ update offline installer files visual studio 2017
r/VisualStudio on Reddit: Update Offline Installer Files Visual Studio 2017
April 6, 2018 -

I've an offline installer which I downloaded using torrent in 2017 but it has a lot of problems while installation which I read that it had been fixed in other updates. Can I update the offline files to the latest version without downloading it all over again?

๐ŸŒ
Reddit
reddit.com โ€บ r/visualstudio โ€บ does visual studio require internet?
r/VisualStudio on Reddit: Does Visual Studio require internet?
October 25, 2017 -

Hello, I was trying to set Visual Studio (not Code) on the computer without Internet, it stucked and required an account which I could create only online. So it required internet at least for a moment.

I have machine that doesn't have internet connection. Can I make programming there?

Did I omit some setting?

Top answer
1 of 4
4

Couple of things to consider. First, as Hey_Papito indicated if you don't have internet access on the machine where you are attempting to install Visual Studio you will need to create an offline installer. if you are trying to run the install using a file that is less than 1 MB, you're using the online installer and that is never going to work in the situation you described.

There is also the issue of ongoing access. Unlike previous editions of Visual Studio, MS got a bit more serious about checking to see if people had legit licensing for the product. Used to be that you could get a product key and that was good enough. Now they want you signed into an account that has licensing associated with it and the default behavior is for it to be a 30 day trial and then you can't get in anymore. However, with community edition you just need to refresh the license every 30 days(literally click the "refresh" button) and so long as you can get out to the internet you're good. Unfortunately sounds like you can't do that so you're stuck. However, there is this item from StackOverflow whcih contains the following information.

To bypass "30days left must go online to sign-in", sign-in once to Microsoft account, you'll get %LocalAppData%\Microsoft\VSCommon\OnlineLicensing folder that you can copy to offline PCs.

From your description it sounds like the machine you are using can sometimes have internet access so you should be able to follow this advice and get yourself a working version of VS Community Edition. If you're trying to unlock professional or enterprise, can't help you there. However, odds are whatever you are doing doesn't require the features of those versions and you can get by with just Community edition.

2 of 4
1

It doesn't require network access.

Top answer
1 of 2
48

Microsoft no longer offers offline installers such as .ISO images of Visual Studio -- instead they have instructions of placing the burden on you to create an offline installer. You need to use the --layout command line argument and then run the downloaded installer.

  1. Download and Cache offline files:

    vs_community.exe --layout f:\vslayout.2019 --lang en-US
    
  2. Run from the cached directory

    f:
    cd \vslayout.2019
    vs_community.exe --noWeb
    

NOTE: Change drive F to match a drive on your system that has ~35 GB of free space for MSVC 2019. See the instructions for command line arguments to select just C++, .NET, etc. options.

You can get help on the command line arguments for the installer via:

vs_community --help

The relevant layout commands are:

command-line option     Description
--layout <dir>          Specifies a directory to create an offline install cache.
--lang <locales>        Used with --layout to prepare an offline install cache with resource packages with the specified language(s). See a full list of supported language-locales below.
--add <workload>        One or more workload or component IDs to add. The required components of the artifact are installed, but not the recommended or optional components. You can control additional components globally using --includeRecommended and/or --includeOptional. For finer-grained control, you can append ;includeRecommended or ;includeOptional to the ID (for example, --add Workload1;includeRecommended or --add Workload2;includeOptional).
                        Note: If --add is used, only the specified workloads and components and their dependencies are downloaded. If --add is not specified, all workloads and components are downloaded to the layout.
--includeRecommended    Includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with --allWorkloads or --add.
--includeOptional       Includes the recommended and optional components for any workloads being included in the layout. The workloads are specified with --add.
--keepLayoutVersion     Apply changes to the layout without updating the version of the layout.
--verify                Verify the contents of a layout. Any corrupt or missing files are listed.
--fix                   Verify the contents of a layout. If any files are found to be corrupt or missing, they are redownloaded. Internet access is required to fix a layout.
--clean <paths to catalogs>
2 of 2
27

I have developed an application using VB.NET to dynamically generate batch (.bat) scripts that can be used to download Visual Studio 2017, 2019, and 2022. You can customize the script using the controls included in the application and download it to a targeted drive. You can download it here.

This is my contribution to the community.