Files
WSL/doc/docs/api-reference/cpp/settings-classes/installoptions.md
0704fa160b Update WSLC SDK API documentation (#41677)
* Update WSLC SDK API documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Update docs

* Update docs

* Quick fixes

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Craig Loewen <crloewen@microsoft.com>
2026-09-29 10:14:54 -04:00

615 B

InstallOptions

Selects components for WslcService::InstallWithDependencies and controls repair behavior.

Properties

Property Type
Components() / setter IVectorView<Component>
Repair() / setter bool

If Components is null, the service determines which components require installation. If the result includes Component::SdkNeedsUpdate, installation fails because installing components cannot resolve the SDK compatibility error.

Set Repair to true to allow the WSL package to be reinstalled. This setting has no effect when installing Virtual Machine Platform.