Coder Social home page Coder Social logo

Comments (6)

ferventcoder avatar ferventcoder commented on August 11, 2024

Are you seeing this across the board?

from chocolatey.

9point6 avatar 9point6 commented on August 11, 2024

Yeah, on every package. Just tried again on a random one:

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Users\John> cinst pstools
=====================================================
Chocolatey (0.9.8.11) is installing pstools (from https://go.microsoft.com/fwlink/?LinkID=206669) to "C:\NuGet\lib"
=====================================================
Package License Acceptance Terms
-------------------------
Please run chocolatey /? for full license acceptance verbage. By installing you accept the license for the package you a
re installing...
-------------------------
-------------------------
NuGet
-------------------------
Successfully installed 'pstools 1.0.0.3'.

-------------------------
-------------------------
Chocolatey Runner (PSTOOLS)
-------------------------
-------------------------
Chocolatey Installation (chocolateyinstall.ps1)
-------------------------
Looking for chocolateyinstall.ps1 in folder C:\NuGet\lib\pstools.1.0.0.3
If chocolateyInstall.ps1 is found, it will be run.
-------------------------
Running powershell -NoProfile -ExecutionPolicy unrestricted -Command "& import-module -name  'C:\NuGet\chocolateyInstall
\helpers\chocolateyInstaller.psm1'; & 'C:\NuGet\lib\pstools.1.0.0.3\tools\chocolateyInstall.ps1'". This may take awhile
and permissions may need to be elevated, depending on the package.
Exception calling "Start" with "1" argument(s): "The system cannot find the file specified"
At C:\NuGet\chocolateyInstall\chocolatey.ps1:33 char:43
+   $s = [System.Diagnostics.Process]::Start <<<< ($psi);
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.
At C:\NuGet\chocolateyInstall\chocolatey.ps1:34 char:17
+   $s.WaitForExit <<<< ();
    + CategoryInfo          : InvalidOperation: (WaitForExit:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

[ERROR] Running powershell with -NoProfile -ExecutionPolicy unrestricted -Command "& import-module -name  'C:\NuGet\choc
olateyInstall\helpers\chocolateyInstaller.psm1'; & 'C:\NuGet\lib\pstools.1.0.0.3\tools\chocolateyInstall.ps1'" was not s
uccessful.
-------------------------
Executable Batch Links
-------------------------
Looking for executables in folder: C:\NuGet\lib\pstools.1.0.0.3
Adding batch files for any executables found to a location on PATH. In other words the executable will be available from
 ANY command line/powershell prompt.
-------------------------
There are no executables in the package.
-------------------------
=====================================================
Chocolatey has finished installing pstools
=====================================================
PS C:\Users\John> cup
You have the latest version of chocolatey (0.9.8.11) based on (https://go.microsoft.com/fwlink/?LinkID=206669).
PS C:\Users\John> cup all
You have the latest version of Console2 (2.0) based on (https://go.microsoft.com/fwlink/?LinkID=206669).
You have the latest version of grepwin (1.5.3) based on (https://go.microsoft.com/fwlink/?LinkID=206669).
You have the latest version of nodejs (0.5.9) based on (https://go.microsoft.com/fwlink/?LinkID=206669).
You have the latest version of pstools (1.0.0.3) based on (https://go.microsoft.com/fwlink/?LinkID=206669).

from chocolatey.

ferventcoder avatar ferventcoder commented on August 11, 2024

Does the second window even pop up for you? Do me a favor and look in C:\Nuget\chocolateyInstall for a chocolateyPSInstall.log file. This may help lead us to what is really going on.

From what it looks like, it is not finding powershell on your machine to execute. What version of powershell do you have installed?

from chocolatey.

9point6 avatar 9point6 commented on August 11, 2024

I found the problem, For some reason powershell wasn't in my path. (I didn't check because I figured it would be there by default)

Stock windows 7 PS2.0 btw.

from chocolatey.

ferventcoder avatar ferventcoder commented on August 11, 2024

sounds like we need to specify the full path to powershell and possibly make it configurable?

from chocolatey.

ferventcoder avatar ferventcoder commented on August 11, 2024

#23

from chocolatey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.