voxpupuli / puppet-archive

Compressed archive file download and extraction with native types/providers for Windows and Unix

Home Page:https://forge.puppet.com/puppet/archive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

alex-mesfin opened this issue · comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.x.x and up
  • Ruby: all
  • Distribution: Windows 2012 and up
  • Module version: 4.6.0

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

Should be fixed with #428