voxpupuli / puppet-archive

Compressed archive file download and extraction with native types/providers for Windows and Unix
https://forge.puppet.com/puppet/archive
Apache License 2.0
59 stars 176 forks source link

when 7-Zip installed via chocolatey it err with "7z.exe not available" #432

Open alex-mesfin opened 3 years ago

alex-mesfin commented 3 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Allways failed to unzip *.7z files if 7-Zip is not installed as an MSI Package

What are you seeing

Only works when 7-Zip installed from an MSI and exists in C:\\Program Files\\7-Zip\\7z.exe If 7-zip installed with Chocolaty in C:\\ProgramData\Chocolatey\\tools\7z.exe does not complete the extraction

What behaviour did you expect instead

An additional conditinal for the path C:\\ProgramData\Chocolatey\\tools\7z.exe in archive.rb should be added

Output log

Any additional information you'd like to impart

joerg16 commented 3 years ago

Should be fixed with #428