Install Visual Studio Installler's CMake via setup.exe
.
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --quiet --force --norestart --productId "Microsoft.VisualStudio.Product.BuildTools" --channelId "VisualStudio.17.Release" --add "Microsoft.VisualStudio.Component.VC.CMake.Project"
Progress
Result
- List of productId
modify --productId <productId>
: https://learn.microsoft.com/en-us/visualstudio/install/workload-and-component-ids?view=vs-2022 - List of workloadId
--add <workloadId>
: https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2022&preserve-view=true - List of ChannelId
--channelId <channelId>
: https://github.com/MicrosoftDocs/visualstudio-docs/blob/e40beb5c640746e859685bb473131140b2d1733a/docs/install/command-line-parameter-examples.md?plain=1#L122C17-L122C17 - Parameter and example for setup.exe: https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022
- setup.exe sample: https://github.com/MicrosoftDocs/visualstudio-docs/blob/e40beb5c640746e859685bb473131140b2d1733a/docs/install/command-line-parameter-examples.md?plain=1#L127