Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

[Requirement] Do not unzip into chocolatey\bin directly #175

Open
ferventcoder opened this issue Jan 8, 2018 · 1 comment
Open

[Requirement] Do not unzip into chocolatey\bin directly #175

ferventcoder opened this issue Jan 8, 2018 · 1 comment

Comments

@ferventcoder
Copy link
Member

ferventcoder commented Jan 8, 2018

This is bad because it could just overwrite files and put lots of junk files and folders here. This directory is controlled by Chocolatey and has an API for placing files here - that is through https://chocolatey.org/docs/helpers-install-bin-file if they don't automatically end up in here.

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = "C:\ProgramData\chocolatey\bin"
  url           = $url
  checksum      = 'asdfasdf'
  checksumType  = 'sha256'
}
 
Install-ChocolateyZipPackage @packageArgs
@ferventcoder
Copy link
Member Author

This should be expanded to ensure that nothing is copied to that folder either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant