Visual studio 2022 offline installer not working

KINNAN NAWAZ 20 Reputation points
2023-02-17T12:41:34.72+00:00

Hi
My Visual studio 2022 offline installer is not working offline as I am giving these parameters to it, if i remove the Last two (verify, fix) parameters it start functioning but when I add the last two parameters it does not function

vs_community.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --includeOptional --lang en-US -p --downloadThenInstall --useLatestInstaller --verify --fix

User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,702 questions
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.
977 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 26,646 Reputation points Microsoft Vendor
    2023-02-17T13:44:40.9266667+00:00

    Hi @KINNAN NAWAZ, 

    Welcome to Microsoft Q&A! 

    For --verify command, it is used to verify the contents of your layout. And check if the packages files are missing or invalid:

    vs_community.exe --layout <layoutDir> --verify

    for --fix command, it will fix the layout if any files are corrupted or missing:

    vs_community.exe --layout <layoutDir> --fix 

    You can’t use them with --add command. 

    If you want to install VS2022 offline, please refer to: Create an offline installation of Visual Studio

    Sincerely,

    Anna


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful