question

RameshKrishnappaexternal-6246 avatar image
0 Votes"
RameshKrishnappaexternal-6246 asked ·

To Install vs_buildtools__1905366768.1601556757.exe Install and Uninstall silently with required workloads

Hi Team,

Please help me with silent commands for Install and Uninstall with required workload as attachment.
Please treat as high priority, very urgent.

Thanks & Regards
Ramesh74383-vs-2019-buildtools.png


vs-generalvs-debuggingvs-setup
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered ·

Hi RameshKrishnappaexternal,

You can type these commands to install and uninstall this tool:

  • Offline download build tool
    vs_buildtools.exe --layout C:\Users\[username]\Documents\tempInstall --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Component.VC.CMake.Project --add Microsoft.VisualStudio.Component.TestTools.BuildTools --add Microsoft.VisualStudio.Component.VC.ASAN --lang en-US --quiet

  • Install build tool

  1. Find the vs_buildtools_[number].exe in layout folder

  2. Run this command: "C:\Users\Administrator\Documents\tempinstall\vs_buildtools__1918087662.1600134275.exe" --noweb --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Component.VC.CMake.Project --add Microsoft.VisualStudio.Component.TestTools.BuildTools --add Microsoft.VisualStudio.Component.VC.ASAN


  • Uninstall build tool
    vs_buildtools.exe uninstall --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" --quiet

Best Regards,
Dylan


If the answer is helpful, please click "Accept Answer" and upvote it.
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 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Its not working, .exe is attached.

74872-image.png


0 Votes 0 ·
image.png (4.3 KiB)
RameshKrishnappaexternal-6246 avatar image
0 Votes"
RameshKrishnappaexternal-6246 answered ·

Hi DylanZhu-MSFT,

Its not working. please help me out

Thanks
Ramesh

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RameshKrishnappaexternal-6246 , which steps you fails at? Can you provide more details or errors?

And you can directly modify the name of exe to vs_buildtools.exe.

0 Votes 0 ·
RameshKrishnappaexternal-6246 avatar image
0 Votes"
RameshKrishnappaexternal-6246 answered ·

75382-image.png


75364-test.png


The requirement is to install only 5 components of C++ build tools as per the attached screenshot. 75379-vs-2019-buildtools.png



image.png (50.9 KiB)
test.png (46.2 KiB)
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RameshKrishnappaexternal-6246 , there is some mistakes in my previous command(has been corrected), please follow this steps to do installation:
Installation steps:
1. Find the vs_buildtools_[number].exe in previous layout folder
2. Run this command: "C:\Users\Administrator\Documents\tempinstall\vs_buildtools__1918087662.1600134275.exe" --noweb --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --add Microsoft.VisualStudio.Component.VC.CMake.Project --add Microsoft.VisualStudio.Component.TestTools.BuildTools --add Microsoft.VisualStudio.Component.VC.ASAN

0 Votes 0 ·