VISUAL STUDIO 2022 INSTALLATION

Ugochukwu Onyeaka 0 Reputation points
2024-07-30T14:10:10.53+00:00

I Downloaded Visual Studio complete file of 27GB but I don't know how to install it using cmd.

If I run the .exe, it is requesting to go online and download file before installation.

Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2024-07-30T14:32:14.2233333+00:00
    0 comments No comments

  2. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2024-07-31T03:31:36.7433333+00:00

    Hello @Ugochukwu Onyeaka ,

    Welcome to Microsoft Q&A forum.

    The complete steps for offline installing VS are

    1. Download a bootstrapper file(setup file) on a machine with network.
    2. Use command lines to download VS and generate a layout.
    3. Move the layout to the offline machine, use command lines or directly run the setup.exe file to install VS offline.

    Since VS 2022 doesn’t provide ISO/DVD version, you downloaded the complete file, I think you mean you have used command lines to download VS and generate a layout? If so, either running the .exe file or using command lines to install VS should work(without network).

    It is requesting to go online and download file before installation.

    Kindly check following:

    1. Try to manually install the certificates from the layout(log in your machine with an admin account > Open layout > open certificates folder > right-click each of the certificate files > select Install Certificate > click through the Certificate Manager wizard > if asked for a password, leave it blank).
    2. Update Windows OS, make sure that all patches have been installed and there’s no Windows Upgrade error, reboot your machine.
    3. Move the layout to the machine with network, run previous command line, but this time, add --verify and --fix arguments to fix your layout. Move it to the offline machine and install VS again.

    I don’t know how to install it using cmd.

    => For example, you used following command line to generate a layout:

    vs_enterprise.exe --layout c:\localVSlayout

    Then you need to use following command line to install VS:

    Run CMD as admin, run c:\localVSlayout\vs_enterprise.exe --noWeb

    => Another example, you used following command line to download VS:

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

    Then you need to use following command line to install VS:

    Run CMD as admin, run c:\localVSlayout\vs_enterprise.exe --noWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional

    See this document: Install Visual Studio from the local layout for more details.

    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.