choco
choco copied to clipboard
Add ability to detect status of feature in WindowsFeature alternate source
It would be useful to check if a feature is already enabled/disabled to increase the speed of installs/uninstalls if no action is required.
As noted by the todo comments: https://github.com/chocolatey/choco/blob/d8ca7bad2ad64538a0c1026a9317700dbb7f03db/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs#L272-L279
https://github.com/chocolatey/choco/blob/d8ca7bad2ad64538a0c1026a9317700dbb7f03db/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs#L356-L363
This would indeed be a great addition!