Visual Studio 2022 Offline Installer

Peter Volz 1,295 Reputation points
2023-04-06T06:26:40.3666667+00:00

Hello I need to create an offline installer copy of Visual Studio 2022 PRO and downloaded the online installer v17.5 I need minimum set of component needed for working on Windows Desktop - .NET Framework 4.5~4.8 projects in VB and C# en-US only, and nothing more, is this set of commands correct?

Seems not, always stops around 37% :

Error: Setup completed with errors.

Error: One or more errors occurred.

Command:

VisualStudioSetup.exe --layout C:\VS.NET --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.Net.ComponentGroup.TargetingPacks.Common --add Microsoft.VisualStudio.Component.DiagnosticTools --lang en-US Thank you

Developer technologies | Visual Studio | Setup
Developer technologies | VB
Developer technologies | Visual Studio | Other
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-04-06T11:03:07.5166667+00:00

    Hello @Peter Volz ,

    Welcome to Microsoft Q&A forum.

    I have verified that the command which you are using is correct.

    Is there any detailed error message? There are many reasons which may cause the process to stop.

    I suggest first verify that you have enough disk space(C drive) and then try to check the network connection, make sure it’s stable and try to connect to use another network. Make sure that there’s no proxy/rule/policy/antivirus on your machine/network which may block the process from downloading the packages.

    Try to use --verify and --fix parameters to see if the error can be fixed(VisualStudioSetup.exe --layout C:\VS.NET --verify --fix).

    If above methods don’t work, please download a new VS 2022 Professional setup file from here: Downloads again, save it to a clean folder, run CMD as administrator, change to use a new layout folder and run the command again.

    Feel free to let us know the results.

    Sincerely,

    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.

    1 person found this answer helpful.

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.