chocolatey / chocolatey/choco

Add support for filtering install locations via softwareName

Open
#2,513 0 comments 0 reactions 0 assignees View on GitHub
0 - Backlog Enhancement
Dominant language
C#
Stars
11.5k
Forks
961
PR merge metrics
No merged PRs in 30d

Description

Currently, `Install-ChocolateyPackage` and `Install-ChocolateyInstallPackage` have the `softwareName` parameter in their examples, but the parameter is not documented (chocolatey/docs#308) and the parameter is not implemented (it just goes to `$ignoredArguments`). The parameter is also in the `chocolateyInstall.ps1` as created by the new command.

I don't think there is an issue yet for implementing this parameter yet.

It needs to be added to both powershell functions as a parameter, and documented in those functions. Then, it needs to get passed back into the C#, presumably in the same way `ChocolateyPackageInstallLocation` is used. Then finally it can be used to filter the registry snapshot.

Contributor guide

Open the contributing guide

Research direction

Start with the Install-ChocolateyPackage and Install-ChocolateyInstallPackage PowerShell functions, then trace how ChocolateyPackageInstallLocation is passed into the C# code and used with the registry snapshot. Document softwareName in both functions and carry it through the implementation so install locations can be filtered by it. Done means the parameter is no longer ignored and the related examples and function documentation are accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
backend, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.