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

Get-ChocolateyWebFile should create non-existent path if it doesn't exist #167

ferventcoder opened this Issue Mar 13, 2015 · 1 comment


None yet
2 participants

ferventcoder commented Mar 13, 2015


Passing the full exe path (-fileFullPath) to 'Get-ChocolateyWebFile' is causing the following error:

[ERROR] Exception calling ".ctor" with "2" argument(s): "Could not find a part of the path 'C:\tools\packageName\program.exe'."
At C:\Chocolatey\chocolateyinstall\helpers\functions\Write-ChocolateyFailure.ps1:30 char:3
+   Write-Error $errorMessage
+   ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

However if I mkdir "C:\tools\packageName" before 'Get-ChocolateyWebFile', it just works.

@ferventcoder ferventcoder added this to the milestone Mar 13, 2015


This comment has been minimized.

ahmetb commented Mar 13, 2015


@ferventcoder ferventcoder added 3 - Done and removed 0 - Backlog labels Mar 29, 2015

@ferventcoder ferventcoder self-assigned this Mar 29, 2015

ferventcoder added a commit that referenced this issue Mar 29, 2015

(GH-167) Get-ChocolateyWebFile create directory
If the fileFullPath directory doesn't exist, create it.

ferventcoder added a commit to ferventcoder/choco that referenced this issue Mar 29, 2015

Merge branch 'stable'
* stable:
  (doc) update nuspec / changelog for release
  (chocolateyGH-211) Use full path to msiexec
  (chocolateyGH-197) Uninstaller check for registry existence
  (chocolateyGH-167) Get-ChocolateyWebFile create directory
  (chocolateyGH-207) Set up variables for powershell scripts
  (chocolateyGH-202)(log) Enhance formatting escaping
  (chocolateyGH-202) Fix formatting on Noop logging
  (chocolateyGH-208) Do not escape curly braces in scripts
  (chocolateyGH-168) Retry .NET Fx if first install fails
  (chocolateyGH-168) .NET Framework 4.0 install egg/chicken
  (chocolateyGH-207) Some pkgs incorrectly use arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment