Offline installer from layout still wants to download 6.27GB and requires access to internet

- - 1 Reputation point
2023-10-12T07:25:18.21+00:00

I have created offline layout for Visual Studio Professional with following command

vs_setup --layout . --lang en-US --includeOptional

Which has downloaded 54.5GB

Next I run this installer on a fresh install of windows 10

1- It immediately starts installing some random stuff that I didn't ask for (about 700 packages)

2- I interrupt the installation by clicking pause and Installer closes immediately.

3- I run the installer again from same layout folder vs_setup.exe

4- It shows the a screen with two progress bar downloading and installing. after few seconds both of them immediately fill up to 100% and installer closes.

1

5- This time I run the installer from Start Menu, it runs and again starts installing that random stuff that I didn't ask for.

6- I interrupt by pressing pause then click on modify to select what I need to install which is not ios development but .NET for web.

7- Now Installer tries to download 6.27GB online and setup get stuck in 15%

3

Question:

How do I create the layout so that visual studio does not try to download again in a PC that doesn't have access to internet?

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,058 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,601 Reputation points Microsoft Vendor
    2023-10-13T03:15:01.23+00:00

    Hello @- -,

    Welcome to Microsoft Q&A forum.

    I notice that you used --includeOptional parameter. Following is the description of this parameter:

    Optional: During an install or modify command, this parameter includes the optional components for any workloads that are installed, but not the recommended components. The workloads are specified either with --allWorkloads or --add.

    As you didn’t use --add or --allWorkloads parameter, but used --includeOptional parameter, I guess some packages were not downloaded correctly into the layout.

    If you want to download a complete local layout of Visual Studio, I suggest moving this generated layout back to the machine with network and run following command: vs_setup --layout C:\xxxx\xxxx --verify --fix, then move the layout back to the machine without network and try to install VS again.

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.