Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to PowerShell for zip files on Windows #351

Merged
merged 1 commit into from
Aug 26, 2018

Conversation

GeoffWilliams
Copy link
Contributor

@GeoffWilliams GeoffWilliams commented Aug 22, 2018

Since most users on Windows are going to be using zip files and might not be able to easily install 7zip, how about this approach for using PowerShell/.net built-in support to for zip files to do the extract when there is no 7zip rather then failing?

For Windows since 2012, it is possible to extract zip files (only) using
`System.IO.Compression.FileSystem`. For systems where 7zip is not
available, use an inline powershell script to perform the extact. 7zip
will still be used in preference, if available.

For Windows since 2012, it is possible to extract zip files (only) using
`System.IO.Compression.FileSystem`. For systems where 7zip is not
available, use an inline powershell script to perform the extact. 7zip
will still be used in preference, if available.
@bastelfreak
Copy link
Member

Thanks for the PR @GeoffWilliams !

@bastelfreak bastelfreak merged commit e922fbb into voxpupuli:master Aug 26, 2018
cegeka-jenkins pushed a commit to cegeka/puppet-archive that referenced this pull request Mar 26, 2021
Fallback to PowerShell for zip files on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants