question

IanLackie-6382 avatar image
0 Votes"
IanLackie-6382 asked PengGe-MSFT commented

Visual Studio 2019 offline installer

I need to install VS2019 on a remote server with no access to the internet.

I'm trying to create the offline installer file from my own machine but because I already have VS2019 installed, it just tries to update my local version. Is there something I'm not doing?

I've downloaded the vs_professional.exe installer file, then run the following in CMD:

 vs_professional.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeRecommended

It just brings up the window for updating my local version though.

vs-generalvs-setup
· 1
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.

Hi, @IanLackie-6382
I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·
PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered PengGe-MSFT edited

Hi, @IanLackie-6382

Welcome to Microsoft Q&A!

If you want to create an offline installation of Visual Studio on a computer with a network, you should use the

--layout

parameter, for example:

 vs_enterprise.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US

For Layout command and command-line parameters, you can refer to this document.

After this, you need to copy the offline layout file to your server, you can Copy the layout to a network share.
Then you need to install Visual Studio from the cache in your server, you can refer to step 3.

Update:
You can try to use --verify and --fix to Verify and fix a layout on your own machine. Then copy it to the server for installation.

Sincerely,
Peng


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.

IanLackie-6382 avatar image
0 Votes"
IanLackie-6382 answered IanLackie-6382 edited

Hi, I have made some progress in that the files all download to the folder and I can copy them up to the server, so thank you for your comment, that helped me get to the next step. It still seems to be trying to download files though when I install to the server, so it falls over as there is no internet connection - this happens even using --noWeb in the server command and having added the certificates. I'm trying again now with a fresh install.

It's not an easy process though, I must be on my 7th attempt at installing - I wish we could go back to the days of an ISO for a basic install

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.

IanLackie-6382 avatar image
0 Votes"
IanLackie-6382 answered PengGe-MSFT commented

So, I'm stuck again, that setup failed again there. Do you know what could be going on here?

In CMD, I ran this command to create the layout:

 vs_professional.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional

and when I ran the CMD on the server after copying the files over, I ran this command:

 c:\vslayout\vs_professional.exe --noweb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional 

After I tried to run, it showed a huge list of packages that were missing from the layout cache135917-vs-missing.png



I thought by setting the layout download command the same as the install command that there should be no missing packages.


vs-missing.png (29.0 KiB)
· 1
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.

Hi, @IanLackie-6382
I updated my answer please check it.

0 Votes 0 ·