-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to enable Windows feature #3580
Comments
"Virtual Machine Platform" is the feature used by WSL and it's called out in: We still need to get the WinGet 1.6 client out with dependency support and update validation to properly use the features. Then we will be able to submit a WSL manifest with a dependency on the "Virtual Machine Platform". |
I don't think this is related to the feature to be enabled. It is also the same for
|
@ryfu-msft maybe we should consider an enumeration of the available Windows Features. I'm expecting we will need to document this as well in the documentation for the manifest schema as a part of the 1.6 release update. |
We've decided to move this feature back to being experimental :( There is an issue with enabling the windows feature in packaged context, which is why it is throwing a COM exception (Class not registered). Since we are preparing to officially release a stable version of v1.6 soon, this will need to be addressed in v1.7. |
We've updated this in WinGet 1.7. Windows Features are now supported as a package dependency. |
Brief description of your issue
WinGet client can not enable the Windows features listed as the dependencies of the package due to the "80040154 Class not registered" error while invoking the DISM API, and hanged for about two minutes.
Probably related to #3348.
A similar bug can be found when using
Get-WindowsOptionalFeature -Online
in the Microsoft Store version of PowerShell 7, which is described in PowerShell/PowerShell#13866.Steps to reproduce
winget install -m '<manifest>'
Expected behavior
The feature should be enabled successfully.
Actual behavior
The feature can not be enabled, and the output is misleading. 🫤
The log is as follows:
The portable version of the WinGet client works properly:
Environment
The text was updated successfully, but these errors were encountered: