silent install of VS 2019 community and VS build tools with specific packages

Sylvain Ard 20 Reputation points
2023-03-02T11:59:50.01+00:00

Good morning,

I would like to create a silent installer to install Visual Studio 2019 and Visual Studio 2019 Build Tools 2019 with specific packages.

I describe the packages:

VSCommunity:

Desktop C++ development and all the checkboxes for this item (right) in the graphical installer

VSBuildTools:

C++ Build Tools

C++/Cli support for Build Tools

Windows 10 SDKs

Windows platform app build tools

Please let me know the exact commands.

I would like my installer to include the binaries so it would require a command to download and a command to install.

THANKS

Best regards

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,591 questions
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2023-03-02T13:56:43.2+00:00

    Hello @Sylvain Ard,

    Welcome to Microsoft Q&A forum.

    For Visual Studio 2019, you need to first download Visual Studio Community 2019 bootstrapper from here: Visual Studio Community 2019, and then use command line like vs_community.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional --lang en-US  to generate a local layout folder for Visual Studio 2019.

    For Build Tools for Visual Studio 2019, you need to first download Build Tools for Visual Studio 2019 bootstrapper from here: Build Tools for Visual Studio 2019, and then use command line like vs_buildtools.exe --layout c:\localVSBuildToolslayout --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.CLI.Support --add Microsoft.VisualStudio.Component.Windows10SDK.16299 --add Microsoft.VisualStudio.Component.Windows10SDK.17134 --add Microsoft.VisualStudio.Component.Windows10SDK.17763 --add Microsoft.VisualStudio.Component.Windows10SDK.18362 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Workload.UniversalBuildTools --lang en-US to generate a local layout folder for Build Tools for Visual Studio 2019.

    To install Visual Studio 2019, use this command c:\localVSlayout\vs_community.exe --noweb --quiet --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional.

    To install Build Tools for Visual Studio 2019, use this command c:\localVSBuildToolslayout\vs_buildtools.exe --noweb --quiet --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.CLI.Support --add Microsoft.VisualStudio.Component.Windows10SDK.16299 --add Microsoft.VisualStudio.Component.Windows10SDK.17134 --add Microsoft.VisualStudio.Component.Windows10SDK.17763 --add Microsoft.VisualStudio.Component.Windows10SDK.18362 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Workload.UniversalBuildTools.

    Several documents for you to refer to:

    Create an offline installation package of Visual Studio for local installation

    Visual Studio Community component directory

    Visual Studio Build Tools component directory

    BTW, could you please edit your question into English so that we can help you better?

    Please feel free to contact us.

    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.

0 additional answers

Sort by: Most helpful