choco icon indicating copy to clipboard operation
choco copied to clipboard

Add ability to detect status of feature in WindowsFeature alternate source

Open TheCakeIsNaOH opened this issue 3 years ago • 1 comments

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

TheCakeIsNaOH avatar Feb 05 '22 03:02 TheCakeIsNaOH

This would indeed be a great addition!

gep13 avatar Feb 05 '22 15:02 gep13