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

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

Closed
ferventcoder opened this issue Mar 13, 2015 · 1 comment
Assignees
Milestone

Comments

@ferventcoder
Copy link
Member

From https://groups.google.com/d/msgid/chocolatey/e371a793-e1a4-46fc-81bb-b54b1d153f8d%40googlegroups.com

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.

@ahmetb
Copy link

ahmetb commented Mar 13, 2015

👍

@ferventcoder ferventcoder self-assigned this Mar 29, 2015
ferventcoder added a commit that referenced this issue Mar 29, 2015
If the fileFullPath directory doesn't exist, create it.
ferventcoder added a commit to ferventcoder/choco that referenced this issue Mar 29, 2015
* stable:
  (version) 0.9.9.3
  (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
Projects
None yet
Development

No branches or pull requests

3 participants