CSW-1142 avatar image
1 Vote"
CSW-1142 asked CSW-1142 commented

VS 2019 FAILS on Offline Installation

First of all... according to the VS support pages, you can ONLY submit a support request through the Visual Studio IDE, AND IT WON'T INSTALL. Did not one think about putting a link to this forum where it could be found? I'm on the second day of fighting this.

I am trying to jump from 2010 to 2019. I don't use every bleeding edge version that comes out because I don't like creating issues for developers, or users every year or so.

Installing from an ISO sure was nice. Now you can't do that.

Using this page, I downloaded the components I wanted:

Specially I picked these:

--add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop

Then when I run the installer, it automatically has those two checked. So that looks good... When I tell it to start, a rudimentary popup that looks like it's from Windows 1.0 appears and says there are "packages missing from the layout" (or something... you can't Copy/Paste from that popup... an INCOMPETENT feature)

My offline command is:

"vs_Professional.exe --noweb --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended"

Of course the web page instruction doesn't explain ANY of the command line arguments.
What is "layout"? That means a web page builder to me...

I assume "noweb" means offline... but how does it know where the downloads are?

I need to support C++ and C#, so I am just GUESSING that "Managed" and "Native" are the correct packages.

Where do I get help for this?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Command line parameters are explained here:

And examples are here:

The main page doesn't explain everything but leads to all sorts of links that you may want to study.
For example -noweb option clearly documented as:

Visual Studio setup uses the files in your layout directory to install Visual Studio. If a user tries to install components that aren't in the layout, setup fails. etc..

"Layout" is local cache used to create installation files (An offline installation folder)

2 Votes 2 ·

Thanks. This helps.

Routine searches never turn up what I need, and trying to follow MS doc just takes down so may ratholes of links, you lose track of where you were... as you are probably aware when you say "all sorts of links..."

I have it working now, without having to offline cache "all" (and the associated disk space it would need).

0 Votes 0 ·

1 Answer

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @ScottWeber-1142 ,

It is noted that you need an internet connection to create a local layout which contains all components you want to install.
Please try to use the --verify command to verify if your layout is missing packages.


If the answer is helpful, please click "Accept Answer" and upvote it.
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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.