chocolatey / chocolatey/choco

Support extracting password protected archives with the archive helpers

Open
#3,080 0 comments 1 reaction 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

### Checklist

- [X] I have verified this is the correct repository for opening this issue.
- [X] I have verified no other issues exist related to my request.

### Is Your Feature Request Related To A Problem? Please describe.

Some archives (`zip` and `7z` for sure) can be encrypted with password protection. Currently, there is not a way to extract these archives with the Chocolatey helpers.

### Describe The Solution. Why is it needed?

`Install-ChocolateyZipPackage` and `Get-ChocolateyUnzip` should each have an argument added which is used to pass in a password for the archive.

### Additional Context

As a workaround, `7.zip` portable can be added as a dependency, and `7z.exe` used directly with the password to extract the archive.

### Related Issues

https://github.com/chocolatey-community/chocolatey-package-requests/issues/1387

Contributor guide

Open the contributing guide

Research direction

Start by locating the Install-ChocolateyZipPackage and Get-ChocolateyUnzip helper entry points and their existing argument handling. Done means both helpers accept a password and can extract password-protected zip and 7z archives; check the related tests if they are present nearby.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.