Comments (6)
Are you seeing this across the board?
from chocolatey.
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.
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.
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.
sounds like we need to specify the full path to powershell and possibly make it configurable?
from chocolatey.
from chocolatey.
Related Issues (20)
- Hello! HOT 15
- The system cannot find the file specified error on every cinst HOT 6
- Chocolatey installation error on Windows 10 64bit Home-PC HOT 4
- install do not work with source and version HOT 7
- Install Write Error VirtualBox HOT 2
- Use different cache location HOT 2
- Can't uninstall package HOT 4
- Proxy setting ignored for local connections HOT 6
- Fix Chocolatey client multiple sources HOT 3
- The shimgen command window of Fritzing does not close HOT 2
- shutdown /a causes Boxstarter to report a failure HOT 2
- gr
- How to manage packages with PowerShell? HOT 2
- o %PATH% HOT 3
- A Windows distrib includes 7zip for x64 HOT 1
- ERROR: Exception calling "Start" with "0" argument(s) HOT 3
- Could not establish trust relationship for the SSL/TLS secure channel HOT 2
- When I installed BAZEL, there was such a problem, HOT 7
- FEATURE REQUEST - cpush.exe - more informative message about https://push.chocolatey.org/
- install in Windows turn wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolatey.