chocolatey / chocolatey/choco

Add ability to detect status of feature in WindowsFeature alternate source

Open
#2,574 1 comment 2 reactions 0 assignees View on GitHub
0 - Triaging Enhancement
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start in src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs at the two linked TODO sections around lines 272-279 and 356-363. Trace the alternate-source install and uninstall paths, then verify that already-enabled or already-disabled features avoid unnecessary actions and that the existing Windows feature behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.